Commit 554cdaef authored by Andrew Lunn's avatar Andrew Lunn Committed by Nicolas Pitre

ARM: orion5x: Refactor mpp code to use common orion platform mpp.

Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarNicolas Pitre <nico@fluxnic.net>
parent b2f427a1
...@@ -267,28 +267,28 @@ static struct platform_device d2net_gpio_buttons = { ...@@ -267,28 +267,28 @@ static struct platform_device d2net_gpio_buttons = {
* General Setup * General Setup
****************************************************************************/ ****************************************************************************/
static struct orion5x_mpp_mode d2net_mpp_modes[] __initdata = { static unsigned int d2net_mpp_modes[] __initdata = {
{ 0, MPP_GPIO }, /* Board ID (bit 0) */ MPP0_GPIO, /* Board ID (bit 0) */
{ 1, MPP_GPIO }, /* Board ID (bit 1) */ MPP1_GPIO, /* Board ID (bit 1) */
{ 2, MPP_GPIO }, /* Board ID (bit 2) */ MPP2_GPIO, /* Board ID (bit 2) */
{ 3, MPP_GPIO }, /* SATA 0 power */ MPP3_GPIO, /* SATA 0 power */
{ 4, MPP_UNUSED }, MPP4_UNUSED,
{ 5, MPP_GPIO }, /* Fan fail detection */ MPP5_GPIO, /* Fan fail detection */
{ 6, MPP_GPIO }, /* Red front LED */ MPP6_GPIO, /* Red front LED */
{ 7, MPP_UNUSED }, MPP7_UNUSED,
{ 8, MPP_GPIO }, /* Rear power switch (on|auto) */ MPP8_GPIO, /* Rear power switch (on|auto) */
{ 9, MPP_GPIO }, /* Rear power switch (auto|off) */ MPP9_GPIO, /* Rear power switch (auto|off) */
{ 10, MPP_UNUSED }, MPP10_UNUSED,
{ 11, MPP_UNUSED }, MPP11_UNUSED,
{ 12, MPP_GPIO }, /* SATA 1 power */ MPP12_GPIO, /* SATA 1 power */
{ 13, MPP_UNUSED }, MPP13_UNUSED,
{ 14, MPP_SATA_LED }, /* SATA 0 active */ MPP14_SATA_LED, /* SATA 0 active */
{ 15, MPP_SATA_LED }, /* SATA 1 active */ MPP15_SATA_LED, /* SATA 1 active */
{ 16, MPP_GPIO }, /* Blue front LED blink control */ MPP16_GPIO, /* Blue front LED blink control */
{ 17, MPP_UNUSED }, MPP17_UNUSED,
{ 18, MPP_GPIO }, /* Front button (0 = Released, 1 = Pushed ) */ MPP18_GPIO, /* Front button (0 = Released, 1 = Pushed ) */
{ 19, MPP_UNUSED }, MPP19_UNUSED,
{ -1 } 0,
/* 22: USB port 1 fuse (0 = Fail, 1 = Ok) */ /* 22: USB port 1 fuse (0 = Fail, 1 = Ok) */
/* 23: Blue front LED off */ /* 23: Blue front LED off */
/* 24: Inhibit board power off (0 = Disabled, 1 = Enabled) */ /* 24: Inhibit board power off (0 = Disabled, 1 = Enabled) */
......
...@@ -298,28 +298,28 @@ static struct i2c_board_info __initdata db88f5281_i2c_rtc = { ...@@ -298,28 +298,28 @@ static struct i2c_board_info __initdata db88f5281_i2c_rtc = {
/***************************************************************************** /*****************************************************************************
* General Setup * General Setup
****************************************************************************/ ****************************************************************************/
static struct orion5x_mpp_mode db88f5281_mpp_modes[] __initdata = { static unsigned int db88f5281_mpp_modes[] __initdata = {
{ 0, MPP_GPIO }, /* USB Over Current */ MPP0_GPIO, /* USB Over Current */
{ 1, MPP_GPIO }, /* USB Vbat input */ MPP1_GPIO, /* USB Vbat input */
{ 2, MPP_PCI_ARB }, /* PCI_REQn[2] */ MPP2_PCI_ARB, /* PCI_REQn[2] */
{ 3, MPP_PCI_ARB }, /* PCI_GNTn[2] */ MPP3_PCI_ARB, /* PCI_GNTn[2] */
{ 4, MPP_PCI_ARB }, /* PCI_REQn[3] */ MPP4_PCI_ARB, /* PCI_REQn[3] */
{ 5, MPP_PCI_ARB }, /* PCI_GNTn[3] */ MPP5_PCI_ARB, /* PCI_GNTn[3] */
{ 6, MPP_GPIO }, /* JP0, CON17.2 */ MPP6_GPIO, /* JP0, CON17.2 */
{ 7, MPP_GPIO }, /* JP1, CON17.1 */ MPP7_GPIO, /* JP1, CON17.1 */
{ 8, MPP_GPIO }, /* JP2, CON11.2 */ MPP8_GPIO, /* JP2, CON11.2 */
{ 9, MPP_GPIO }, /* JP3, CON11.3 */ MPP9_GPIO, /* JP3, CON11.3 */
{ 10, MPP_GPIO }, /* RTC int */ MPP10_GPIO, /* RTC int */
{ 11, MPP_GPIO }, /* Baud Rate Generator */ MPP11_GPIO, /* Baud Rate Generator */
{ 12, MPP_GPIO }, /* PCI int 1 */ MPP12_GPIO, /* PCI int 1 */
{ 13, MPP_GPIO }, /* PCI int 2 */ MPP13_GPIO, /* PCI int 2 */
{ 14, MPP_NAND }, /* NAND_REn[2] */ MPP14_NAND, /* NAND_REn[2] */
{ 15, MPP_NAND }, /* NAND_WEn[2] */ MPP15_NAND, /* NAND_WEn[2] */
{ 16, MPP_UART }, /* UART1_RX */ MPP16_UART, /* UART1_RX */
{ 17, MPP_UART }, /* UART1_TX */ MPP17_UART, /* UART1_TX */
{ 18, MPP_UART }, /* UART1_CTSn */ MPP18_UART, /* UART1_CTSn */
{ 19, MPP_UART }, /* UART1_RTSn */ MPP19_UART, /* UART1_RTSn */
{ -1 }, 0,
}; };
static void __init db88f5281_init(void) static void __init db88f5281_init(void)
......
...@@ -385,76 +385,76 @@ static struct mv_sata_platform_data dns323_sata_data = { ...@@ -385,76 +385,76 @@ static struct mv_sata_platform_data dns323_sata_data = {
/**************************************************************************** /****************************************************************************
* General Setup * General Setup
*/ */
static struct orion5x_mpp_mode dns323a_mpp_modes[] __initdata = { static unsigned int dns323a_mpp_modes[] __initdata = {
{ 0, MPP_PCIE_RST_OUTn }, MPP0_PCIE_RST_OUTn,
{ 1, MPP_GPIO }, /* right amber LED (sata ch0) */ MPP1_GPIO, /* right amber LED (sata ch0) */
{ 2, MPP_GPIO }, /* left amber LED (sata ch1) */ MPP2_GPIO, /* left amber LED (sata ch1) */
{ 3, MPP_UNUSED }, MPP3_UNUSED,
{ 4, MPP_GPIO }, /* power button LED */ MPP4_GPIO, /* power button LED */
{ 5, MPP_GPIO }, /* power button LED */ MPP5_GPIO, /* power button LED */
{ 6, MPP_GPIO }, /* GMT G751-2f overtemp */ MPP6_GPIO, /* GMT G751-2f overtemp */
{ 7, MPP_GPIO }, /* M41T80 nIRQ/OUT/SQW */ MPP7_GPIO, /* M41T80 nIRQ/OUT/SQW */
{ 8, MPP_GPIO }, /* triggers power off */ MPP8_GPIO, /* triggers power off */
{ 9, MPP_GPIO }, /* power button switch */ MPP9_GPIO, /* power button switch */
{ 10, MPP_GPIO }, /* reset button switch */ MPP10_GPIO, /* reset button switch */
{ 11, MPP_UNUSED }, MPP11_UNUSED,
{ 12, MPP_UNUSED }, MPP12_UNUSED,
{ 13, MPP_UNUSED }, MPP13_UNUSED,
{ 14, MPP_UNUSED }, MPP14_UNUSED,
{ 15, MPP_UNUSED }, MPP15_UNUSED,
{ 16, MPP_UNUSED }, MPP16_UNUSED,
{ 17, MPP_UNUSED }, MPP17_UNUSED,
{ 18, MPP_UNUSED }, MPP18_UNUSED,
{ 19, MPP_UNUSED }, MPP19_UNUSED,
{ -1 }, 0,
}; };
static struct orion5x_mpp_mode dns323b_mpp_modes[] __initdata = { static unsigned int dns323b_mpp_modes[] __initdata = {
{ 0, MPP_UNUSED }, MPP0_UNUSED,
{ 1, MPP_GPIO }, /* right amber LED (sata ch0) */ MPP1_GPIO, /* right amber LED (sata ch0) */
{ 2, MPP_GPIO }, /* left amber LED (sata ch1) */ MPP2_GPIO, /* left amber LED (sata ch1) */
{ 3, MPP_GPIO }, /* system up flag */ MPP3_GPIO, /* system up flag */
{ 4, MPP_GPIO }, /* power button LED */ MPP4_GPIO, /* power button LED */
{ 5, MPP_GPIO }, /* power button LED */ MPP5_GPIO, /* power button LED */
{ 6, MPP_GPIO }, /* GMT G751-2f overtemp */ MPP6_GPIO, /* GMT G751-2f overtemp */
{ 7, MPP_GPIO }, /* M41T80 nIRQ/OUT/SQW */ MPP7_GPIO, /* M41T80 nIRQ/OUT/SQW */
{ 8, MPP_GPIO }, /* triggers power off */ MPP8_GPIO, /* triggers power off */
{ 9, MPP_GPIO }, /* power button switch */ MPP9_GPIO, /* power button switch */
{ 10, MPP_GPIO }, /* reset button switch */ MPP10_GPIO, /* reset button switch */
{ 11, MPP_UNUSED }, MPP11_UNUSED,
{ 12, MPP_SATA_LED }, MPP12_SATA_LED,
{ 13, MPP_SATA_LED }, MPP13_SATA_LED,
{ 14, MPP_SATA_LED }, MPP14_SATA_LED,
{ 15, MPP_SATA_LED }, MPP15_SATA_LED,
{ 16, MPP_UNUSED }, MPP16_UNUSED,
{ 17, MPP_UNUSED }, MPP17_UNUSED,
{ 18, MPP_UNUSED }, MPP18_UNUSED,
{ 19, MPP_UNUSED }, MPP19_UNUSED,
{ -1 }, 0,
}; };
static struct orion5x_mpp_mode dns323c_mpp_modes[] __initdata = { static unsigned int dns323c_mpp_modes[] __initdata = {
{ 0, MPP_GPIO }, /* ? input */ MPP0_GPIO, /* ? input */
{ 1, MPP_GPIO }, /* input power switch (0 = pressed) */ MPP1_GPIO, /* input power switch (0 = pressed) */
{ 2, MPP_GPIO }, /* output power off */ MPP2_GPIO, /* output power off */
{ 3, MPP_UNUSED }, /* ? output */ MPP3_UNUSED, /* ? output */
{ 4, MPP_UNUSED }, /* ? output */ MPP4_UNUSED, /* ? output */
{ 5, MPP_UNUSED }, /* ? output */ MPP5_UNUSED, /* ? output */
{ 6, MPP_UNUSED }, /* ? output */ MPP6_UNUSED, /* ? output */
{ 7, MPP_UNUSED }, /* ? output */ MPP7_UNUSED, /* ? output */
{ 8, MPP_GPIO }, /* i/o right amber LED */ MPP8_GPIO, /* i/o right amber LED */
{ 9, MPP_GPIO }, /* i/o left amber LED */ MPP9_GPIO, /* i/o left amber LED */
{ 10, MPP_GPIO }, /* input */ MPP10_GPIO, /* input */
{ 11, MPP_UNUSED }, MPP11_UNUSED,
{ 12, MPP_SATA_LED }, MPP12_SATA_LED,
{ 13, MPP_SATA_LED }, MPP13_SATA_LED,
{ 14, MPP_SATA_LED }, MPP14_SATA_LED,
{ 15, MPP_SATA_LED }, MPP15_SATA_LED,
{ 16, MPP_UNUSED }, MPP16_UNUSED,
{ 17, MPP_GPIO }, /* power button LED */ MPP17_GPIO, /* power button LED */
{ 18, MPP_GPIO }, /* fan speed bit 0 */ MPP18_GPIO, /* fan speed bit 0 */
{ 19, MPP_GPIO }, /* fan speed bit 1 */ MPP19_GPIO, /* fan speed bit 1 */
{ -1 }, 0,
}; };
/* Rev C1 Fan speed notes: /* Rev C1 Fan speed notes:
......
...@@ -180,31 +180,31 @@ static struct platform_device edmini_v2_gpio_buttons = { ...@@ -180,31 +180,31 @@ static struct platform_device edmini_v2_gpio_buttons = {
/***************************************************************************** /*****************************************************************************
* General Setup * General Setup
****************************************************************************/ ****************************************************************************/
static struct orion5x_mpp_mode edminiv2_mpp_modes[] __initdata = { static unsigned int edminiv2_mpp_modes[] __initdata = {
{ 0, MPP_UNUSED }, MPP0_UNUSED,
{ 1, MPP_UNUSED }, MPP1_UNUSED,
{ 2, MPP_UNUSED }, MPP2_UNUSED,
{ 3, MPP_GPIO }, /* RTC interrupt */ MPP3_GPIO, /* RTC interrupt */
{ 4, MPP_UNUSED }, MPP4_UNUSED,
{ 5, MPP_UNUSED }, MPP5_UNUSED,
{ 6, MPP_UNUSED }, MPP6_UNUSED,
{ 7, MPP_UNUSED }, MPP7_UNUSED,
{ 8, MPP_UNUSED }, MPP8_UNUSED,
{ 9, MPP_UNUSED }, MPP9_UNUSED,
{ 10, MPP_UNUSED }, MPP10_UNUSED,
{ 11, MPP_UNUSED }, MPP11_UNUSED,
{ 12, MPP_SATA_LED }, /* SATA 0 presence */ MPP12_SATA_LED, /* SATA 0 presence */
{ 13, MPP_SATA_LED }, /* SATA 1 presence */ MPP13_SATA_LED, /* SATA 1 presence */
{ 14, MPP_SATA_LED }, /* SATA 0 active */ MPP14_SATA_LED, /* SATA 0 active */
{ 15, MPP_SATA_LED }, /* SATA 1 active */ MPP15_SATA_LED, /* SATA 1 active */
/* 16: Power LED control (0 = On, 1 = Off) */ /* 16: Power LED control (0 = On, 1 = Off) */
{ 16, MPP_GPIO }, MPP16_GPIO,
/* 17: Power LED control select (0 = CPLD, 1 = GPIO16) */ /* 17: Power LED control select (0 = CPLD, 1 = GPIO16) */
{ 17, MPP_GPIO }, MPP17_GPIO,
/* 18: Power button status (0 = Released, 1 = Pressed) */ /* 18: Power button status (0 = Released, 1 = Pressed) */
{ 18, MPP_GPIO }, MPP18_GPIO,
{ 19, MPP_UNUSED }, MPP19_UNUSED,
{ -1 } 0,
}; };
static void __init edmini_v2_init(void) static void __init edmini_v2_init(void)
......
...@@ -315,28 +315,28 @@ static void kurobox_pro_power_off(void) ...@@ -315,28 +315,28 @@ static void kurobox_pro_power_off(void)
/***************************************************************************** /*****************************************************************************
* General Setup * General Setup
****************************************************************************/ ****************************************************************************/
static struct orion5x_mpp_mode kurobox_pro_mpp_modes[] __initdata = { static unsigned int kurobox_pro_mpp_modes[] __initdata = {
{ 0, MPP_UNUSED }, MPP0_UNUSED,
{ 1, MPP_UNUSED }, MPP1_UNUSED,
{ 2, MPP_GPIO }, /* GPIO Micon */ MPP2_GPIO, /* GPIO Micon */
{ 3, MPP_GPIO }, /* GPIO Rtc */ MPP3_GPIO, /* GPIO Rtc */
{ 4, MPP_UNUSED }, MPP4_UNUSED,
{ 5, MPP_UNUSED }, MPP5_UNUSED,
{ 6, MPP_NAND }, /* NAND Flash REn */ MPP6_NAND, /* NAND Flash REn */
{ 7, MPP_NAND }, /* NAND Flash WEn */ MPP7_NAND, /* NAND Flash WEn */
{ 8, MPP_UNUSED }, MPP8_UNUSED,
{ 9, MPP_UNUSED }, MPP9_UNUSED,
{ 10, MPP_UNUSED }, MPP10_UNUSED,
{ 11, MPP_UNUSED }, MPP11_UNUSED,
{ 12, MPP_SATA_LED }, /* SATA 0 presence */ MPP12_SATA_LED, /* SATA 0 presence */
{ 13, MPP_SATA_LED }, /* SATA 1 presence */ MPP13_SATA_LED, /* SATA 1 presence */
{ 14, MPP_SATA_LED }, /* SATA 0 active */ MPP14_SATA_LED, /* SATA 0 active */
{ 15, MPP_SATA_LED }, /* SATA 1 active */ MPP15_SATA_LED, /* SATA 1 active */
{ 16, MPP_UART }, /* UART1 RXD */ MPP16_UART, /* UART1 RXD */
{ 17, MPP_UART }, /* UART1 TXD */ MPP17_UART, /* UART1 TXD */
{ 18, MPP_UART }, /* UART1 CTSn */ MPP18_UART, /* UART1 CTSn */
{ 19, MPP_UART }, /* UART1 RTSn */ MPP19_UART, /* UART1 RTSn */
{ -1 }, 0,
}; };
static void __init kurobox_pro_init(void) static void __init kurobox_pro_init(void)
......
...@@ -251,28 +251,28 @@ static struct platform_device lschl_fan_device = { ...@@ -251,28 +251,28 @@ static struct platform_device lschl_fan_device = {
* GPIO Data * GPIO Data
****************************************************************************/ ****************************************************************************/
static struct orion5x_mpp_mode lschl_mpp_modes[] __initdata = { static unsigned int lschl_mpp_modes[] __initdata = {
{ 0, MPP_GPIO }, /* LED POWER */ MPP0_GPIO, /* LED POWER */
{ 1, MPP_GPIO }, /* HDD POWER */ MPP1_GPIO, /* HDD POWER */
{ 2, MPP_GPIO }, /* LED ALARM */ MPP2_GPIO, /* LED ALARM */
{ 3, MPP_GPIO }, /* LED INFO */ MPP3_GPIO, /* LED INFO */
{ 4, MPP_UNUSED }, MPP4_UNUSED,
{ 5, MPP_UNUSED }, MPP5_UNUSED,
{ 6, MPP_GPIO }, /* FAN LOCK */ MPP6_GPIO, /* FAN LOCK */
{ 7, MPP_GPIO }, /* SW INIT */ MPP7_GPIO, /* SW INIT */
{ 8, MPP_GPIO }, /* SW POWER */ MPP8_GPIO, /* SW POWER */
{ 9, MPP_GPIO }, /* USB POWER */ MPP9_GPIO, /* USB POWER */
{ 10, MPP_GPIO }, /* SW AUTO POWER */ MPP10_GPIO, /* SW AUTO POWER */
{ 11, MPP_UNUSED }, MPP11_UNUSED,
{ 12, MPP_UNUSED }, MPP12_UNUSED,
{ 13, MPP_UNUSED }, MPP13_UNUSED,
{ 14, MPP_GPIO }, /* FAN HIGH */ MPP14_GPIO, /* FAN HIGH */
{ 15, MPP_GPIO }, /* SW FUNC */ MPP15_GPIO, /* SW FUNC */
{ 16, MPP_GPIO }, /* FAN LOW */ MPP16_GPIO, /* FAN LOW */
{ 17, MPP_GPIO }, /* LED FUNC */ MPP17_GPIO, /* LED FUNC */
{ 18, MPP_UNUSED }, MPP18_UNUSED,
{ 19, MPP_UNUSED }, MPP19_UNUSED,
{ -1 }, 0,
}; };
static void __init lschl_init(void) static void __init lschl_init(void)
......
...@@ -200,28 +200,28 @@ static void ls_hgl_power_off(void) ...@@ -200,28 +200,28 @@ static void ls_hgl_power_off(void)
#define LS_HGL_GPIO_HDD_POWER 1 #define LS_HGL_GPIO_HDD_POWER 1
static struct orion5x_mpp_mode ls_hgl_mpp_modes[] __initdata = { static unsigned int ls_hgl_mpp_modes[] __initdata = {
{ 0, MPP_GPIO }, /* LED_PWR */ MPP0_GPIO, /* LED_PWR */
{ 1, MPP_GPIO }, /* HDD_PWR */ MPP1_GPIO, /* HDD_PWR */
{ 2, MPP_GPIO }, /* LED_ALARM */ MPP2_GPIO, /* LED_ALARM */
{ 3, MPP_GPIO }, /* LED_INFO */ MPP3_GPIO, /* LED_INFO */
{ 4, MPP_UNUSED }, MPP4_UNUSED,
{ 5, MPP_UNUSED }, MPP5_UNUSED,
{ 6, MPP_GPIO }, /* FAN_LCK */ MPP6_GPIO, /* FAN_LCK */
{ 7, MPP_GPIO }, /* INIT */ MPP7_GPIO, /* INIT */
{ 8, MPP_GPIO }, /* POWER */ MPP8_GPIO, /* POWER */
{ 9, MPP_GPIO }, /* USB_PWR */ MPP9_GPIO, /* USB_PWR */
{ 10, MPP_GPIO }, /* AUTO_POWER */ MPP10_GPIO, /* AUTO_POWER */
{ 11, MPP_UNUSED }, /* LED_ETH (dummy) */ MPP11_UNUSED, /* LED_ETH (dummy) */
{ 12, MPP_UNUSED }, MPP12_UNUSED,
{ 13, MPP_UNUSED }, MPP13_UNUSED,
{ 14, MPP_UNUSED }, MPP14_UNUSED,
{ 15, MPP_GPIO }, /* FUNC */ MPP15_GPIO, /* FUNC */
{ 16, MPP_UNUSED }, MPP16_UNUSED,
{ 17, MPP_GPIO }, /* LED_FUNC */ MPP17_GPIO, /* LED_FUNC */
{ 18, MPP_UNUSED }, MPP18_UNUSED,
{ 19, MPP_UNUSED }, MPP19_UNUSED,
{ -1 }, 0,
}; };
static void __init ls_hgl_init(void) static void __init ls_hgl_init(void)
......
...@@ -201,28 +201,28 @@ static void lsmini_power_off(void) ...@@ -201,28 +201,28 @@ static void lsmini_power_off(void)
#define LSMINI_GPIO_HDD_POWER0 1 #define LSMINI_GPIO_HDD_POWER0 1
#define LSMINI_GPIO_HDD_POWER1 19 #define LSMINI_GPIO_HDD_POWER1 19
static struct orion5x_mpp_mode lsmini_mpp_modes[] __initdata = { static unsigned int lsmini_mpp_modes[] __initdata = {
{ 0, MPP_UNUSED }, /* LED_RESERVE1 (unused) */ MPP0_UNUSED, /* LED_RESERVE1 (unused) */
{ 1, MPP_GPIO }, /* HDD_PWR */ MPP1_GPIO, /* HDD_PWR */
{ 2, MPP_GPIO }, /* LED_ALARM */ MPP2_GPIO, /* LED_ALARM */
{ 3, MPP_GPIO }, /* LED_INFO */ MPP3_GPIO, /* LED_INFO */
{ 4, MPP_UNUSED }, MPP4_UNUSED,
{ 5, MPP_UNUSED }, MPP5_UNUSED,
{ 6, MPP_UNUSED }, MPP6_UNUSED,
{ 7, MPP_UNUSED }, MPP7_UNUSED,
{ 8, MPP_UNUSED }, MPP8_UNUSED,
{ 9, MPP_GPIO }, /* LED_FUNC */ MPP9_GPIO, /* LED_FUNC */
{ 10, MPP_UNUSED }, MPP10_UNUSED,
{ 11, MPP_UNUSED }, /* LED_ETH (dummy) */ MPP11_UNUSED, /* LED_ETH (dummy) */
{ 12, MPP_UNUSED }, MPP12_UNUSED,
{ 13, MPP_UNUSED }, MPP13_UNUSED,
{ 14, MPP_GPIO }, /* LED_PWR */ MPP14_GPIO, /* LED_PWR */
{ 15, MPP_GPIO }, /* FUNC */ MPP15_GPIO, /* FUNC */
{ 16, MPP_GPIO }, /* USB_PWR */ MPP16_GPIO, /* USB_PWR */
{ 17, MPP_GPIO }, /* AUTO_POWER */ MPP17_GPIO, /* AUTO_POWER */
{ 18, MPP_GPIO }, /* POWER */ MPP18_GPIO, /* POWER */
{ 19, MPP_GPIO }, /* HDD_PWR1 */ MPP19_GPIO, /* HDD_PWR1 */
{ -1 }, 0,
}; };
static void __init lsmini_init(void) static void __init lsmini_init(void)
......
...@@ -12,154 +12,34 @@ ...@@ -12,154 +12,34 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/mbus.h> #include <linux/mbus.h>
#include <linux/io.h> #include <linux/io.h>
#include <asm/gpio.h>
#include <mach/hardware.h> #include <mach/hardware.h>
#include "common.h" #include <plat/mpp.h>
#include "mpp.h" #include "mpp.h"
#include "common.h"
static int is_5181l(void) static unsigned int __init orion5x_variant(void)
{
u32 dev;
u32 rev;
orion5x_pcie_id(&dev, &rev);
return !!(dev == MV88F5181_DEV_ID && rev >= MV88F5181L_REV_A0);
}
static int is_5182(void)
{ {
u32 dev; u32 dev;
u32 rev; u32 rev;
orion5x_pcie_id(&dev, &rev); orion5x_pcie_id(&dev, &rev);
return !!(dev == MV88F5182_DEV_ID); if (dev == MV88F5181_DEV_ID && rev >= MV88F5181L_REV_A0)
} return MPP_F5181_MASK;
static int is_5281(void) if (dev == MV88F5182_DEV_ID)
{ return MPP_F5182_MASK;
u32 dev;
u32 rev;
orion5x_pcie_id(&dev, &rev); if (dev == MV88F5281_DEV_ID)
return MPP_F5281_MASK;
return !!(dev == MV88F5281_DEV_ID); printk(KERN_ERR "MPP setup: unknown orion5x variant "
"(dev %#x rev %#x)\n", dev, rev);
return 0;
} }
static int __init determine_type_encoding(int mpp, enum orion5x_mpp_type type) void __init orion5x_mpp_conf(unsigned int *mpp_list)
{ {
switch (type) { orion_mpp_conf(mpp_list, orion5x_variant(),
case MPP_UNUSED: MPP_MAX, ORION5X_DEV_BUS_VIRT_BASE);
case MPP_GPIO:
if (mpp == 0)
return 3;
if (mpp >= 1 && mpp <= 15)
return 0;
if (mpp >= 16 && mpp <= 19) {
if (is_5182())
return 5;
if (type == MPP_UNUSED)
return 0;
}
return -1;
case MPP_PCIE_RST_OUTn:
if (mpp == 0)
return 0;
return -1;
case MPP_PCI_ARB:
if (mpp >= 0 && mpp <= 7)
return 2;
return -1;
case MPP_PCI_PMEn:
if (mpp == 2)
return 3;
return -1;
case MPP_GIGE:
if (mpp >= 8 && mpp <= 19)
return 1;
return -1;
case MPP_NAND:
if (is_5182() || is_5281()) {
if (mpp >= 4 && mpp <= 7)
return 4;
if (mpp >= 12 && mpp <= 17)
return 4;
}
return -1;
case MPP_PCI_CLK:
if (is_5181l() && mpp >= 6 && mpp <= 7)
return 5;
return -1;
case MPP_SATA_LED:
if (is_5182()) {
if (mpp >= 4 && mpp <= 7)
return 5;
if (mpp >= 12 && mpp <= 15)
return 5;
}
return -1;
case MPP_UART:
if (mpp >= 16 && mpp <= 19)
return 0;
return -1;
}
printk(KERN_INFO "unknown MPP type %d\n", type);
return -1;
}
void __init orion5x_mpp_conf(struct orion5x_mpp_mode *mode)
{
u32 mpp_0_7_ctrl = readl(MPP_0_7_CTRL);
u32 mpp_8_15_ctrl = readl(MPP_8_15_CTRL);
u32 mpp_16_19_ctrl = readl(MPP_16_19_CTRL);
for ( ; mode->mpp >= 0; mode++) {
u32 *reg;
int num_type;
int shift;
if (mode->mpp >= 0 && mode->mpp <= 7)
reg = &mpp_0_7_ctrl;
else if (mode->mpp >= 8 && mode->mpp <= 15)
reg = &mpp_8_15_ctrl;
else if (mode->mpp >= 16 && mode->mpp <= 19)
reg = &mpp_16_19_ctrl;
else {
printk(KERN_ERR "orion5x_mpp_conf: invalid MPP "
"(%d)\n", mode->mpp);
continue;
}
num_type = determine_type_encoding(mode->mpp, mode->type);
if (num_type < 0) {
printk(KERN_ERR "orion5x_mpp_conf: invalid MPP "
"combination (%d, %d)\n", mode->mpp,
mode->type);
continue;
}
shift = (mode->mpp & 7) << 2;
*reg &= ~(0xf << shift);
*reg |= (num_type & 0xf) << shift;
if (mode->type == MPP_UNUSED && (mode->mpp < 16 || is_5182()))
orion_gpio_set_unused(mode->mpp);
orion_gpio_set_valid(mode->mpp, !!(mode->type == MPP_GPIO));
}
writel(mpp_0_7_ctrl, MPP_0_7_CTRL);
writel(mpp_8_15_ctrl, MPP_8_15_CTRL);
writel(mpp_16_19_ctrl, MPP_16_19_CTRL);
} }
#ifndef __ARCH_ORION5X_MPP_H #ifndef __ARCH_ORION5X_MPP_H
#define __ARCH_ORION5X_MPP_H #define __ARCH_ORION5X_MPP_H
enum orion5x_mpp_type { #define MPP(_num, _sel, _in, _out, _F5181l, _F5182, _F5281) ( \
/* /* MPP number */ ((_num) & 0xff) | \
* This MPP is unused. /* MPP select value */ (((_sel) & 0xf) << 8) | \
*/ /* may be input signal */ ((!!(_in)) << 12) | \
MPP_UNUSED, /* may be output signal */ ((!!(_out)) << 13) | \
/* available on F5181l */ ((!!(_F5181l)) << 14) | \
/* /* available on F5182 */ ((!!(_F5182)) << 15) | \
* This MPP pin is used as a generic GPIO pin. Valid for /* available on F5281 */ ((!!(_F5281)) << 16))
* MPPs 0-15 and device bus data pins 16-31. On 5182, also
* valid for MPPs 16-19.
*/
MPP_GPIO,
/*
* This MPP is used as PCIe_RST_OUTn pin. Valid for
* MPP 0 only.
*/
MPP_PCIE_RST_OUTn,
/*
* This MPP is used as PCI arbiter pin (REQn/GNTn).
* Valid for MPPs 0-7 only.
*/
MPP_PCI_ARB,
/*
* This MPP is used as PCI_PMEn pin. Valid for MPP 2 only.
*/
MPP_PCI_PMEn,
/*
* This MPP is used as GigE half-duplex (COL, CRS) or GMII
* (RXERR, CRS, TXERR, TXD[7:4], RXD[7:4]) pin. Valid for
* MPPs 8-19 only.
*/
MPP_GIGE,
/*
* This MPP is used as NAND REn/WEn pin. Valid for MPPs
* 4-7 and 12-17 only, and only on the 5181l/5182/5281.
*/
MPP_NAND,
/*
* This MPP is used as a PCI clock output pin. Valid for
* MPPs 6-7 only, and only on the 5181l.
*/
MPP_PCI_CLK,
/*
* This MPP is used as a SATA presence/activity LED.
* Valid for MPPs 4-7 and 12-15 only, and only on the 5182.
*/
MPP_SATA_LED,
/*
* This MPP is used as UART1 RXD/TXD/CTSn/RTSn pin.
* Valid for MPPs 16-19 only.
*/
MPP_UART,
};
struct orion5x_mpp_mode {
int mpp;
enum orion5x_mpp_type type;
};
void orion5x_mpp_conf(struct orion5x_mpp_mode *mode);
/* num sel i o 5181 5182 5281 */
#define MPP_F5181_MASK MPP(0, 0x0, 0, 0, 1, 0, 0)
#define MPP_F5182_MASK MPP(0, 0x0, 0, 0, 0, 1, 0)
#define MPP_F5281_MASK MPP(0, 0x0, 0, 0, 0, 0, 1)
#define MPP0_UNUSED MPP(0, 0x3, 0, 0, 1, 1, 1)
#define MPP0_GPIO MPP(0, 0x3, 1, 1, 1, 1, 1)
#define MPP0_PCIE_RST_OUTn MPP(0, 0x0, 0, 0, 1, 1, 1)
#define MPP0_PCI_ARB MPP(0, 0x2, 0, 0, 1, 1, 1)
#define MPP1_UNUSED MPP(1, 0x0, 0, 0, 1, 1, 1)
#define MPP1_GPIO MPP(1, 0x0, 1, 1, 1, 1, 1)
#define MPP1_PCI_ARB MPP(1, 0x2, 0, 0, 1, 1, 1)
#define MPP2_UNUSED MPP(2, 0x0, 0, 0, 1, 1, 1)
#define MPP2_GPIO MPP(2, 0x0, 1, 1, 1, 1, 1)
#define MPP2_PCI_ARB MPP(2, 0x2, 0, 0, 1, 1, 1)
#define MPP2_PCI_PMEn MPP(2, 0x3, 0, 0, 1, 1, 1)
#define MPP3_UNUSED MPP(3, 0x0, 0, 0, 1, 1, 1)
#define MPP3_GPIO MPP(3, 0x0, 1, 1, 1, 1, 1)
#define MPP3_PCI_ARB MPP(3, 0x2, 0, 0, 1, 1, 1)
#define MPP4_UNUSED MPP(4, 0x0, 0, 0, 1, 1, 1)
#define MPP4_GPIO MPP(4, 0x0, 1, 1, 1, 1, 1)
#define MPP4_PCI_ARB MPP(4, 0x2, 0, 0, 1, 1, 1)
#define MPP4_NAND MPP(4, 0x4, 0, 0, 0, 1, 1)
#define MPP4_SATA_LED MPP(4, 0x5, 0, 0, 0, 1, 0)
#define MPP5_UNUSED MPP(5, 0x0, 0, 0, 1, 1, 1)
#define MPP5_GPIO MPP(5, 0x0, 1, 1, 1, 1, 1)
#define MPP5_PCI_ARB MPP(5, 0x2, 0, 0, 1, 1, 1)
#define MPP5_NAND MPP(5, 0x4, 0, 0, 0, 1, 1)
#define MPP5_SATA_LED MPP(5, 0x5, 0, 0, 0, 1, 0)
#define MPP6_UNUSED MPP(6, 0x0, 0, 0, 1, 1, 1)
#define MPP6_GPIO MPP(6, 0x0, 1, 1, 1, 1, 1)
#define MPP6_PCI_ARB MPP(6, 0x2, 0, 0, 1, 1, 1)
#define MPP6_NAND MPP(6, 0x4, 0, 0, 0, 1, 1)
#define MPP6_PCI_CLK MPP(6, 0x5, 0, 0, 1, 0, 0)
#define MPP6_SATA_LED MPP(6, 0x5, 0, 0, 0, 1, 0)
#define MPP7_UNUSED MPP(7, 0x0, 0, 0, 1, 1, 1)
#define MPP7_GPIO MPP(7, 0x0, 1, 1, 1, 1, 1)
#define MPP7_PCI_ARB MPP(7, 0x2, 0, 0, 1, 1, 1)
#define MPP7_NAND MPP(7, 0x4, 0, 0, 0, 1, 1)
#define MPP7_PCI_CLK MPP(7, 0x5, 0, 0, 1, 0, 0)
#define MPP7_SATA_LED MPP(7, 0x5, 0, 0, 0, 1, 0)
#define MPP8_UNUSED MPP(8, 0x0, 0, 0, 1, 1, 1)
#define MPP8_GPIO MPP(8, 0x0, 1, 1, 1, 1, 1)
#define MPP8_GIGE MPP(8, 0x1, 0, 0, 1, 1, 1)
#define MPP9_UNUSED MPP(9, 0x0, 0, 0, 1, 1, 1)
#define MPP9_GPIO MPP(9, 0x0, 0, 0, 1, 1, 1)
#define MPP9_GIGE MPP(9, 0x1, 1, 1, 1, 1, 1)
#define MPP10_UNUSED MPP(10, 0x0, 0, 0, 1, 1, 1)
#define MPP10_GPIO MPP(10, 0x0, 1, 1, 1, 1, 1)
#define MPP10_GIGE MPP(10, 0x1, 0, 0, 1, 1, 1)
#define MPP11_UNUSED MPP(11, 0x0, 0, 0, 1, 1, 1)
#define MPP11_GPIO MPP(11, 0x0, 1, 1, 1, 1, 1)
#define MPP11_GIGE MPP(11, 0x1, 0, 0, 1, 1, 1)
#define MPP12_UNUSED MPP(12, 0x0, 0, 0, 1, 1, 1)
#define MPP12_GPIO MPP(12, 0x0, 1, 1, 1, 1, 1)
#define MPP12_GIGE MPP(12, 0x1, 0, 0, 1, 1, 1)
#define MPP12_NAND MPP(12, 0x4, 0, 0, 0, 1, 1)
#define MPP12_SATA_LED MPP(12, 0x5, 0, 0, 0, 1, 0)
#define MPP13_UNUSED MPP(13, 0x0, 0, 0, 1, 1, 1)
#define MPP13_GPIO MPP(13, 0x0, 1, 1, 1, 1, 1)
#define MPP13_GIGE MPP(13, 0x1, 0, 0, 1, 1, 1)
#define MPP13_NAND MPP(13, 0x4, 0, 0, 0, 1, 1)
#define MPP13_SATA_LED MPP(13, 0x5, 0, 0, 0, 1, 0)
#define MPP14_UNUSED MPP(14, 0x0, 0, 0, 1, 1, 1)
#define MPP14_GPIO MPP(14, 0x0, 1, 1, 1, 1, 1)
#define MPP14_GIGE MPP(14, 0x1, 0, 0, 1, 1, 1)
#define MPP14_NAND MPP(14, 0x4, 0, 0, 0, 1, 1)
#define MPP14_SATA_LED MPP(14, 0x5, 0, 0, 0, 1, 0)
#define MPP15_UNUSED MPP(15, 0x0, 0, 0, 1, 1, 1)
#define MPP15_GPIO MPP(15, 0x0, 1, 1, 1, 1, 1)
#define MPP15_GIGE MPP(15, 0x1, 0, 0, 1, 1, 1)
#define MPP15_NAND MPP(15, 0x4, 0, 0, 0, 1, 1)
#define MPP15_SATA_LED MPP(15, 0x5, 0, 0, 0, 1, 0)
#define MPP16_UNUSED MPP(16, 0x0, 0, 0, 1, 1, 1)
#define MPP16_GPIO MPP(16, 0x5, 1, 1, 0, 1, 0)
#define MPP16_GIGE MPP(16, 0x1, 0, 0, 1, 1, 1)
#define MPP16_NAND MPP(16, 0x4, 0, 0, 0, 1, 1)
#define MPP16_UART MPP(16, 0x0, 0, 0, 0, 1, 1)
#define MPP17_UNUSED MPP(17, 0x0, 0, 0, 1, 1, 1)
#define MPP17_GPIO MPP(17, 0x5, 1, 1, 0, 1, 0)
#define MPP17_GIGE MPP(17, 0x1, 0, 0, 1, 1, 1)
#define MPP17_NAND MPP(17, 0x4, 0, 0, 0, 1, 1)
#define MPP17_UART MPP(17, 0x0, 0, 0, 0, 1, 1)
#define MPP18_UNUSED MPP(18, 0x0, 0, 0, 1, 1, 1)
#define MPP18_GPIO MPP(18, 0x5, 1, 1, 0, 1, 0)
#define MPP18_GIGE MPP(18, 0x1, 0, 0, 1, 1, 1)
#define MPP18_UART MPP(18, 0x0, 0, 0, 0, 1, 1)
#define MPP19_UNUSED MPP(19, 0x0, 0, 0, 1, 1, 1)
#define MPP19_GPIO MPP(19, 0x5, 1, 1, 0, 1, 0)
#define MPP19_GIGE MPP(19, 0x1, 0, 0, 1, 1, 1)
#define MPP19_UART MPP(19, 0x0, 0, 0, 0, 1, 1)
#define MPP_MAX 19
void orion5x_mpp_conf(unsigned int *mpp_list);
#endif #endif
...@@ -193,28 +193,28 @@ static void mss2_power_off(void) ...@@ -193,28 +193,28 @@ static void mss2_power_off(void)
/**************************************************************************** /****************************************************************************
* General Setup * General Setup
****************************************************************************/ ****************************************************************************/
static struct orion5x_mpp_mode mss2_mpp_modes[] __initdata = { static unsigned int mss2_mpp_modes[] __initdata = {
{ 0, MPP_GPIO }, /* Power LED */ MPP0_GPIO, /* Power LED */
{ 1, MPP_GPIO }, /* Error LED */ MPP1_GPIO, /* Error LED */
{ 2, MPP_UNUSED }, MPP2_UNUSED,
{ 3, MPP_GPIO }, /* RTC interrupt */ MPP3_GPIO, /* RTC interrupt */
{ 4, MPP_GPIO }, /* HDD ind. (Single/Dual)*/ MPP4_GPIO, /* HDD ind. (Single/Dual)*/
{ 5, MPP_GPIO }, /* HD0 5V control */ MPP5_GPIO, /* HD0 5V control */
{ 6, MPP_GPIO }, /* HD0 12V control */ MPP6_GPIO, /* HD0 12V control */
{ 7, MPP_GPIO }, /* HD1 5V control */ MPP7_GPIO, /* HD1 5V control */
{ 8, MPP_GPIO }, /* HD1 12V control */ MPP8_GPIO, /* HD1 12V control */
{ 9, MPP_UNUSED }, MPP9_UNUSED,
{ 10, MPP_GPIO }, /* Fan control */ MPP10_GPIO, /* Fan control */
{ 11, MPP_GPIO }, /* Power button */ MPP11_GPIO, /* Power button */
{ 12, MPP_GPIO }, /* Reset button */ MPP12_GPIO, /* Reset button */
{ 13, MPP_UNUSED }, MPP13_UNUSED,
{ 14, MPP_SATA_LED }, /* SATA 0 active */ MPP14_SATA_LED, /* SATA 0 active */
{ 15, MPP_SATA_LED }, /* SATA 1 active */ MPP15_SATA_LED, /* SATA 1 active */
{ 16, MPP_UNUSED }, MPP16_UNUSED,
{ 17, MPP_UNUSED }, MPP17_UNUSED,
{ 18, MPP_UNUSED }, MPP18_UNUSED,
{ 19, MPP_UNUSED }, MPP19_UNUSED,
{ -1 }, 0,
}; };
static void __init mss2_init(void) static void __init mss2_init(void)
......
...@@ -108,28 +108,28 @@ static struct platform_device mv2120_button_device = { ...@@ -108,28 +108,28 @@ static struct platform_device mv2120_button_device = {
/**************************************************************************** /****************************************************************************
* General Setup * General Setup
****************************************************************************/ ****************************************************************************/
static struct orion5x_mpp_mode mv2120_mpp_modes[] __initdata = { static unsigned int mv2120_mpp_modes[] __initdata = {
{ 0, MPP_GPIO }, /* Sys status LED */ MPP0_GPIO, /* Sys status LED */
{ 1, MPP_GPIO }, /* Sys error LED */ MPP1_GPIO, /* Sys error LED */
{ 2, MPP_GPIO }, /* OverTemp interrupt */ MPP2_GPIO, /* OverTemp interrupt */
{ 3, MPP_GPIO }, /* RTC interrupt */ MPP3_GPIO, /* RTC interrupt */
{ 4, MPP_GPIO }, /* V_LED 5V */ MPP4_GPIO, /* V_LED 5V */
{ 5, MPP_GPIO }, /* V_LED 3.3V */ MPP5_GPIO, /* V_LED 3.3V */
{ 6, MPP_UNUSED }, MPP6_UNUSED,
{ 7, MPP_UNUSED }, MPP7_UNUSED,
{ 8, MPP_GPIO }, /* SATA 0 fail LED */ MPP8_GPIO, /* SATA 0 fail LED */
{ 9, MPP_GPIO }, /* SATA 1 fail LED */ MPP9_GPIO, /* SATA 1 fail LED */
{ 10, MPP_UNUSED }, MPP10_UNUSED,
{ 11, MPP_UNUSED }, MPP11_UNUSED,
{ 12, MPP_SATA_LED }, /* SATA 0 presence */ MPP12_SATA_LED, /* SATA 0 presence */
{ 13, MPP_SATA_LED }, /* SATA 1 presence */ MPP13_SATA_LED, /* SATA 1 presence */
{ 14, MPP_SATA_LED }, /* SATA 0 active */ MPP14_SATA_LED, /* SATA 0 active */
{ 15, MPP_SATA_LED }, /* SATA 1 active */ MPP15_SATA_LED, /* SATA 1 active */
{ 16, MPP_UNUSED }, MPP16_UNUSED,
{ 17, MPP_GPIO }, /* Reset button */ MPP17_GPIO, /* Reset button */
{ 18, MPP_GPIO }, /* Power button */ MPP18_GPIO, /* Power button */
{ 19, MPP_GPIO }, /* Power off */ MPP19_GPIO, /* Power off */
{ -1 }, 0,
}; };
static struct i2c_board_info __initdata mv2120_i2c_rtc = { static struct i2c_board_info __initdata mv2120_i2c_rtc = {
......
...@@ -339,28 +339,28 @@ static struct platform_device net2big_gpio_buttons = { ...@@ -339,28 +339,28 @@ static struct platform_device net2big_gpio_buttons = {
* General Setup * General Setup
****************************************************************************/ ****************************************************************************/
static struct orion5x_mpp_mode net2big_mpp_modes[] __initdata = { static unsigned int net2big_mpp_modes[] __initdata = {
{ 0, MPP_GPIO }, /* Raid mode (bit 0) */ MPP0_GPIO, /* Raid mode (bit 0) */
{ 1, MPP_GPIO }, /* USB port 2 fuse (0 = Fail, 1 = Ok) */ MPP1_GPIO, /* USB port 2 fuse (0 = Fail, 1 = Ok) */
{ 2, MPP_GPIO }, /* Raid mode (bit 1) */ MPP2_GPIO, /* Raid mode (bit 1) */
{ 3, MPP_GPIO }, /* Board ID (bit 0) */ MPP3_GPIO, /* Board ID (bit 0) */
{ 4, MPP_GPIO }, /* Fan activity (0 = Off, 1 = On) */ MPP4_GPIO, /* Fan activity (0 = Off, 1 = On) */
{ 5, MPP_GPIO }, /* Fan fail detection */ MPP5_GPIO, /* Fan fail detection */
{ 6, MPP_GPIO }, /* Red front LED (0 = Off, 1 = On) */ MPP6_GPIO, /* Red front LED (0 = Off, 1 = On) */
{ 7, MPP_GPIO }, /* Disable initial blinking on front LED */ MPP7_GPIO, /* Disable initial blinking on front LED */
{ 8, MPP_GPIO }, /* Rear power switch (on|auto) */ MPP8_GPIO, /* Rear power switch (on|auto) */
{ 9, MPP_GPIO }, /* Rear power switch (auto|off) */ MPP9_GPIO, /* Rear power switch (auto|off) */
{ 10, MPP_GPIO }, /* SATA 1 red LED (0 = Off, 1 = On) */ MPP10_GPIO, /* SATA 1 red LED (0 = Off, 1 = On) */
{ 11, MPP_GPIO }, /* SATA 0 red LED (0 = Off, 1 = On) */ MPP11_GPIO, /* SATA 0 red LED (0 = Off, 1 = On) */
{ 12, MPP_GPIO }, /* Board ID (bit 1) */ MPP12_GPIO, /* Board ID (bit 1) */
{ 13, MPP_GPIO }, /* SATA 1 blue LED blink control */ MPP13_GPIO, /* SATA 1 blue LED blink control */
{ 14, MPP_SATA_LED }, MPP14_SATA_LED,
{ 15, MPP_SATA_LED }, MPP15_SATA_LED,
{ 16, MPP_GPIO }, /* Blue front LED control */ MPP16_GPIO, /* Blue front LED control */
{ 17, MPP_GPIO }, /* SATA 0 blue LED blink control */ MPP17_GPIO, /* SATA 0 blue LED blink control */
{ 18, MPP_GPIO }, /* Front button (0 = Released, 1 = Pushed ) */ MPP18_GPIO, /* Front button (0 = Released, 1 = Pushed ) */
{ 19, MPP_GPIO }, /* SATA{0,1} power On/Off request */ MPP19_GPIO, /* SATA{0,1} power On/Off request */
{ -1 } 0,
/* 22: USB port 1 fuse (0 = Fail, 1 = Ok) */ /* 22: USB port 1 fuse (0 = Fail, 1 = Ok) */
/* 23: SATA 0 power status */ /* 23: SATA 0 power status */
/* 24: Board power off */ /* 24: Board power off */
......
...@@ -64,28 +64,28 @@ static struct platform_device rd88f5181l_fxo_nor_boot_flash = { ...@@ -64,28 +64,28 @@ static struct platform_device rd88f5181l_fxo_nor_boot_flash = {
/***************************************************************************** /*****************************************************************************
* General Setup * General Setup
****************************************************************************/ ****************************************************************************/
static struct orion5x_mpp_mode rd88f5181l_fxo_mpp_modes[] __initdata = { static unsigned int rd88f5181l_fxo_mpp_modes[] __initdata = {
{ 0, MPP_GPIO }, /* LED1 CardBus LED (front panel) */ MPP0_GPIO, /* LED1 CardBus LED (front panel) */
{ 1, MPP_GPIO }, /* PCI_intA */ MPP1_GPIO, /* PCI_intA */
{ 2, MPP_GPIO }, /* Hard Reset / Factory Init*/ MPP2_GPIO, /* Hard Reset / Factory Init*/
{ 3, MPP_GPIO }, /* FXS or DAA select */ MPP3_GPIO, /* FXS or DAA select */
{ 4, MPP_GPIO }, /* LED6 - phone LED (front panel) */ MPP4_GPIO, /* LED6 - phone LED (front panel) */
{ 5, MPP_GPIO }, /* LED5 - phone LED (front panel) */ MPP5_GPIO, /* LED5 - phone LED (front panel) */
{ 6, MPP_PCI_CLK }, /* CPU PCI refclk */ MPP6_PCI_CLK, /* CPU PCI refclk */
{ 7, MPP_PCI_CLK }, /* PCI/PCIe refclk */ MPP7_PCI_CLK, /* PCI/PCIe refclk */
{ 8, MPP_GPIO }, /* CardBus reset */ MPP8_GPIO, /* CardBus reset */
{ 9, MPP_GPIO }, /* GE_RXERR */ MPP9_GPIO, /* GE_RXERR */
{ 10, MPP_GPIO }, /* LED2 MiniPCI LED (front panel) */ MPP10_GPIO, /* LED2 MiniPCI LED (front panel) */
{ 11, MPP_GPIO }, /* Lifeline control */ MPP11_GPIO, /* Lifeline control */
{ 12, MPP_GIGE }, /* GE_TXD[4] */ MPP12_GIGE, /* GE_TXD[4] */
{ 13, MPP_GIGE }, /* GE_TXD[5] */ MPP13_GIGE, /* GE_TXD[5] */
{ 14, MPP_GIGE }, /* GE_TXD[6] */ MPP14_GIGE, /* GE_TXD[6] */
{ 15, MPP_GIGE }, /* GE_TXD[7] */ MPP15_GIGE, /* GE_TXD[7] */
{ 16, MPP_GIGE }, /* GE_RXD[4] */ MPP16_GIGE, /* GE_RXD[4] */
{ 17, MPP_GIGE }, /* GE_RXD[5] */ MPP17_GIGE, /* GE_RXD[5] */
{ 18, MPP_GIGE }, /* GE_RXD[6] */ MPP18_GIGE, /* GE_RXD[6] */
{ 19, MPP_GIGE }, /* GE_RXD[7] */ MPP19_GIGE, /* GE_RXD[7] */
{ -1 }, 0,
}; };
static struct mv643xx_eth_platform_data rd88f5181l_fxo_eth_data = { static struct mv643xx_eth_platform_data rd88f5181l_fxo_eth_data = {
......
...@@ -65,28 +65,28 @@ static struct platform_device rd88f5181l_ge_nor_boot_flash = { ...@@ -65,28 +65,28 @@ static struct platform_device rd88f5181l_ge_nor_boot_flash = {
/***************************************************************************** /*****************************************************************************
* General Setup * General Setup
****************************************************************************/ ****************************************************************************/
static struct orion5x_mpp_mode rd88f5181l_ge_mpp_modes[] __initdata = { static unsigned int rd88f5181l_ge_mpp_modes[] __initdata = {
{ 0, MPP_GPIO }, /* LED1 */ MPP0_GPIO, /* LED1 */
{ 1, MPP_GPIO }, /* LED5 */ MPP1_GPIO, /* LED5 */
{ 2, MPP_GPIO }, /* LED4 */ MPP2_GPIO, /* LED4 */
{ 3, MPP_GPIO }, /* LED3 */ MPP3_GPIO, /* LED3 */
{ 4, MPP_GPIO }, /* PCI_intA */ MPP4_GPIO, /* PCI_intA */
{ 5, MPP_GPIO }, /* RTC interrupt */ MPP5_GPIO, /* RTC interrupt */
{ 6, MPP_PCI_CLK }, /* CPU PCI refclk */ MPP6_PCI_CLK, /* CPU PCI refclk */
{ 7, MPP_PCI_CLK }, /* PCI/PCIe refclk */ MPP7_PCI_CLK, /* PCI/PCIe refclk */
{ 8, MPP_GPIO }, /* 88e6131 interrupt */ MPP8_GPIO, /* 88e6131 interrupt */
{ 9, MPP_GPIO }, /* GE_RXERR */ MPP9_GPIO, /* GE_RXERR */
{ 10, MPP_GPIO }, /* PCI_intB */ MPP10_GPIO, /* PCI_intB */
{ 11, MPP_GPIO }, /* LED2 */ MPP11_GPIO, /* LED2 */
{ 12, MPP_GIGE }, /* GE_TXD[4] */ MPP12_GIGE, /* GE_TXD[4] */
{ 13, MPP_GIGE }, /* GE_TXD[5] */ MPP13_GIGE, /* GE_TXD[5] */
{ 14, MPP_GIGE }, /* GE_TXD[6] */ MPP14_GIGE, /* GE_TXD[6] */
{ 15, MPP_GIGE }, /* GE_TXD[7] */ MPP15_GIGE, /* GE_TXD[7] */
{ 16, MPP_GIGE }, /* GE_RXD[4] */ MPP16_GIGE, /* GE_RXD[4] */
{ 17, MPP_GIGE }, /* GE_RXD[5] */ MPP17_GIGE, /* GE_RXD[5] */
{ 18, MPP_GIGE }, /* GE_RXD[6] */ MPP18_GIGE, /* GE_RXD[6] */
{ 19, MPP_GIGE }, /* GE_RXD[7] */ MPP19_GIGE, /* GE_RXD[7] */
{ -1 }, 0,
}; };
static struct mv643xx_eth_platform_data rd88f5181l_ge_eth_data = { static struct mv643xx_eth_platform_data rd88f5181l_ge_eth_data = {
......
...@@ -241,28 +241,28 @@ static struct mv_sata_platform_data rd88f5182_sata_data = { ...@@ -241,28 +241,28 @@ static struct mv_sata_platform_data rd88f5182_sata_data = {
/***************************************************************************** /*****************************************************************************
* General Setup * General Setup
****************************************************************************/ ****************************************************************************/
static struct orion5x_mpp_mode rd88f5182_mpp_modes[] __initdata = { static unsigned int rd88f5182_mpp_modes[] __initdata = {
{ 0, MPP_GPIO }, /* Debug Led */ MPP0_GPIO, /* Debug Led */
{ 1, MPP_GPIO }, /* Reset Switch */ MPP1_GPIO, /* Reset Switch */
{ 2, MPP_UNUSED }, MPP2_UNUSED,
{ 3, MPP_GPIO }, /* RTC Int */ MPP3_GPIO, /* RTC Int */
{ 4, MPP_GPIO }, MPP4_GPIO,
{ 5, MPP_GPIO }, MPP5_GPIO,
{ 6, MPP_GPIO }, /* PCI_intA */ MPP6_GPIO, /* PCI_intA */
{ 7, MPP_GPIO }, /* PCI_intB */ MPP7_GPIO, /* PCI_intB */
{ 8, MPP_UNUSED }, MPP8_UNUSED,
{ 9, MPP_UNUSED }, MPP9_UNUSED,
{ 10, MPP_UNUSED }, MPP10_UNUSED,
{ 11, MPP_UNUSED }, MPP11_UNUSED,
{ 12, MPP_SATA_LED }, /* SATA 0 presence */ MPP12_SATA_LED, /* SATA 0 presence */
{ 13, MPP_SATA_LED }, /* SATA 1 presence */ MPP13_SATA_LED, /* SATA 1 presence */
{ 14, MPP_SATA_LED }, /* SATA 0 active */ MPP14_SATA_LED, /* SATA 0 active */
{ 15, MPP_SATA_LED }, /* SATA 1 active */ MPP15_SATA_LED, /* SATA 1 active */
{ 16, MPP_UNUSED }, MPP16_UNUSED,
{ 17, MPP_UNUSED }, MPP17_UNUSED,
{ 18, MPP_UNUSED }, MPP18_UNUSED,
{ 19, MPP_UNUSED }, MPP19_UNUSED,
{ -1 }, 0,
}; };
static void __init rd88f5182_init(void) static void __init rd88f5182_init(void)
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include <asm/mach/pci.h> #include <asm/mach/pci.h>
#include <mach/orion5x.h> #include <mach/orion5x.h>
#include "common.h" #include "common.h"
#include "mpp.h"
static struct mv643xx_eth_platform_data rd88f6183ap_ge_eth_data = { static struct mv643xx_eth_platform_data rd88f6183ap_ge_eth_data = {
.phy_addr = -1, .phy_addr = -1,
......
...@@ -295,28 +295,28 @@ static void tsp2_power_off(void) ...@@ -295,28 +295,28 @@ static void tsp2_power_off(void)
/***************************************************************************** /*****************************************************************************
* General Setup * General Setup
****************************************************************************/ ****************************************************************************/
static struct orion5x_mpp_mode tsp2_mpp_modes[] __initdata = { static unsigned int tsp2_mpp_modes[] __initdata = {
{ 0, MPP_PCIE_RST_OUTn }, MPP0_PCIE_RST_OUTn,
{ 1, MPP_UNUSED }, MPP1_UNUSED,
{ 2, MPP_UNUSED }, MPP2_UNUSED,
{ 3, MPP_UNUSED }, MPP3_UNUSED,
{ 4, MPP_NAND }, /* BOOT NAND Flash REn */ MPP4_NAND, /* BOOT NAND Flash REn */
{ 5, MPP_NAND }, /* BOOT NAND Flash WEn */ MPP5_NAND, /* BOOT NAND Flash WEn */
{ 6, MPP_NAND }, /* BOOT NAND Flash HREn[0] */ MPP6_NAND, /* BOOT NAND Flash HREn[0] */
{ 7, MPP_NAND }, /* BOOT NAND Flash WEn[0] */ MPP7_NAND, /* BOOT NAND Flash WEn[0] */
{ 8, MPP_GPIO }, /* MICON int */ MPP8_GPIO, /* MICON int */
{ 9, MPP_GPIO }, /* RTC int */ MPP9_GPIO, /* RTC int */
{ 10, MPP_UNUSED }, MPP10_UNUSED,
{ 11, MPP_GPIO }, /* PCI Int A */ MPP11_GPIO, /* PCI Int A */
{ 12, MPP_UNUSED }, MPP12_UNUSED,
{ 13, MPP_GPIO }, /* UPS on UART0 enable */ MPP13_GPIO, /* UPS on UART0 enable */
{ 14, MPP_GPIO }, /* UPS low battery detection */ MPP14_GPIO, /* UPS low battery detection */
{ 15, MPP_UNUSED }, MPP15_UNUSED,
{ 16, MPP_UART }, /* UART1 RXD */ MPP16_UART, /* UART1 RXD */
{ 17, MPP_UART }, /* UART1 TXD */ MPP17_UART, /* UART1 TXD */
{ 18, MPP_UART }, /* UART1 CTSn */ MPP18_UART, /* UART1 CTSn */
{ 19, MPP_UART }, /* UART1 RTSn */ MPP19_UART, /* UART1 RTSn */
{ -1 }, 0,
}; };
static void __init tsp2_init(void) static void __init tsp2_init(void)
......
...@@ -244,28 +244,28 @@ static struct mv_sata_platform_data qnap_ts209_sata_data = { ...@@ -244,28 +244,28 @@ static struct mv_sata_platform_data qnap_ts209_sata_data = {
* General Setup * General Setup
****************************************************************************/ ****************************************************************************/
static struct orion5x_mpp_mode ts209_mpp_modes[] __initdata = { static unsigned int ts209_mpp_modes[] __initdata = {
{ 0, MPP_UNUSED }, MPP0_UNUSED,
{ 1, MPP_GPIO }, /* USB copy button */ MPP1_GPIO, /* USB copy button */
{ 2, MPP_GPIO }, /* Load defaults button */ MPP2_GPIO, /* Load defaults button */
{ 3, MPP_GPIO }, /* GPIO RTC */ MPP3_GPIO, /* GPIO RTC */
{ 4, MPP_UNUSED }, MPP4_UNUSED,
{ 5, MPP_UNUSED }, MPP5_UNUSED,
{ 6, MPP_GPIO }, /* PCI Int A */ MPP6_GPIO, /* PCI Int A */
{ 7, MPP_GPIO }, /* PCI Int B */ MPP7_GPIO, /* PCI Int B */
{ 8, MPP_UNUSED }, MPP8_UNUSED,
{ 9, MPP_UNUSED }, MPP9_UNUSED,
{ 10, MPP_UNUSED }, MPP10_UNUSED,
{ 11, MPP_UNUSED }, MPP11_UNUSED,
{ 12, MPP_SATA_LED }, /* SATA 0 presence */ MPP12_SATA_LED, /* SATA 0 presence */
{ 13, MPP_SATA_LED }, /* SATA 1 presence */ MPP13_SATA_LED, /* SATA 1 presence */
{ 14, MPP_SATA_LED }, /* SATA 0 active */ MPP14_SATA_LED, /* SATA 0 active */
{ 15, MPP_SATA_LED }, /* SATA 1 active */ MPP15_SATA_LED, /* SATA 1 active */
{ 16, MPP_UART }, /* UART1 RXD */ MPP16_UART, /* UART1 RXD */
{ 17, MPP_UART }, /* UART1 TXD */ MPP17_UART, /* UART1 TXD */
{ 18, MPP_GPIO }, /* SW_RST */ MPP18_GPIO, /* SW_RST */
{ 19, MPP_UNUSED }, MPP19_UNUSED,
{ -1 }, 0,
}; };
static void __init qnap_ts209_init(void) static void __init qnap_ts209_init(void)
......
...@@ -242,28 +242,28 @@ static struct platform_device qnap_ts409_button_device = { ...@@ -242,28 +242,28 @@ static struct platform_device qnap_ts409_button_device = {
/***************************************************************************** /*****************************************************************************
* General Setup * General Setup
****************************************************************************/ ****************************************************************************/
static struct orion5x_mpp_mode ts409_mpp_modes[] __initdata = { static unsigned int ts409_mpp_modes[] __initdata = {
{ 0, MPP_UNUSED }, MPP0_UNUSED,
{ 1, MPP_UNUSED }, MPP1_UNUSED,
{ 2, MPP_UNUSED }, MPP2_UNUSED,
{ 3, MPP_UNUSED }, MPP3_UNUSED,
{ 4, MPP_GPIO }, /* HDD 1 status */ MPP4_GPIO, /* HDD 1 status */
{ 5, MPP_GPIO }, /* HDD 2 status */ MPP5_GPIO, /* HDD 2 status */
{ 6, MPP_GPIO }, /* HDD 3 status */ MPP6_GPIO, /* HDD 3 status */
{ 7, MPP_GPIO }, /* HDD 4 status */ MPP7_GPIO, /* HDD 4 status */
{ 8, MPP_UNUSED }, MPP8_UNUSED,
{ 9, MPP_UNUSED }, MPP9_UNUSED,
{ 10, MPP_GPIO }, /* RTC int */ MPP10_GPIO, /* RTC int */
{ 11, MPP_UNUSED }, MPP11_UNUSED,
{ 12, MPP_UNUSED }, MPP12_UNUSED,
{ 13, MPP_UNUSED }, MPP13_UNUSED,
{ 14, MPP_GPIO }, /* SW_RST */ MPP14_GPIO, /* SW_RST */
{ 15, MPP_GPIO }, /* USB copy button */ MPP15_GPIO, /* USB copy button */
{ 16, MPP_UART }, /* UART1 RXD */ MPP16_UART, /* UART1 RXD */
{ 17, MPP_UART }, /* UART1 TXD */ MPP17_UART, /* UART1 TXD */
{ 18, MPP_UNUSED }, MPP18_UNUSED,
{ 19, MPP_UNUSED }, MPP19_UNUSED,
{ -1 }, 0,
}; };
static void __init qnap_ts409_init(void) static void __init qnap_ts409_init(void)
......
...@@ -557,27 +557,27 @@ static struct kobj_attribute ts78xx_fpga_attr = ...@@ -557,27 +557,27 @@ static struct kobj_attribute ts78xx_fpga_attr =
/***************************************************************************** /*****************************************************************************
* General Setup * General Setup
****************************************************************************/ ****************************************************************************/
static struct orion5x_mpp_mode ts78xx_mpp_modes[] __initdata = { static unsigned int ts78xx_mpp_modes[] __initdata = {
{ 0, MPP_UNUSED }, MPP0_UNUSED,
{ 1, MPP_GPIO }, /* JTAG Clock */ MPP1_GPIO, /* JTAG Clock */
{ 2, MPP_GPIO }, /* JTAG Data In */ MPP2_GPIO, /* JTAG Data In */
{ 3, MPP_GPIO }, /* Lat ECP2 256 FPGA - PB2B */ MPP3_GPIO, /* Lat ECP2 256 FPGA - PB2B */
{ 4, MPP_GPIO }, /* JTAG Data Out */ MPP4_GPIO, /* JTAG Data Out */
{ 5, MPP_GPIO }, /* JTAG TMS */ MPP5_GPIO, /* JTAG TMS */
{ 6, MPP_GPIO }, /* Lat ECP2 256 FPGA - PB31A_CLK4+ */ MPP6_GPIO, /* Lat ECP2 256 FPGA - PB31A_CLK4+ */
{ 7, MPP_GPIO }, /* Lat ECP2 256 FPGA - PB22B */ MPP7_GPIO, /* Lat ECP2 256 FPGA - PB22B */
{ 8, MPP_UNUSED }, MPP8_UNUSED,
{ 9, MPP_UNUSED }, MPP9_UNUSED,
{ 10, MPP_UNUSED }, MPP10_UNUSED,
{ 11, MPP_UNUSED }, MPP11_UNUSED,
{ 12, MPP_UNUSED }, MPP12_UNUSED,
{ 13, MPP_UNUSED }, MPP13_UNUSED,
{ 14, MPP_UNUSED }, MPP14_UNUSED,
{ 15, MPP_UNUSED }, MPP15_UNUSED,
{ 16, MPP_UART }, MPP16_UART,
{ 17, MPP_UART }, MPP17_UART,
{ 18, MPP_UART }, MPP18_UART,
{ 19, MPP_UART }, MPP19_UART,
/* /*
* MPP[20] PCI Clock Out 1 * MPP[20] PCI Clock Out 1
* MPP[21] PCI Clock Out 0 * MPP[21] PCI Clock Out 0
...@@ -586,7 +586,7 @@ static struct orion5x_mpp_mode ts78xx_mpp_modes[] __initdata = { ...@@ -586,7 +586,7 @@ static struct orion5x_mpp_mode ts78xx_mpp_modes[] __initdata = {
* MPP[24] Unused * MPP[24] Unused
* MPP[25] Unused * MPP[25] Unused
*/ */
{ -1 }, 0,
}; };
static void __init ts78xx_init(void) static void __init ts78xx_init(void)
......
...@@ -24,28 +24,28 @@ ...@@ -24,28 +24,28 @@
#include "common.h" #include "common.h"
#include "mpp.h" #include "mpp.h"
static struct orion5x_mpp_mode wnr854t_mpp_modes[] __initdata = { static unsigned int wnr854t_mpp_modes[] __initdata = {
{ 0, MPP_GPIO }, /* Power LED green (0=on) */ MPP0_GPIO, /* Power LED green (0=on) */
{ 1, MPP_GPIO }, /* Reset Button (0=off) */ MPP1_GPIO, /* Reset Button (0=off) */
{ 2, MPP_GPIO }, /* Power LED blink (0=off) */ MPP2_GPIO, /* Power LED blink (0=off) */
{ 3, MPP_GPIO }, /* WAN Status LED amber (0=off) */ MPP3_GPIO, /* WAN Status LED amber (0=off) */
{ 4, MPP_GPIO }, /* PCI int */ MPP4_GPIO, /* PCI int */
{ 5, MPP_GPIO }, /* ??? */ MPP5_GPIO, /* ??? */
{ 6, MPP_GPIO }, /* ??? */ MPP6_GPIO, /* ??? */
{ 7, MPP_GPIO }, /* ??? */ MPP7_GPIO, /* ??? */
{ 8, MPP_UNUSED }, /* ??? */ MPP8_UNUSED, /* ??? */
{ 9, MPP_GIGE }, /* GE_RXERR */ MPP9_GIGE, /* GE_RXERR */
{ 10, MPP_UNUSED }, /* ??? */ MPP10_UNUSED, /* ??? */
{ 11, MPP_UNUSED }, /* ??? */ MPP11_UNUSED, /* ??? */
{ 12, MPP_GIGE }, /* GE_TXD[4] */ MPP12_GIGE, /* GE_TXD[4] */
{ 13, MPP_GIGE }, /* GE_TXD[5] */ MPP13_GIGE, /* GE_TXD[5] */
{ 14, MPP_GIGE }, /* GE_TXD[6] */ MPP14_GIGE, /* GE_TXD[6] */
{ 15, MPP_GIGE }, /* GE_TXD[7] */ MPP15_GIGE, /* GE_TXD[7] */
{ 16, MPP_GIGE }, /* GE_RXD[4] */ MPP16_GIGE, /* GE_RXD[4] */
{ 17, MPP_GIGE }, /* GE_RXD[5] */ MPP17_GIGE, /* GE_RXD[5] */
{ 18, MPP_GIGE }, /* GE_RXD[6] */ MPP18_GIGE, /* GE_RXD[6] */
{ 19, MPP_GIGE }, /* GE_RXD[7] */ MPP19_GIGE, /* GE_RXD[7] */
{ -1 }, 0,
}; };
/* /*
......
...@@ -101,28 +101,28 @@ static struct platform_device wrt350n_v2_button_device = { ...@@ -101,28 +101,28 @@ static struct platform_device wrt350n_v2_button_device = {
/* /*
* General setup * General setup
*/ */
static struct orion5x_mpp_mode wrt350n_v2_mpp_modes[] __initdata = { static unsigned int wrt350n_v2_mpp_modes[] __initdata = {
{ 0, MPP_GPIO }, /* Power LED green (0=on) */ MPP0_GPIO, /* Power LED green (0=on) */
{ 1, MPP_GPIO }, /* Security LED (0=on) */ MPP1_GPIO, /* Security LED (0=on) */
{ 2, MPP_GPIO }, /* Internal Button (0=on) */ MPP2_GPIO, /* Internal Button (0=on) */
{ 3, MPP_GPIO }, /* Reset Button (0=on) */ MPP3_GPIO, /* Reset Button (0=on) */
{ 4, MPP_GPIO }, /* PCI int */ MPP4_GPIO, /* PCI int */
{ 5, MPP_GPIO }, /* Power LED orange (0=on) */ MPP5_GPIO, /* Power LED orange (0=on) */
{ 6, MPP_GPIO }, /* USB LED (0=on) */ MPP6_GPIO, /* USB LED (0=on) */
{ 7, MPP_GPIO }, /* Wireless LED (0=on) */ MPP7_GPIO, /* Wireless LED (0=on) */
{ 8, MPP_UNUSED }, /* ??? */ MPP8_UNUSED, /* ??? */
{ 9, MPP_GIGE }, /* GE_RXERR */ MPP9_GIGE, /* GE_RXERR */
{ 10, MPP_UNUSED }, /* ??? */ MPP10_UNUSED, /* ??? */
{ 11, MPP_UNUSED }, /* ??? */ MPP11_UNUSED, /* ??? */
{ 12, MPP_GIGE }, /* GE_TXD[4] */ MPP12_GIGE, /* GE_TXD[4] */
{ 13, MPP_GIGE }, /* GE_TXD[5] */ MPP13_GIGE, /* GE_TXD[5] */
{ 14, MPP_GIGE }, /* GE_TXD[6] */ MPP14_GIGE, /* GE_TXD[6] */
{ 15, MPP_GIGE }, /* GE_TXD[7] */ MPP15_GIGE, /* GE_TXD[7] */
{ 16, MPP_GIGE }, /* GE_RXD[4] */ MPP16_GIGE, /* GE_RXD[4] */
{ 17, MPP_GIGE }, /* GE_RXD[5] */ MPP17_GIGE, /* GE_RXD[5] */
{ 18, MPP_GIGE }, /* GE_RXD[6] */ MPP18_GIGE, /* GE_RXD[6] */
{ 19, MPP_GIGE }, /* GE_RXD[7] */ MPP19_GIGE, /* GE_RXD[7] */
{ -1 }, 0,
}; };
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment