u-boot/drivers/ram/stm32mp1
Patrick Delaunay 81b66b9033 ram: stm32mp1: use the DDR size by default in the test addressBus
The test 4 = "AddressBus [size] [addr]" without parameter
detects alias for any address bit only when:
- size = real size of DDR
- addr = start of DDR = 0xC0000000

These value must be the default value when parameters are absent.

This patch sets bufsize to STM32_DDR_SIZE and get_bufsize() selects
the correct value for bufsize when this parameter is absent =
full size of the DDDR

On EV1 board :
DDR> test 4
running at 0xC0000000 length 0x40000000

On DK2 board
DDR> test 4
running at 0xC0000000 length 0x20000000

Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
2020-07-07 16:01:23 +02:00
..
Kconfig stm32mp1: ram: add tuning in DDR interactive mode 2019-05-23 11:38:11 +02:00
Makefile stm32mp1: ram: add tuning in DDR interactive mode 2019-05-23 11:38:11 +02:00
stm32mp1_ddr.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
stm32mp1_ddr.h ram: stm32mp1: the property st, phy-cal becomes optional 2020-03-24 14:23:30 +01:00
stm32mp1_ddr_regs.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
stm32mp1_interactive.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
stm32mp1_ram.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
stm32mp1_tests.c ram: stm32mp1: use the DDR size by default in the test addressBus 2020-07-07 16:01:23 +02:00
stm32mp1_tests.h stm32mp1: ram: add tuning in DDR interactive mode 2019-05-23 11:38:11 +02:00
stm32mp1_tuning.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00