ddr: altera: Compile ALTERA SDRAM in SPL only
Compile ALTERA_SDRAM driver in SPL only. Rename ALTERA_SDRAM to SPL_ALTERA_SDRAM. Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
This commit is contained in:
committed by
Marek Vasut
parent
86f578ee85
commit
5918afda9d
@@ -34,7 +34,7 @@ obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
|
||||
obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
|
||||
obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
|
||||
obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
|
||||
obj-$(CONFIG_ALTERA_SDRAM) += ddr/altera/
|
||||
obj-$(CONFIG_$(SPL_)ALTERA_SDRAM) += ddr/altera/
|
||||
obj-$(CONFIG_ARCH_IMX8M) += ddr/imx/imx8m/
|
||||
obj-$(CONFIG_SPL_POWER_SUPPORT) += power/ power/pmic/
|
||||
obj-$(CONFIG_SPL_POWER_SUPPORT) += power/regulator/
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
config ALTERA_SDRAM
|
||||
bool "SoCFPGA DDR SDRAM driver"
|
||||
config SPL_ALTERA_SDRAM
|
||||
bool "SoCFPGA DDR SDRAM driver in SPL"
|
||||
depends on SPL
|
||||
depends on TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
|
||||
select RAM if TARGET_SOCFPGA_GEN5
|
||||
select SPL_RAM if TARGET_SOCFPGA_GEN5
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
# (C) Copyright 2010, Thomas Chou <thomas@wytron.com.tw>
|
||||
# Copyright (C) 2014 Altera Corporation <www.altera.com>
|
||||
|
||||
ifdef CONFIG_ALTERA_SDRAM
|
||||
ifdef CONFIG_$(SPL_)ALTERA_SDRAM
|
||||
obj-$(CONFIG_TARGET_SOCFPGA_GEN5) += sdram_gen5.o sequencer.o
|
||||
obj-$(CONFIG_TARGET_SOCFPGA_ARRIA10) += sdram_arria10.o
|
||||
obj-$(CONFIG_TARGET_SOCFPGA_STRATIX10) += sdram_s10.o
|
||||
|
||||
Reference in New Issue
Block a user