summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2020-01-28 00:46:40 +0000
committerJagan Teki <jagan@amarulasolutions.com>2020-03-18 18:11:30 +0530
commit2775e08a2b73e53b26c23c67301ecfdae182b899 (patch)
treef9da8eec19a95bc0c78a3db71b67142a48eda89e /arch/arm/mach-omap2
parent3586cb82277e8af9eae38b354bb8b2aee38ee377 (diff)
sunxi: SPL SPI: Split off SPI0 base address
So far on all supported Allwinner SoCs we find the old generation SPI controller always at address 0x1c05000, and the new generation one at 0x1c68000. However the Allwinner R40 SoC has a new generation SPI at the old address, and the H6 uses a completely different address. So split off the base address from the respective SPI registers, by changing the #defines to just contain offsets. The base address is provided by a function, so it can easily be extended later when support for those SoCs materialises. This does not change the code size (since the toolchain is clever enough to optimise this properly), also does not bring any functional change at this point. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
Diffstat (limited to 'arch/arm/mach-omap2')
0 files changed, 0 insertions, 0 deletions