1
0
Fork 0
Commit Graph

874486 Commits (a9278aadeb4c8edb3d982e8003f537bc73531729)

Author SHA1 Message Date
Bai Ping b6cb41ac99 MLK-17590-02 driver: soc: imx: update the busfreq flow on imx8mq
Currently, on imx8mq evk board, we only support 3200mts and 667mts
frequency setpoints. So the DDR DVFS flow need to be updated accordingly.

The dram pll and dram apb clock rate is changed in ATF when doing frequency,
in kernel side, we need to call the clk API to update the clock rate info
in clock tree.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
(cherry picked from commit a69c3794f52d826762642cbdcf978a85784f386a)
2019-11-25 16:31:45 +08:00
Bai Ping c74f346528 MLK-17447 drivers: soc: imx: Fix busfreq mutex unlock twice on imx8mq
A 'return' statement is missed before, So the mutex will be unlocked
twice, in some corner case, one core will unlock the mutex that locked
by anohter core wrongly. Then lead to concurrent access to the DVFS
at the same time.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
(cherry picked from commit 659615af4d35c7f118b7cf346624d423a3b15797)
2019-11-25 16:31:45 +08:00
Bai Ping ac3505d8ee MLK-17190 driver: soc: Fix audio bus mode clock rate on imx8mq
If the system is currently in low bus mode, if the audio device
request the audio bus mode, the NOC, AHB and AXI bus clock rate
will be set wrongly, then bus will run at very low frequency, then
lead to audio playback underrun.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Tested-by: Anson Huang <anson.huang@nxp.com>
(cherry picked from commit 3a2a988cc02823297d14aa9001f013adbd15f6e8)
2019-11-25 16:31:44 +08:00
Anson Huang 68449e5c27 MLK-16804-08 driver: soc: Reduce NOC/AHB/MAIN_AXI to save SOC power for audio playback
reduce the NOC, main AXI and AHB bus clock frequency to save power when DDR enter low
frequency mode. VDDSOC is ~195mA during video play, and ~180mA in idle.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Bai Ping <ping.bai@nxp.com>
(cherry picked from commit e109b34d30f0b4628a41ca9715eea689cc8c2a56)
2019-11-25 16:31:44 +08:00
Bai Ping 4db8bf6666 MLK-16804-06 driver: soc: Optimize the DDR frequency in audio playback case
If audio device is the only that access to ddr memory, the DDR
frequency can be reduce to 25MHz to save power. when DDR run in
25MHz frequency, the memory bandwidth is about 66MB/s, it can
meet the performance requirement for audio only case.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
(cherry picked from commit 7c2389b6dca053ae4b4a56b3588978909769008c)
2019-11-25 16:31:44 +08:00
Bai Ping 92e082d9fb MLK-16689-03 driver: soc: Add busfreq driver for imx8mq
Add busfreq driver support on i.MX8MQ. The busfreq driver is
mainly used for dynamic DDR frequency change for power saving
feature. When there is no peripheral or DMA device has direct
access to DDR memory, we can lower the DDR frequency to save
power. Currently, we support frequency setpoint for LPDDR4:

    (1): 3200mts, the DDRC core clock is sourced from 800MHz
         dram_pll, the DDRC apb clock is 200MHz.

    (2): 400mts, the DDRC core clock is source from sys1_pll_400m,
         the DDRC apb clock is is sourced from sys1_pll_40m.

    (3): 100mts, the DDRC core clock is sourced from sys1_pll_100m,
         the DDRC apb clock is sourced from sys1_pll_40m.

In our busfreq driver, we have three mode supported:
    * high bus mode  <-----> 3200mts;
    * audio bus mode <-----> 400mts;
    * low bus mode   <-----> 100mts;

The actual DDR frequency is done in ARM trusted firmware by calling
the SMCC SiP service call.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>

Use CONFIG_IMX8M_BUSFREQ
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
2019-11-25 16:31:43 +08:00
Dong Aisheng 348314ae48 soc: imx8: do not build for arm v6/v7 platforms
Because imx_src_is_m4_enabled also defined in v6/v7 platforms code.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
2019-11-25 16:31:43 +08:00
Dong Aisheng 82836f6a33 arm: imx: fix busfreq-imx build failure
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
2019-11-25 16:31:42 +08:00
Jacky Bai e6d26ea852 arm: imx: Add low power idle for imx6ull
Add low power idle support for i.MX6ULL.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
2019-11-25 16:31:42 +08:00
Jacky Bai 9d8cacc997 arm: imx: Add low power idle support for imx6sll
Add low power idle support for i.MX6SLL.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
2019-11-25 16:31:41 +08:00
Jacky Bai 92685e4a28 arm: imx Add busfreq support for imx6sll
Add busfreq support for i.MX6SLL.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
2019-11-25 16:31:41 +08:00
Jacky Bai 1e1c1396e5 arm: imx: Add busfreq support for imx6ull
Add the busfreq node for i.MX6ULL.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
2019-11-25 16:31:41 +08:00
Jacky Bai 9378dc38b8 arm: imx: add low power idle for imx6ul
Add the low power idle support for i.MX6UL.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
2019-11-25 16:31:40 +08:00
Jacky Bai b202184ae7 arm: imx: Add busfreq support for imx6ul
Add busfreq support on i.MX6UL.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
2019-11-25 16:31:37 +08:00
Jacky Bai 21066aba62 arm: imx: Add map io for imx6ul
Add the map io on i.MX6UL to support dsm,
busfreq & low power idle.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
2019-11-25 16:31:36 +08:00
Jacky Bai 42528edf3f arm: imx: Add imx6sl low power idle support
Add i.MX6SL low power idle support.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
2019-11-25 16:31:36 +08:00
Jacky Bai 55ec6efecd arm: imx: Add busfreq support imx6sl
Add busfreq support for i.MX6SL.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
2019-11-25 16:31:36 +08:00
Jacky Bai 1bc81e83d4 arm: imx: Add map io for imx6sl
Add the map io for i.MX6SL to support suspend/resume,
busfreq and low power idle.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
2019-11-25 16:31:35 +08:00
Dong Aisheng 95508eed54 arm: imx: remove RPMSG from Kconfig
There's already an rpmsg driver under drivers/rpmsg
Remove this duplicated one.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
2019-11-25 16:31:34 +08:00
Anson Huang ee891b4c23 ARM: imx: add i.MX7D power management support
This patch adds i.MX7D power management support, including
low power idle, suspend with FastMix off, A7-M4 AMP power
management support.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
[ Aisheng: remove duplicated imx7d_init_late definition ]
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
2019-11-25 16:31:34 +08:00
Dong Aisheng b199c5a470 soc: imx: fix build error of missing imx_src_is_m4_enabled
drivers/clk/imx/clk-gate2.o: In function `clk_gate2_do_shared_clks':
/home/b29396/Work/linux/dash-linux-devel/build_v8/../drivers/clk/imx/clk-gate2.c:61: undefined reference to `imx_src_is_m4_enabled'
drivers/clk/imx/clk-pfd.o: In function `clk_pfd_do_shared_clks':
/home/b29396/Work/linux/dash-linux-devel/build_v8/../drivers/clk/imx/clk-pfd.c:55: undefined reference to `imx_src_is_m4_enabled'
/home/b29396/Work/linux/dash-linux-devel/build_v8/../drivers/clk/imx/clk-pfd.c:55: undefined reference to `imx_src_is_m4_enabled'
drivers/clk/imx/clk-pllv3.o: In function `clk_pllv3_do_shared_clks':
/home/b29396/Work/linux/dash-linux-devel/build_v8/../drivers/clk/imx/clk-pllv3.c:109: undefined reference to `imx_src_is_m4_enabled'
/home/b29396/Work/linux/dash-linux-devel/Makefile:1047: recipe for target 'vmlinux' failed
make[1]: *** [vmlinux] Error 1
make[1]: Leaving directory '/home/b29396/Work/linux/dash-linux-devel/build_v8'
Makefile:179: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
2019-11-25 16:31:33 +08:00
Anson Huang e12ffa41c1 ARM: imx: add i.MX6SX AMP system support
This patch adds i.MX6SX A9-M4 AMP system support.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
2019-11-25 16:31:33 +08:00
Anson Huang a70f422f26 ARM: imx: add i.MX6SX low power idle support
This patch adds i.MX6SX low power idle support.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
[ Aisheng: Fix rebase conflict ]
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
2019-11-25 16:31:33 +08:00
Anson Huang 4d546d4a1e ARM: imx: add suspend/resume with FastMix OFF support
This patch adds suspend/resume with FastMix OFF support.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
2019-11-25 16:31:32 +08:00
Anson Huang 1f6b6e8a89 ARM: imx: add i.MX6SX bus-freq support
This patch adds i.MX6SX bus-freq support.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
2019-11-25 16:31:31 +08:00
Anson Huang 1b8714b0de ARM: imx: add i.MX6DL bus-freq support
This patch adds i.MX6DL bus-freq support.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
2019-11-25 16:31:30 +08:00
Anson Huang ee23850e61 ARM: imx: add i.MX6Q bus-freq support
Add i.MX6Q bus-freq support.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
2019-11-25 16:31:30 +08:00
Anson Huang dc782dd284 ARM: imx: add i.MX7D bus-freq support
Add i.MX7D bus-freq support, it supports High/Low/Audio bus
mode.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
2019-11-25 16:31:30 +08:00
Zhou Peng a4f408b44e Add MU module for vpu dependence on QXP/QM
Add MU module:
drivers/soc/imx/Makefile
drivers/soc/imx/mu/Makefile
drivers/soc/imx/mu/mx8_mu.c
include/linux/mx8_mu.h

Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
2019-11-25 16:31:29 +08:00
Leonard Crestez 0cc4444a6d imx busfreq: Add API header file
Add sufficient enough definitions so that drivers which call
request_bus_freq and release_bus_freq can compile even if
CONFIG_HAVE_IMX_BUSFREQ is missing.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
2019-11-25 16:31:29 +08:00
Camelia Groza 9082092896 powerpc/configs/sdk_dpaa: enable the Cortina PHY driver
Cortina PHYs are present on T4240RDB and T2080RDB. Enable the driver
by default.

Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
2019-11-25 16:31:28 +08:00
Madalin Bucur f81fba037e powerpc/configs/sdk_dpaa: add defconfigs
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
2019-11-25 16:31:27 +08:00
Laurentiu Palcu 8e47bd4d4e arm64/defconfig: build DCSS driver by default
This patch will make DCSS driver built-in.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
2019-11-25 16:31:25 +08:00
Dong Aisheng 0c857beb7d hotfix: arm64: defconfig: disable CONFIG_CRYPTO_DEV_FSL_CAAM_SM_TEST
This is a temporarily workaround cause it breaks MX8MQ and LS platforms
booting.

Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
2019-11-25 16:31:25 +08:00
Clark Wang 5222809412 MLK-23000-2 ARM64: defconfig: enable CONFIG_MXC_MLB150
Add mlb support for i.MX8QXP-lpddr4-val paltform.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
2019-11-25 16:31:24 +08:00
Ran Wang c92d854e36 arm64: lsdk.config: set CONFIG_SQUASHFS_XZ=y
When user use squashfs image which has enabled XZ, kenrel need to also enable
this feature, otherwise will encoutner below error when boot:

squashfs: SQUASHFS error: Filesystem uses "xz" compression.. This is not supported

This feature is needed by some standard Ubuntu tools like snap or initramfs.
So enable it in LSDK kernel by default.

Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
2019-11-25 16:31:24 +08:00
Liu Ying 43bccd56a0 arm64: defconfig: Build in i.MX27 PWM driver
This patch builds in the i.MX27 PWM driver.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2019-11-25 16:31:24 +08:00
Liu Ying 37764cb966 arm64: defconfig: Build in generic PWM backlight driver
This patch builds in the generic PWM backlight driver.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2019-11-25 16:31:23 +08:00
Liu Ying eacfcf52de arm64: defconfig: Build in DRM simple panel driver
This patch builds in the DRM simple panel driver.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2019-11-25 16:31:23 +08:00
Peter Chen ff5b9d8fac MLK-22957 ARM64: defconfig: add some USB configurations
- CONFIG_SND_USB_AUDIO
Support USB audio card when boards are at host mode.

- CONFIG_USB_EHSET_TEST_FIXTURE
Triggering Embedded Host entering test mode for USB-IF electrical test.

- CONFIG_USB_TEST
Support USB host stress test in raw data mode

Cc: Jun Li <jun.li@nxp.com>
Cc: Ran Wang <ran.wang_1@nxp.com>
Cc: Ghennadi Procopciuc <ghennadi.procopciuc@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2019-11-25 16:31:22 +08:00
Han Xu 7501210b84 arm64: defconfig: Add GPMI_NAND and MXS_DMA in defconfig
Add the GPMI_NAND and related MXS_DMA into defconfig

Signed-off-by: Han Xu <han.xu@nxp.com>
2019-11-25 16:31:22 +08:00
Leonard Crestez 88127bc1a7 Revert "arm64: defconfig: Add imx8mq platform"
This reverts commit 8bf5ea8506c2185dba919d7876987e24b193ca9c.

There is no ARCH_FSL_IMX8MQ in upstream, this was ported by mistake for
VPU. VPU dependency was already fixed.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
2019-11-25 16:31:21 +08:00
Horia Geantă ec1b47dc7b arm64: defconfig: enable some CRYPTO_* symbols
Enable the following:
-CAAM SNVS and SM drivers
-generic SW crypto algorithms - needed for tcrypt speed tests
-CRYPTO_USER - needed for configuring crypto algorithms
from user space (using tools like crconf)

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
2019-11-25 16:31:20 +08:00
Zhao Qiang 9a8154d245 arm64: defconfig: Enable the SBSA watchdog
Enable the SBSA watchdog driver that is present on lx2160a.

Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
2019-11-25 16:31:20 +08:00
Peng Fan 98515676df MLK-22901 arm64: defconfig: select CONFIG_UIO and CONFIG_UIO_PCI_GENERIC
The two configs are needed when enabling jailhouse hypervisor for
inter-cell communication.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
2019-11-25 16:31:20 +08:00
Mihaela Martinas a55388c23e arm64: defconfig: Enable pinctrl-s32v234 driver
Update default ARM64 config with S32V234 SIUL2 pin controller driver.

Signed-off-by: Mihaela Martinas <Mihaela.Martinas@freescale.com>
Signed-off-by: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>
2019-11-25 16:31:19 +08:00
Mihaela Martinas 74a4052587 arm64: defconfig: Enable configs for S32V234
Enable support for the S32V234 SoC, including the previously added UART
driver.

Signed-off-by: Mihaela Martinas <Mihaela.Martinas@freescale.com>
Signed-off-by: Adrian.Nitu <adrian.nitu@freescale.com>
Signed-off-by: Stoica Cosmin-Stefan <cosmin.stoica@nxp.com>
Signed-off-by: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
2019-11-25 16:31:19 +08:00
Xiaoliang Yang 6777b5481b arm64: defconfig: enable TSN on felix switch
Enable TSN feature on felix switch driver in defconfig.

Signed-off-by: Xiaoliang Yang <xiaoliang.yang_1@nxp.com>
2019-11-25 16:31:19 +08:00
Xiaoliang Yang 7717ea0d12 arm64: configs: enable TSN on ENETC
Enables TSN feature on ENETC in defconfig and lsdk.config

Signed-off-by: Xiaoliang Yang <xiaoliang.yang_1@nxp.com>
2019-11-25 16:31:18 +08:00
Alex Marginean f91f856a09 arm64: defconfig: enable ENETC and LS1028A board PHYs in defconfig
Enables ENETC and felix drivers used on LS1028A along with PHYs used on
LS1028A boards.

Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
2019-11-25 16:31:18 +08:00