]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ddr: altera: sdram: Introduce socfpga_sdram_config() structure
authorMarek Vasut <marex@denx.de>
Sat, 1 Aug 2015 18:30:10 +0000 (20:30 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:35 +0000 (08:17 +0200)
commitdc375795b285e482fb26dae3b323d27096a4162a
treed47389aee2862e45c5ec74baeb992710497e140c
parente5ab1406e6d76e5a91618f26faea981e86aa7f9d
ddr: altera: sdram: Introduce socfpga_sdram_config() structure

Introduce this seemingly massive structure, which holds required values
of all the registers of the SDRAM controller. The idea here is to avoid
including the sdram.h header file, which is full of ad-hoc macros that
polute the global namespace. Once the cleanup of sdram.c would be complete
and all registers would be loaded from this new socfpga_sdram_config, a
board file will only pass this structure into the sdram.c . This will
hide all the horrors generated by QTS in the board directory.

Signed-off-by: Marek Vasut <marex@denx.de>
drivers/ddr/altera/sdram.c