Skip to content
Snippets Groups Projects
Commit d84bd928 authored by Siva Durga Prasad Paladugu's avatar Siva Durga Prasad Paladugu Committed by Michal Simek
Browse files

arm: zynq: Add Kconfig option for any DDR specific initialization


Add Kconfig option for ddr init as this might be required
in cases like ddr less systems where we want to skip ddrc
init and this option is useful for it.

Signed-off-by: default avatarSiva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 6a1d91be
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,14 @@ config SPL_SPI_FLASH_SUPPORT ...@@ -24,6 +24,14 @@ config SPL_SPI_FLASH_SUPPORT
config SPL_SPI_SUPPORT config SPL_SPI_SUPPORT
default y if ZYNQ_QSPI default y if ZYNQ_QSPI
config ZYNQ_DDRC_INIT
bool "Zynq DDRC initialization"
default y
help
This option used to perform DDR specific initialization
if required. There might be cases like ddr less where we
want to skip ddr init and this option is useful for it.
config SYS_BOARD config SYS_BOARD
default "zynq" default "zynq"
......
...@@ -12,6 +12,9 @@ ...@@ -12,6 +12,9 @@
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
#ifndef CONFIG_ZYNQ_DDRC_INIT
void zynq_ddrc_init(void) {}
#else
/* Control regsiter bitfield definitions */ /* Control regsiter bitfield definitions */
#define ZYNQ_DDRC_CTRLREG_BUSWIDTH_MASK 0xC #define ZYNQ_DDRC_CTRLREG_BUSWIDTH_MASK 0xC
#define ZYNQ_DDRC_CTRLREG_BUSWIDTH_SHIFT 2 #define ZYNQ_DDRC_CTRLREG_BUSWIDTH_SHIFT 2
...@@ -46,3 +49,4 @@ void zynq_ddrc_init(void) ...@@ -46,3 +49,4 @@ void zynq_ddrc_init(void)
puts("ECC disabled "); puts("ECC disabled ");
} }
} }
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment