]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ram: rockchip: Add initial Kconfig
authorJagan Teki <jagan@amarulasolutions.com>
Mon, 15 Jul 2019 18:28:46 +0000 (23:58 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 19 Jul 2019 03:11:09 +0000 (11:11 +0800)
Right now sdram drivers in rockchip SoC are built based
on the SoC configs which may not be an adequate solutions
while adding common or debug driver.

So, add meaningful Kconfig options start with rk3399.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <Kever.yang@rock-chips.com>
drivers/ram/Kconfig
drivers/ram/rockchip/Kconfig [new file with mode: 0644]
drivers/ram/rockchip/Makefile

index fbf7d7b20fbf1fb18b664095a2a4a766fad45fa6..568d8f2c6a9f723c01d86bb9de5d1c23fd839480 100644 (file)
@@ -54,4 +54,5 @@ config K3_AM654_DDRSS
          config add support for the initialization of the external
          SDRAM devices connected to DDR subsystem.
 
+source "drivers/ram/rockchip/Kconfig"
 source "drivers/ram/stm32mp1/Kconfig"
diff --git a/drivers/ram/rockchip/Kconfig b/drivers/ram/rockchip/Kconfig
new file mode 100644 (file)
index 0000000..995cb48
--- /dev/null
@@ -0,0 +1,17 @@
+config RAM_ROCKCHIP
+       bool "Ram drivers support for Rockchip SoCs"
+       depends on RAM && ARCH_ROCKCHIP
+       default y
+       help
+         This enables support for ram drivers Rockchip SoCs.
+
+if RAM_ROCKCHIP
+
+config RAM_RK3399
+       bool "Ram driver for Rockchip RK3399"
+       default ROCKCHIP_RK3399
+       help
+         This enables ram drivers support for the platforms based on
+         Rockchip RK3399 SoC.
+
+endif # RAM_ROCKCHIP
index 5df196066dad268d333cddc94a922b6dca0cf69a..07d4b62a9d124981ea34ead479e772b05dba487d 100644 (file)
@@ -9,4 +9,4 @@ obj-$(CONFIG_ROCKCHIP_RK3188) = sdram_rk3188.o
 obj-$(CONFIG_ROCKCHIP_RK322X) = sdram_rk322x.o
 obj-$(CONFIG_ROCKCHIP_RK3288) = sdram_rk3288.o
 obj-$(CONFIG_ROCKCHIP_RK3328) = sdram_rk3328.o
-obj-$(CONFIG_ROCKCHIP_RK3399) = sdram_rk3399.o
+obj-$(CONFIG_RAM_RK3399) += sdram_rk3399.o