diff options
| author | York Sun <[email protected]> | 2016-12-28 08:43:44 -0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2017-01-04 19:40:49 -0500 |
| commit | 66e399b68d20d96a90ba391d75c2290bd63bf4a5 (patch) | |
| tree | 1e9388e6e6fec3d3e0adf9ee0e14fb0149bb0a80 /drivers | |
| parent | 63659ff317c72ff6d74a3147ad758c5904b034bc (diff) | |
ddr: fsl: Move macro CONFIG_NUM_DDR_CONTROLLERS to Kconfig
Use option NUM_DDR_CONTROLLERS in ddr Kconfig and clean up existing
usage in ls102xa and fsl-layerscape. Remove all powerpc macros in
config header and board header files.
Signed-off-by: York Sun <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/ddr/fsl/Kconfig | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/ddr/fsl/Kconfig b/drivers/ddr/fsl/Kconfig index 7b7e4f2c50e..b035502e7a3 100644 --- a/drivers/ddr/fsl/Kconfig +++ b/drivers/ddr/fsl/Kconfig @@ -23,6 +23,20 @@ config SYS_FSL_DDR_LE menu "Freescale DDR controllers" depends on SYS_FSL_DDR +config NUM_DDR_CONTROLLERS + int "Maximum DDR controllers" + default 3 if ARCH_LS2080A || \ + ARCH_T4240 + default 2 if ARCH_B4860 || \ + ARCH_BSC9132 || \ + ARCH_MPC8572 || \ + ARCH_MPC8641 || \ + ARCH_P4080 || \ + ARCH_P5020 || \ + ARCH_P5040 || \ + ARCH_T4160 + default 1 + config SYS_FSL_DDR_VER int default 50 if SYS_FSL_DDR_VER_50 |
