]> git.karo-electronics.de Git - karo-tx-uboot.git/commit
ddr: altera: sdram: Clean up set_sdr_ctrlcfg()
authorMarek Vasut <marex@denx.de>
Sat, 1 Aug 2015 17:33:40 +0000 (19:33 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 8 Aug 2015 12:14:25 +0000 (14:14 +0200)
commit067c853fe6ad67217f444428ccbfa038dfa8522d
tree1ff7bf0757109141220d3a1d7261f435e1a5b5c5
parentf36716971d3700a7b57be331136777bb82392de3
ddr: altera: sdram: Clean up set_sdr_ctrlcfg()

Get rid of the constant clrsetbits_le32(), instead prepare the whole
content of the register once and write it at the end of the function.
The big plan here is to remove all the CONFIG_HPS_SDR_ macros, hide
them in QTS compatibility layer in board implementation and pass only
a small structure into the driver.

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