diff options
author | Michal Simek <michal.simek@xilinx.com> | 2018-07-13 09:26:28 +0300 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2018-07-19 11:49:55 +0300 |
commit | 4a693669670fffd9a614c8c5c9f5ba027fd0185e (patch) | |
tree | 1196bc82934666aae328518b95cb508ba3ed2dba /arch/microblaze/include | |
parent | c7e794892489316c035e6a0c9e3753306f79d4c0 (diff) | |
download | u-boot-4a693669670fffd9a614c8c5c9f5ba027fd0185e.tar.xz |
microblaze: Convert generic platform to DM gpio
Converting GPIO to DM requires to do changes in reset subsystem
that's why support for Microblaze soft reset via sysreset and GPIO
sysreset support was added.
These two patches enables enabling GPIO DM.
Microblaze soft reset is bind at last reset method.
GPIO reset is handled via sysreset with adding this fragment to DT.
gpio-restart {
compatible = "gpio-restart";
gpios = <&reset_gpio 0 0 0>;
/* 3rd cell ACTIVE_HIGH = 0, ACTIVE_LOW = 1 */
};
hard-reset-gpio property is not documented and also handled.
Conversion is required.
Unfortunately do_reset is required for SPL that's why use only soft
microblaze reset for now.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze/include')
-rw-r--r-- | arch/microblaze/include/asm/gpio.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/microblaze/include/asm/gpio.h b/arch/microblaze/include/asm/gpio.h index 4762de0243..306ab4c9f2 100644 --- a/arch/microblaze/include/asm/gpio.h +++ b/arch/microblaze/include/asm/gpio.h @@ -1,14 +1 @@ -#ifndef _ASM_MICROBLAZE_GPIO_H_ -#define _ASM_MICROBLAZE_GPIO_H_ - #include <asm-generic/gpio.h> - -/* Allocation functions */ -extern int gpio_alloc_dual(u32 baseaddr, const char *name, u32 gpio_no0, - u32 gpio_no1); -extern int gpio_alloc(u32 baseaddr, const char *name, u32 gpio_no); - -#define gpio_status() gpio_info() -extern void gpio_info(void); - -#endif |