diff options
author | Christophe Leroy <christophe.leroy@csgroup.eu> | 2022-10-14 10:01:41 +0200 |
---|---|---|
committer | Christophe Leroy <christophe.leroy@csgroup.eu> | 2023-02-11 08:47:58 +0100 |
commit | 02239394988d363b65234be9f7ca75f864e523b3 (patch) | |
tree | ae03eb57e93b30ea84805e3cedf9739e06fd5f59 /arch/powerpc | |
parent | 19a68636b40d12dd73b92adc13bc3d8fdd53c03c (diff) | |
download | u-boot-02239394988d363b65234be9f7ca75f864e523b3.tar.gz u-boot-02239394988d363b65234be9f7ca75f864e523b3.tar.bz2 u-boot-02239394988d363b65234be9f7ca75f864e523b3.zip |
driver, gpio: Add support for MPC 8xx CPU ports
Ports A, C and D are 16 bits ports.
Ports B and E are 32 bits ports.
The "compatible" is used to determine each port type.
This patch was originally written by Charles Frey who's
email address is not valid anymore as he left the company.
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: FRANJOU Stephane <stephane.franjou@csgroup.eu>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/Kconfig | 1 | ||||
-rw-r--r-- | arch/powerpc/include/asm/arch-mpc8xx/gpio.h | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index e0801c2594..bee59c3bea 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -28,6 +28,7 @@ config MPC85xx config MPC8xx bool "MPC8xx" + select CREATE_ARCH_SYMLINK select BOARD_EARLY_INIT_F imply CMD_REGINFO imply WDT_MPC8xx diff --git a/arch/powerpc/include/asm/arch-mpc8xx/gpio.h b/arch/powerpc/include/asm/arch-mpc8xx/gpio.h new file mode 100644 index 0000000000..6b73acbaee --- /dev/null +++ b/arch/powerpc/include/asm/arch-mpc8xx/gpio.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +#ifndef _MPC8XX_GPIO_H_ +#define _MPC8XX_GPIO_H_ + +struct mpc8xx_gpio_plat { + ulong addr; + unsigned long size; + uint ngpios; +}; + +#endif /* MPC8XX_GPIO_H_ */ |