mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
pinctrl: sunxi: move PIO_BASE into sunxi_gpio.h
On the Allwinner platform we were describing a quite comprehensive memory map in a per-SoC header unser arch/arm. In the old days that was used by every driver, but nowadays it should only be needed by SPL drivers (not using the DT). Many addresses in there were never used, and some are not needed anymore. To avoid a dependency on CPU specific headers in an arch specific directory, move the definition of the pinctroller MMIO base address into the sunxi_gpio.h header, because the SPL routines for GPIO should be the only one needing this address. This is a first step towards getting rid of cpu_sun[x]i.h completely, and allows to remove the inclusion of that file from the sunxi_gpio.h header. Signed-off-by: Andre Przywara <andre.przywara@arm.com>
This commit is contained in:
@@ -12,7 +12,17 @@
|
||||
#define _SUNXI_GPIO_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <asm/arch/cpu.h>
|
||||
|
||||
#if defined(CONFIG_MACH_SUN9I)
|
||||
#define SUNXI_PIO_BASE 0x06000800
|
||||
#define SUNXI_R_PIO_BASE 0x08002c00
|
||||
#elif defined(CONFIG_SUN50I_GEN_H6)
|
||||
#define SUNXI_PIO_BASE 0x0300b000
|
||||
#define SUNXI_R_PIO_BASE 0x07022000
|
||||
#else
|
||||
#define SUNXI_PIO_BASE 0x01c20800
|
||||
#define SUNXI_R_PIO_BASE 0x01f02c00
|
||||
#endif
|
||||
|
||||
/*
|
||||
* sunxi has 9 banks of gpio, they are:
|
||||
|
||||
Reference in New Issue
Block a user