diff options
author | Ted Hess <thess@kitschensync.net> | 2016-06-05 14:16:08 -0400 |
---|---|---|
committer | Ted Hess <thess@kitschensync.net> | 2016-06-05 14:16:08 -0400 |
commit | d0c6458339446b74ac3dc150a7f873a4ca8902ad (patch) | |
tree | 0a8b9277fa298d20fdaebe762e04c7636f88e3bf /target/linux/ixp4xx/patches-4.1/030-gpio_line_config.patch | |
parent | 2ce19c0c1f30af4290e31a3d64d1f0cff8d21824 (diff) | |
download | master-31e0f0ae-d0c6458339446b74ac3dc150a7f873a4ca8902ad.tar.gz master-31e0f0ae-d0c6458339446b74ac3dc150a7f873a4ca8902ad.tar.bz2 master-31e0f0ae-d0c6458339446b74ac3dc150a7f873a4ca8902ad.zip |
ixp4xx: Drop linux 4.1 support
Signed-off-by: Ted Hess <thess@kitschensync.net>
Diffstat (limited to 'target/linux/ixp4xx/patches-4.1/030-gpio_line_config.patch')
-rw-r--r-- | target/linux/ixp4xx/patches-4.1/030-gpio_line_config.patch | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/target/linux/ixp4xx/patches-4.1/030-gpio_line_config.patch b/target/linux/ixp4xx/patches-4.1/030-gpio_line_config.patch deleted file mode 100644 index 0e51793273..0000000000 --- a/target/linux/ixp4xx/patches-4.1/030-gpio_line_config.patch +++ /dev/null @@ -1,73 +0,0 @@ ---- a/arch/arm/mach-ixp4xx/common.c -+++ b/arch/arm/mach-ixp4xx/common.c -@@ -93,22 +93,7 @@ void __init ixp4xx_map_io(void) - /* - * GPIO-functions - */ --/* -- * The following converted to the real HW bits the gpio_line_config -- */ --/* GPIO pin types */ --#define IXP4XX_GPIO_OUT 0x1 --#define IXP4XX_GPIO_IN 0x2 -- --/* GPIO signal types */ --#define IXP4XX_GPIO_LOW 0 --#define IXP4XX_GPIO_HIGH 1 -- --/* GPIO Clocks */ --#define IXP4XX_GPIO_CLK_0 14 --#define IXP4XX_GPIO_CLK_1 15 -- --static void gpio_line_config(u8 line, u32 direction) -+void gpio_line_config(u8 line, u32 direction) - { - if (direction == IXP4XX_GPIO_IN) - *IXP4XX_GPIO_GPOER |= (1 << line); -@@ -116,17 +101,17 @@ static void gpio_line_config(u8 line, u3 - *IXP4XX_GPIO_GPOER &= ~(1 << line); - } - --static void gpio_line_get(u8 line, int *value) -+void gpio_line_get(u8 line, int *value) - { - *value = (*IXP4XX_GPIO_GPINR >> line) & 0x1; - } - --static void gpio_line_set(u8 line, int value) -+void gpio_line_set(u8 line, int value) - { -- if (value == IXP4XX_GPIO_HIGH) -- *IXP4XX_GPIO_GPOUTR |= (1 << line); -- else if (value == IXP4XX_GPIO_LOW) -+ if (value == IXP4XX_GPIO_LOW) - *IXP4XX_GPIO_GPOUTR &= ~(1 << line); -+ else -+ *IXP4XX_GPIO_GPOUTR |= (1 << line); - } - - /************************************************************************* ---- a/arch/arm/mach-ixp4xx/include/mach/platform.h -+++ b/arch/arm/mach-ixp4xx/include/mach/platform.h -@@ -131,5 +131,21 @@ struct pci_sys_data; - extern int ixp4xx_setup(int nr, struct pci_sys_data *sys); - extern struct pci_ops ixp4xx_ops; - -+/* GPIO pin types */ -+#define IXP4XX_GPIO_OUT 0x1 -+#define IXP4XX_GPIO_IN 0x2 -+ -+/* GPIO signal types */ -+#define IXP4XX_GPIO_LOW 0 -+#define IXP4XX_GPIO_HIGH 1 -+ -+/* GPIO Clocks */ -+#define IXP4XX_GPIO_CLK_0 14 -+#define IXP4XX_GPIO_CLK_1 15 -+ -+void gpio_line_config(u8 line, u32 direction); -+void gpio_line_get(u8 line, int *value); -+void gpio_line_set(u8 line, int value); -+ - #endif // __ASSEMBLY__ - |