]> git.dujemihanovic.xyz Git - u-boot.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)
commitea1af9f26bdbe3c9ed5ffb8ce982dc45edfaf680
treed00e4adeea0e0102946a9affc3b1ba327ff5d4c0
parent297bb9e0fc7049c7771feed5e11cf6db89b19f27
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]