u-boot/drivers/ddr/fsl
Sean Anderson 6f6fbb334c ddr: fsl: Make bank_addr_bits reflect actual bits
In both the Freescale DDR controller and the SPD spec, bank address bits
are stored as the number of bank address bits minus 2. For example, if a
chip had 8 banks (3 total bank address bits), the value of
bank_addr_bits would be 1. This is rather surprising for users
configuring their memory manually, since they can't set bank_addr_bits
to the actual number of bank address bits. Rectify this.

There is at least one example of this kind of mistake already, in
board/freescale/t102xrdb/ddr.c. The documented MT40A512M8HX has two bank
address bits, but bank_addr_bits was set to 2, implying 4 bank address
bits. Such a value is reserved in BA_BITS_CS, but I suspect the
controller simply ignores the top bit, making this kind of mistake
harmless, if misleading.

Fixes: e8a7f1c32b ("powerpc/t1023rdb: Add T1023 RDB board support")
Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2022-09-06 09:28:46 +08:00
..
arm_ddr_gen3.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
ctrl_regs.c ddr: fsl: Make bank_addr_bits reflect actual bits 2022-09-06 09:28:46 +08:00
ddr1_dimm_params.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ddr2_dimm_params.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ddr3_dimm_params.c WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
ddr4_dimm_params.c ddr: fsl: Make bank_addr_bits reflect actual bits 2022-09-06 09:28:46 +08:00
fsl_ddr_gen4.c drivers: ddr: fsl_ddr_gen4.c: Fix divide by zero issue 2021-11-09 14:43:24 +05:30
fsl_mmdc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
interactive.c ddr: fsl: Reduce the size of interactive options 2022-09-06 09:28:45 +08:00
Kconfig Convert CONFIG_SYS_FSL_DDR_MAIN_NUM_CTRLS et al to Kconfig 2022-08-12 16:10:49 -04:00
lc_common_dimm_params.c drivers: ddr: lc_common_dimm_params.c : Fix Divison by zero issue 2021-11-09 17:18:23 +05:30
main.c common: Drop display_options.h from common header 2022-08-10 13:46:55 -04:00
Makefile ppc: Remove sbc8641d board 2021-07-07 19:52:24 -04:00
mpc85xx_ddr_gen1.c ppc: Remove MPC8555CDS boards 2021-07-07 19:52:23 -04:00
mpc85xx_ddr_gen2.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mpc85xx_ddr_gen3.c ddr: Rework errata A008109, A008378, 009942 workaround 2020-06-04 18:53:20 +05:30
options.c ddr: fsl: Allow to compile it without env support 2022-04-26 17:18:39 +05:30
util.c drivers: ddr: util.c: Fix divide by zero issue 2021-11-09 14:43:24 +05:30