]> git.baikalelectronics.ru Git - uboot.git/commit
sunxi: add gtbus-initialisation for sun9i
authorPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Fri, 28 Oct 2016 10:21:29 +0000 (18:21 +0800)
committerHans de Goede <hdegoede@redhat.com>
Sun, 30 Oct 2016 10:38:04 +0000 (11:38 +0100)
commitefe868666b021d11b38efc249c6995614e59c10d
treed00e4adeea0e0102946a9affc3b1ba327ff5d4c0
parent26634033c7c34ca25a7a5d5e1db7d8ec197fa803
sunxi: add gtbus-initialisation for sun9i

On sun9i, the GTBUS manages transaction priority and bandwidth
for multiple read ports when accessing DRAM. The initialisation
mirrors the settings from Allwinner's boot0 for now, even though
this may not be optimal for all applications (e.g. headless
systems might want to give priority to IO modules).

Adding a common callout to gtbus_init() from the SPL clock init
with a weakly defined implementation in sunxi/clock.c to fallback
to for platforms that don't require this.

[wens@csie.org: Moved gtbus_sun9i.c to arch/arm/mach-sunxi/; style cleanup]
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
arch/arm/include/asm/arch-sunxi/cpu_sun9i.h
arch/arm/include/asm/arch-sunxi/gtbus.h [new file with mode: 0644]
arch/arm/include/asm/arch-sunxi/gtbus_sun9i.h [new file with mode: 0644]
arch/arm/mach-sunxi/Makefile
arch/arm/mach-sunxi/clock.c
arch/arm/mach-sunxi/gtbus_sun9i.c [new file with mode: 0644]