]> 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)
committerMarek Vasut <marex@denx.de>
Sat, 8 Aug 2015 12:14:26 +0000 (14:14 +0200)
commit04ae4489975a54ad36a088293f96f32e3c795b39
treeb24d1b41a3ccd5cebc420385f32355a63f034b5c
parent9a48a9ac6cf5d647e38bdf43b91fe751e5415f6e
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