Add the debug mux structure with inputs for measuring the
HLOS controlled clocks on SM6150.
Change-Id: I4f8565dcd2bd2750f56e4e0aaee990130b3d2d61
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
Export slew pll ops to allow clock drivers to be
compiled as modules.
Change-Id: I52e087ea1f0e3b8286255bae6ea65f411a7c4178
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
Add a sensor clock controller (SCC) driver which can be used
to control sensor clocks on boards in which the application
processor owns these clocks.
Change-Id: I76aa5a35509f7fa48ee4109941caa9b410d7f350
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
Add support for the video clock controller found on SM6150
based devices. This would allow video device drivers to
probe and control their clocks.
Change-Id: Iffccc48d642d291db2133092cf19d4a726f25c99
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
There is a possibility of the "real capacity" dropping post
termination due to a OCV update causing the charger-termination
WA to exit. Fix this by explicitly checking that we are not
in termination before exiting from the WA.
Change-Id: I5bf91367b633abf79cbc60ef5bdf93cca9559029
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Add a DT option "qcom,jeita-arb-enable" to allow suspending
the input when VBAT > VJEITA to prevent ARB (reverse boost).
Change-Id: I5bf91367b633abf79cbc60ef5bdf93cca9559023
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Some (PON gen2) platforms still use legacy hard-reset offset [7:2]
of the PON_RB_SPARE register. Add a DT property to support it.
Change-Id: I8fd3434bcc064965b11aaf3e9c7fcbf694145d21
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
Adds ANDROID_OEM_DATA and ANDROID_OEM_DATA_ARRAY macros
to add OEM-specific fields to kernel data structures
to enable value-added features implemented in vendor modules.
Fields defined with these macros must not be used by
SoC vendors who must use the ANDROID_VENDOR_DATA* macros
to add vendor fields.
Bug: 156285741
Signed-off-by: Todd Kjos <tkjos@google.com>
Change-Id: I93a8a182a17854cc4f0a86835e833bf9b00ea0b8
Add support for matching the new PMUs. For now, this just wires them up
as generic PMUv3 such that people writing DTs for new SoCs can do the
right thing, and at least have architectural and raw events be usable.
We can come back and fill in event maps for sysfs and/or perf tools at
a later date.
Change-Id: I0c0839f6fff87934e97708176f783514bdee7f58
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
(cherry picked from commit 29cc4ceeac1274ab8363a11b81ebd99f3b023985
git://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git for-next/perf)
Bug: 176519087
Link: https://lore.kernel.org/linux-arm-kernel/20200225190125.GA2781@bogus/T/#mdaa003324f263cc9541d412f7ba6b9519d6603fe
Signed-off-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
Change-Id: I335d4c9a9bfcfcfeb18b096cfe660209d3b62820
Enable core hang detect support on gen3auto targets.
Change-Id: Ie5eb562a8aed9ac1b211c666876bf8c49bd39f2a
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
Enable the devfreq governor, monitor and device
support on gen3auto targets.
Change-Id: I463d99a61b90ec15d0661c113c57cc1ca3dd53be
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
Enable kernel configs needed to suppot ramdump on gen3auto,
these drivers help to capture necessary debug information
in DDR and IMEM when the system crashes either after a panic
or due to any system lockup.
Change-Id: Ie4d2b0cafba363703fe9cac03e6255df3e09cd7e
Signed-off-by: Vivek Kumar <vivekuma@codeaurora.org>
Signed-off-by: Shreyas K K <shrekk@codeaurora.org>
Update compatible string from qcom,wcn6750 to
qcom,wcn6750-bt inorder to make it different from
WLAN compatible string.
This will help in removing probe warnings during bootup.
Change-Id: If6f938187b5f34438ee8bf5330844b839de942b9
Signed-off-by: priyankar <prigup@codeaurora.org>
We can't use devm_ioremap_resource here because
we purposely double map the gpu_cc registers for
debugging purposes.
Change-Id: If6e60431fe54f9d647fd09e5e633d7b7edc3c62f
Signed-off-by: Hui Li <hul@codeaurora.org>
This is a snapshot of the CNSS driver and associated files as of
msm-4.14 commit b56fde2f9abd44
("cnss: Add cnss driver to msm-4.14").
Add Kconfig dependency.
Comment obsolete codes to fix some compiler issues.
Change-Id: I89bf0a85b086c7482609b331273d9eaf2fb66648
Signed-off-by: Paul Zhang <paulz@codeaurora.org>
xhci-mtk needs XHCI_MTK_HOST quirk functions in add_endpoint() and
drop_endpoint() to handle its own sw bandwidth management.
It stores bandwidth data into an internal table every time
add_endpoint() is called, and drops those in drop_endpoint().
But when bandwidth allocation fails at one endpoint, all earlier
allocation from the same interface could still remain at the table.
This patch moves bandwidth management codes to check_bandwidth() and
reset_bandwidth() path. To do so, this patch also adds those functions
to xhci_driver_overrides and lets mtk-xhci to release all failed
endpoints in reset_bandwidth() path.
Fixes: 08e469de87 ("usb: xhci-mtk: supports bandwidth scheduling with multi-TT")
Signed-off-by: Ikjoon Jang <ikjn@chromium.org>
Link: https://lore.kernel.org/r/20210113180444.v6.1.Id0d31b5f3ddf5e734d2ab11161ac5821921b1e1e@changeid
Cc: stable <stable@vger.kernel.org>
(cherry picked from commit 1d69f9d901ef14d81c3b004e3282b8cc7b456280
https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-linus)
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I211875090c3b8080292a415fdb182fd4b8ac9729
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
The existing clk_hw_get_name() only works after the clock has been
registered with the framework since it relies on hw->core->name and
hw->core is NULL pre-registration. hw->init->name can be used
pre-registration, but this doesn't work post-registration since the
framework sets hw->init to NULL.
Provide qcom_clk_hw_get_name(), which can be called in both pre and
post-registration contexts.
Change-Id: I334e545f5112961b7ab6879daca55c70236338d6
Signed-off-by: Mike Tipton <mdtipton@codeaurora.org>
Add support for the graphics clock controller found on SM6150
based devices. This should allow GPU device drivers to probe
and control their clocks.
Change-Id: Ic4dc10771a4ea79d181be38e6f1594ecc6f314d3
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
Add support for display clock controller found on SM6150
based devices. This would allow display device driver
to probe and control their clocks.
Change-Id: I2e5e20f5bf518d6bc1128b6c2fb26a5e0480a4a3
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
Add support for camera clock controller found on SM6150
based devices. This would allow camera device drivers
to probe and control their clocks.
Change-Id: Ic5b5e6e9363f0272e777c500028f876f3e79a7b8
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
Add support for peripheral clocks controlled by
global clock controller.
Change-Id: I7717b8e32fd3918359faf3d63af2f6a82de81088
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
Add clock rpmh data to communicate with RPMH clocks for SM6150.
Change-Id: I6aed48fce932923e52dc9109cca427da92375814
Signed-off-by: Veera Vegivada <vvegivad@codeaurora.org>
Add HARDENED_USERCOPY and SLUB_DEBUG to both variants. Also add
useful configs to debug variant for testing countermeasures.
Change-Id: I7d3ae4e7d26d480c7a9dcfa1683602aabddf5af0
Signed-off-by: Dennis Cagle <dcagle@codeaurora.org>
Memory allocation for MHI client channels is failing.
Resolve it by fixing the conditional check for
NULL pointer.
Change-Id: I98a7fe085482116236703e3af69010bade0130b7
Signed-off-by: Gauri Joshi <gaurjosh@codeaurora.org>
Enable the SMB1398_CHARGER driver corresponding to the SMB1394 PMIC
found on sdxlemur platforms.
Change-Id: Ic53687e9f71cc8ec8aeeb01ef7a25b1533775777
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
Add support for SMB1394, which is a a variant of SMB1398.
Change-Id: I0e508079174ae16e0aa8c5f242be3686126319ea
Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>