mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
arm: socfpga: Convert Altera DDR SDRAM driver to use Kconfig
Convert Altera DDR SDRAM driver to use Kconfig method. Enable ALTERA_SDRAM by default if it is on Gen5 target. Arria 10 will have different driver. Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com> Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
This commit is contained in:

committed by
Marek Vasut

parent
e11b5e8d6e
commit
707cd012e2
1
drivers/ddr/Kconfig
Normal file
1
drivers/ddr/Kconfig
Normal file
@ -0,0 +1 @@
|
||||
source "drivers/ddr/altera/Kconfig"
|
5
drivers/ddr/altera/Kconfig
Normal file
5
drivers/ddr/altera/Kconfig
Normal file
@ -0,0 +1,5 @@
|
||||
config ALTERA_SDRAM
|
||||
bool "SoCFPGA DDR SDRAM driver"
|
||||
depends on TARGET_SOCFPGA_GEN5
|
||||
help
|
||||
Enable DDR SDRAM controller for the SoCFPGA devices.
|
@ -8,4 +8,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
obj-$(CONFIG_ALTERA_SDRAM) += sdram.o sequencer.o
|
||||
ifdef CONFIG_ALTERA_SDRAM
|
||||
obj-$(CONFIG_TARGET_SOCFPGA_GEN5) += sdram.o sequencer.o
|
||||
endif
|
||||
|
Reference in New Issue
Block a user