dts: MT8173: Add MT6397 MFD and regulator support

Change-Id: I0516057d406d9f5bd022556a075cad1a2e00d8e1
Signed-off-by: Flora Fu <flora.fu@mediatek.com>
ARM: mt8173_defconfig: Add MT6397 MFD and regulator support

Change-Id: I7be150dfb0bb2ddaa37d90c2afd3b1b514dcb6e0
Signed-off-by: Flora Fu <flora.fu@mediatek.com>
clk: remove cpugpt and init in lk

Init cpugpt in lk, and remove from kernel

Change-Id: If3cb2fa5529123c68cedcefac06a00f0f3baf753
Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
clk: add mt8135 & mt8173 clocks.

Apply new clock spec in mt81735.dtsi. Some clocks (such as audio) are not
provided now, so they are replaced with dummy clocks temporarily.

Change-Id: Ib1f3db39348cc64a62bfaf8ffcaf0216f1debb8b
Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
clk: add mt8173 clocks.

Add mt8173-clk.h in mt8173.dtsi.

Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
Change-Id: I9881a3b629461ffd8f102f7d8ffdaae54505e28d
for m4u upstream
a.correct a spin lock
b.gpu run in ko, we should export_symbol for the external interface

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
clk: Add MT8135 subsystem clocks.

Add MT8135 clock support for mfgsys, audiosys, dispsys, imgsys,
vdecsys and vencsys.

Signed-off-by: James Liao <jamesjj.liao@mediatek.com>
Change-Id: I51fc344efa8a1f712e9b11d825211a25cc9959f7
[MSDC:] Add EMMC/SD support for MT8173

EMMC is OK
SD is OK

Change-Id: Id116519b2f1566ff4183723dafbf0576c97a296a
Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
dts: uart: Change uart clock

Apply new CCF periphal clock seems have problem,
rollback use dummy uart clock

Change-Id: I2f30816879629788897c7d398b68d385dcd35850
Signed-off-by: Eddie Huang <eddie.huang@mediatek.com>
BACKPORT: ASoC: add TI ts3a227e headset chip driver

The TS3A227E is an autonomous audio accessory detection and
configuration switch that detects 3-pole or 4-pole audio accessories
and configures internal switches to route the signals accordingly.

This chip also has built-in support for the new button standard
described in the Android "Wired audio headset specification" v1.0.
These buttons will be reported on the jack as buttons 0-3 mapped to
KEY_MEDIA, KEY_VOLUMEUP, KEY_VOLUMEDOWN, and KEY_VOICE_COMMAND.

This will be added as an aux_dev and have the jack passed in from the
machine driver.

BUG=none
TEST=Modify pinky's platform driver and plug/unplug headphone

[dgreid - backport required switch from component to codec driver]

Signed-off-by: Dylan Reid <dgreid@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit 2880fc877971d6c14b0c76ac09744e3ff5b126d5)

Change-Id: Ie4fb83c0e1bfbe211cd4525a12144ec633efdcf5
Reviewed-on: https://chromium-review.googlesource.com/229872
Reviewed-by: Hsinyu Chao <hychao@chromium.org>
Reviewed-by: Sonny Rao <sonnyrao@chromium.org>
Tested-by: Dylan Reid <dgreid@chromium.org>
Commit-Queue: Dylan Reid <dgreid@chromium.org>
Reviewed-by: Anatol Pomazau <anatol@google.com>
Enable TS3A227E kernel config

Change-Id: Ib12a414601e5e96e6db22225799679658e3d1c47
Signed-off-by: koro.chen <koro.chen@mediatek.com>
[MSDC]: Remove useless error handle in drv_remove

Change-Id: Ib2f9026214da7bb4e08b1731bc5be0706b69b192
Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Implement BT and Enable BT function

Change-Id: I00e8d7c767d686477ddd5d8e76b221981aa5ca75
Signed-off-by: Clayton Kuo <Clayton.Kuo@mediatek.com>

Conflicts:
	arch/arm/configs/mt8135_crosnb_defconfig
[SMP/HOTPLUG]commit smp/hotplug driver code.

1. base on latest version code.
2. add smp_wmb and cache sync for smp boot.

Change-Id: I042fa09964563e8b3d55dd4abb6d90d18a697170
Signed-off-by: Shunli Wang <shunli.wang@mediatek.com>
Modify audio clk usage according to new CCF.

Change-Id: Ie99035e12e5541382d701a8f752ed0b6650fbafe
Signed-off-by: koro.chen <koro.chen@mediatek.com>
[MSCD]: Add SDcard support for NB board

Change-Id: I16cbd87f4e6527358e1268bb438cf43cb5392286
Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
remove reference to __DATE__ and __TIME__ for gcc 4.9 and "-Werror=date-time".
Besides, none of them is required for source release now.

Change-Id: I3a8f902388bf6e1f503af111141ebb330f74a842
tmp solution for cros pvr ddk1.5@rev3263703 support

Change-Id: Iddf8a0d691f2cae94072ebd7e0abd08db488bee4
[MSDC]: Fix EMMC CMD6 always timeout

Change-Id: Id79d131d1dbe9df89675a21e01a1281f5d2c8377
Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>