From db2438131d75ea0198487296b6c694bded080d11 Mon Sep 17 00:00:00 2001 From: Dave Gerlach Date: Tue, 11 May 2021 10:22:10 -0500 Subject: ram: k3-ddrss: Introduce top-level CONFIG_K3_DDRSS Create a new CONFIG_K3_DDRSS option to select the common parts of the k3-ddrss driver. Also introduce a choice that depends on the top level option to select CONFIG_K3_J721E_DDRSS for j721e support, and update corresponding Kconfig as required. Signed-off-by: Dave Gerlach --- drivers/ram/Kconfig | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'drivers/ram/Kconfig') diff --git a/drivers/ram/Kconfig b/drivers/ram/Kconfig index a270e13b265..4e4e7a9632a 100644 --- a/drivers/ram/Kconfig +++ b/drivers/ram/Kconfig @@ -54,9 +54,16 @@ config K3_AM654_DDRSS config add support for the initialization of the external SDRAM devices connected to DDR subsystem. +config K3_DDRSS + bool "Enable K3 DDRSS support" + depends on RAM + +choice + depends on K3_DDRSS + prompt "K3 DDRSS Arch Support" + config K3_J721E_DDRSS bool "Enable J721E DDRSS support" - depends on RAM help The J721E DDR subsystem comprises DDR controller, DDR PHY and wrapper logic to integrate these blocks in the device. The DDR @@ -65,6 +72,8 @@ config K3_J721E_DDRSS Enabling this config adds support for the DDR memory controller on J721E family of SoCs. +endchoice + config IMXRT_SDRAM bool "Enable i.MXRT SDRAM support" depends on RAM -- cgit v1.2.3 From 9f9b5c1c16ddbb0a3a42e0424887d9cad34d89f4 Mon Sep 17 00:00:00 2001 From: Dave Gerlach Date: Tue, 11 May 2021 10:22:12 -0500 Subject: ram: k3-ddrss: Introduce support for AM642 SoCs Introduce support for the AM64 DDRSS controller which uses the 16bit variation of the controller. This controller shares much functionality with the existing J721e support, so this patch introduces only the new code needed for am64 specific support from "_16bit_" files with headers under "16bit/" include path/. Also add a CONFIG_K3_AM64_DDRSS option to the choice required for use with CONFIG_K3_DDRSS to allow selecting AM64 support. Signed-off-by: Dave Gerlach --- drivers/ram/Kconfig | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'drivers/ram/Kconfig') diff --git a/drivers/ram/Kconfig b/drivers/ram/Kconfig index 4e4e7a9632a..a79594d3519 100644 --- a/drivers/ram/Kconfig +++ b/drivers/ram/Kconfig @@ -62,6 +62,9 @@ choice depends on K3_DDRSS prompt "K3 DDRSS Arch Support" + default K3_J721E_DDRSS if SOC_K3_J721E + default K3_AM64_DDRSS if SOC_K3_AM642 + config K3_J721E_DDRSS bool "Enable J721E DDRSS support" help @@ -72,6 +75,16 @@ config K3_J721E_DDRSS Enabling this config adds support for the DDR memory controller on J721E family of SoCs. +config K3_AM64_DDRSS + bool "Enable AM64 DDRSS support" + help + The AM64 DDR subsystem comprises DDR controller, DDR PHY and + wrapper logic to integrate these blocks in the device. The DDR + subsystem is used to provide an interface to external SDRAM + devices which can be utilized for storing program or data. + Enabling this config adds support for the DDR memory controller + on AM642 family of SoCs. + endchoice config IMXRT_SDRAM -- cgit v1.2.3