diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2011-07-11 20:35:16 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2011-07-11 20:35:16 +0000 |
commit | 0321740a622fe79cdf958985188cc81476bef192 (patch) | |
tree | 0530b1d3d07e79e9825dba526c0aa65f90571cb3 | |
parent | 1e395abc80b13bf820aca5909ea9f4429dad313f (diff) | |
download | mtk-20170518-0321740a622fe79cdf958985188cc81476bef192.zip mtk-20170518-0321740a622fe79cdf958985188cc81476bef192.tar.gz mtk-20170518-0321740a622fe79cdf958985188cc81476bef192.tar.bz2 |
upgrade to 3.0-rc6 and optimize for armv5te again
SVN-Revision: 27592
-rw-r--r-- | target/linux/orion/Makefile | 4 | ||||
-rw-r--r-- | target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c | 52 |
2 files changed, 28 insertions, 28 deletions
diff --git a/target/linux/orion/Makefile b/target/linux/orion/Makefile index 78e1f97..0427735 100644 --- a/target/linux/orion/Makefile +++ b/target/linux/orion/Makefile @@ -10,10 +10,10 @@ ARCH:=arm BOARD:=orion BOARDNAME:=Marvell Orion SUBTARGETS:=generic harddisk -CFLAGS=-Os -pipe -march=armv5t -mtune=xscale -fno-caller-saves +CFLAGS=-Os -pipe -march=armv5te -mtune=xscale -fno-caller-saves MAINTAINER:=Imre Kaloz <kaloz@openwrt.org> -LINUX_VERSION:=2.6.37.6 +LINUX_VERSION:=3.0-rc6 include $(INCLUDE_DIR)/target.mk diff --git a/target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c b/target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c index 39b7e82..a3d9c82 100644 --- a/target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c +++ b/target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c @@ -119,11 +119,11 @@ void __init dt2_pci_preinit(void) if (gpio_request(pin, "PCI IntA") == 0) { if (gpio_direction_input(pin) == 0) { irq = gpio_to_irq(pin); - set_irq_type(irq, IRQ_TYPE_LEVEL_LOW); + irq_set_irq_type(irq, IRQ_TYPE_LEVEL_LOW); printk (KERN_INFO "PCI IntA IRQ: %d\n", irq); } else { printk(KERN_ERR "dt2_pci_preinit failed to " - "set_irq_type pin %d\n", pin); + "irq_set_irq_type pin %d\n", pin); gpio_free(pin); } } else { @@ -134,11 +134,11 @@ void __init dt2_pci_preinit(void) if (gpio_request(pin, "PCI IntB") == 0) { if (gpio_direction_input(pin) == 0) { irq = gpio_to_irq(pin); - set_irq_type(irq, IRQ_TYPE_LEVEL_LOW); + irq_set_irq_type(irq, IRQ_TYPE_LEVEL_LOW); printk (KERN_INFO "PCI IntB IRQ: %d\n", irq); } else { printk(KERN_ERR "dt2_pci_preinit failed to " - "set_irq_type pin %d\n", pin); + "irq_set_irq_type pin %d\n", pin); gpio_free(pin); } } else { @@ -240,28 +240,28 @@ static struct mv_sata_platform_data dt2_sata_data = { /***************************************************************************** * General Setup ****************************************************************************/ -static struct orion5x_mpp_mode dt2_mpp_modes[] __initdata = { - { 0, MPP_GPIO }, // RTC interrupt - { 1, MPP_GPIO }, // 88e6131 interrupt - { 2, MPP_GPIO }, // PCI_intB - { 3, MPP_GPIO }, // PCI_intA - { 4, MPP_GPIO }, // reset button switch - { 5, MPP_GPIO }, - { 6, MPP_GPIO }, - { 7, MPP_GPIO }, - { 8, MPP_GPIO }, - { 9, MPP_GIGE }, /* GE_RXERR */ - { 10, MPP_GPIO }, // usb - { 11, MPP_GPIO }, // usb - { 12, MPP_GIGE }, // GE_TXD[4] - { 13, MPP_GIGE }, // GE_TXD[5] - { 14, MPP_GIGE }, // GE_TXD[6] - { 15, MPP_GIGE }, // GE_TXD[7] - { 16, MPP_GIGE }, // GE_RXD[4] - { 17, MPP_GIGE }, // GE_RXD[5] - { 18, MPP_GIGE }, // GE_RXD[6] - { 19, MPP_GIGE }, // GE_RXD[7] - { -1 }, +static unsigned int dt2_mpp_modes[] __initdata = { + MPP0_GPIO, // RTC interrupt + MPP1_GPIO, // 88e6131 interrupt + MPP2_GPIO, // PCI_intB + MPP3_GPIO, // PCI_intA + MPP4_GPIO, // reset button switch + MPP5_GPIO, + MPP6_GPIO, + MPP7_GPIO, + MPP8_GPIO, + MPP9_GIGE, /* GE_RXERR */ + MPP10_GPIO, // usb + MPP11_GPIO, // usb + MPP12_GIGE, // GE_TXD[4] + MPP13_GIGE, // GE_TXD[5] + MPP14_GIGE, // GE_TXD[6] + MPP15_GIGE, // GE_TXD[7] + MPP16_GIGE, // GE_RXD[4] + MPP17_GIGE, // GE_RXD[5] + MPP18_GIGE, // GE_RXD[6] + MPP19_GIGE, // GE_RXD[7] + 0, }; /***************************************************************************** |