]> git.dujemihanovic.xyz Git - u-boot.git/commit
rockchip: sdram: extend to use sys_reg3 for capacity info
authorKever Yang <kever.yang@rock-chips.com>
Fri, 15 Nov 2019 03:04:35 +0000 (11:04 +0800)
committerKever Yang <kever.yang@rock-chips.com>
Sun, 17 Nov 2019 08:23:56 +0000 (16:23 +0800)
commit9a46f2a4cb1bfcddef1379e41a710d352b2dade0
treece542d842b4a666b6dcf4520f19cab714dfd6484
parentd5d40f45ded050f9d641d71fb29a5afe90f42700
rockchip: sdram: extend to use sys_reg3 for capacity info

Since we have new DRAM type and to support different DRAM size in different
CS, we need more bits, so introduce sys_reg3 to record the info.
Note that the info in sys_reg3 is extension to sys_reg2 and the info in
sys_reg2 is the same as before. We define the DRAM_INFO with sys_reg3 as
VERSION2.
All the ENC macro are moved to sdram_common.h since the sdram.c only
need to do the info decode.

Signed-off-by: YouMin Chen <cym@rock-chips.com>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
arch/arm/include/asm/arch-rockchip/sdram.h
arch/arm/include/asm/arch-rockchip/sdram_common.h
arch/arm/mach-rockchip/sdram.c