ddr: altera: sdram: Clean up set_sdr_ctrlcfg()
authorMarek Vasut <marex@denx.de>
Sat, 1 Aug 2015 17:33:40 +0000 (19:33 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 06:17:35 +0000 (08:17 +0200)
commit56f0b81389df7efcdaecd7d722c4fcbf513b71aa
treefad0ec346cf02e4928ed84afbacca004540c635f
parentacf524187d1d7c028ad2ac7662bee6163514c728
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