summaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>2017-01-02 11:48:38 +0000
committerJagan Teki <jagan@openedev.com>2017-01-04 16:37:42 +0100
commitdcb50090d7e52bdee9108db4f2b968bacd9150dc (patch)
treed2b7f3babc4a904b141a98b7cb477cb58c6dfff0 /arch/sh
parent52e3182b82e62aa3dcac4a8b656e77358ef45d14 (diff)
downloadu-boot-dcb50090d7e52bdee9108db4f2b968bacd9150dc.tar.gz
u-boot-dcb50090d7e52bdee9108db4f2b968bacd9150dc.tar.xz
u-boot-dcb50090d7e52bdee9108db4f2b968bacd9150dc.zip
sunxi: H3: Rework MBUS priority setup
So far the MBUS priority setup was done by writing "magic" values taken from a DRAM controller register dump after a boot0 run. By peeking at the Linux (sic!) MBUS driver [1] from the Allwinner BSP kernel, we learned more about the actual meaning of those bits. Add macros and refactor the setup function to make the MBUS setup much more readable and meaningful. The actual values used now are a transformation of the values used before, which are assembled by the new code to result in the same register writes. So this rework does not change any settings, also the code size stays the same. The respective source files in the BSP kernel had a proper GPL header, so lifting this code and information into U-Boot is legal. [Andre: provide a convenience macro to fit definitions on one line] [1] https://github.com/longsleep/linux-pine64/blob/lichee-dev-v3.10.65/drivers/bus/sunxi_mbus.c Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Signed-off-by: Andre Przywara <andre.przywara@arm.com> Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com> Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'arch/sh')
0 files changed, 0 insertions, 0 deletions