u-boot-brain/arch/arm/mach-sunxi
Philipp Tomsich dcb50090d7 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>
2017-01-04 16:37:42 +01:00
..
board.c spl: sunxi: Drop spl_board_announce_boot_device() 2016-12-09 08:40:16 -05:00
clock_sun4i.c sunxi: Move cpu independent code to mach directory 2016-04-01 09:52:28 +02:00
clock_sun6i.c sun6i: Restrict some register initialization to Allwinner A31 SoC 2017-01-04 16:37:40 +01:00
clock_sun8i_a83t.c sunxi: Move cpu independent code to mach directory 2016-04-01 09:52:28 +02:00
clock_sun9i.c sunxi: add initial clock setup for sun9i for SPL 2016-10-30 11:38:04 +01:00
clock.c sunxi: add gtbus-initialisation for sun9i 2016-10-30 11:38:04 +01:00
cpu_info.c sunxi: fix SID read on H3 2016-12-20 16:08:50 +01:00
dram_helpers.c ARM: Rework and correct barrier definitions 2016-08-05 07:23:57 -04:00
dram_sun4i.c sunxi: Move cpu independent code to mach directory 2016-04-01 09:52:28 +02:00
dram_sun6i.c sunxi: Move cpu independent code to mach directory 2016-04-01 09:52:28 +02:00
dram_sun8i_a23.c sunxi: Move cpu independent code to mach directory 2016-04-01 09:52:28 +02:00
dram_sun8i_a33.c sunxi: Move cpu independent code to mach directory 2016-04-01 09:52:28 +02:00
dram_sun8i_a83t.c sunxi: Move cpu independent code to mach directory 2016-04-01 09:52:28 +02:00
dram_sun8i_h3.c sunxi: H3: Rework MBUS priority setup 2017-01-04 16:37:42 +01:00
dram_sun9i.c sunxi: DRAM initialisation for sun9i 2016-10-30 11:38:04 +01:00
gtbus_sun9i.c sunxi: add gtbus-initialisation for sun9i 2016-10-30 11:38:04 +01:00
Makefile sunxi: add gtbus-initialisation for sun9i 2016-10-30 11:38:04 +01:00
p2wi.c sunxi: Move cpu independent code to mach directory 2016-04-01 09:52:28 +02:00
pinmux.c sunxi: Move cpu independent code to mach directory 2016-04-01 09:52:28 +02:00
pmic_bus.c sunxi: power: add AXP809 support 2016-05-25 17:52:39 +02:00
prcm.c sunxi: Move cpu independent code to mach directory 2016-04-01 09:52:28 +02:00
rmr_switch.S sunxi: A64: do an RMR switch if started in AArch32 mode 2017-01-04 16:37:42 +01:00
rsb.c sunxi: Move cpu independent code to mach directory 2016-04-01 09:52:28 +02:00
usb_phy.c sunxi: A64: enable USB support 2016-10-30 11:38:04 +01:00