projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: add DB120 board specific PCI initialization
[openwrt.git]
/
target
/
linux
/
lantiq
/
patches
/
400-mach-arv45xx.patch
diff --git
a/target/linux/lantiq/patches/400-mach-arv45xx.patch
b/target/linux/lantiq/patches/400-mach-arv45xx.patch
index
2c02944
..
4da4c98
100644
(file)
--- a/
target/linux/lantiq/patches/400-mach-arv45xx.patch
+++ b/
target/linux/lantiq/patches/400-mach-arv45xx.patch
@@
-38,7
+38,7
@@
+obj-$(CONFIG_LANTIQ_MACH_ARV45XX) += mach-arv45xx.o
--- /dev/null
+++ b/arch/mips/lantiq/xway/mach-arv45xx.c
+obj-$(CONFIG_LANTIQ_MACH_ARV45XX) += mach-arv45xx.o
--- /dev/null
+++ b/arch/mips/lantiq/xway/mach-arv45xx.c
-@@ -0,0 +1,5
04
@@
+@@ -0,0 +1,5
37
@@
+/*
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published
+/*
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License version 2 as published
@@
-69,22
+69,46
@@
+#include "dev-dwc_otg.h"
+
+#ifdef CONFIG_MTD_PARTITIONS
+#include "dev-dwc_otg.h"
+
+#ifdef CONFIG_MTD_PARTITIONS
++static struct mtd_partition arv4510_partitions[] =
++{
++ {
++ .name = "uboot",
++ .offset = 0x0,
++ .size = 0x20000,
++ },
++ {
++ .name = "uboot_env",
++ .offset = 0x20000,
++ .size = 0x120000,
++ },
++ {
++ .name = "linux",
++ .offset = 0x40000,
++ .size = 0xfa0000,
++ },
++ {
++ .name = "board_config",
++ .offset = 0xfe0000,
++ .size = 0x20000,
++ },
++};
++
+static struct mtd_partition arv45xx_partitions[] =
+{
+ {
+ .name = "uboot",
+ .offset = 0x0,
+static struct mtd_partition arv45xx_partitions[] =
+{
+ {
+ .name = "uboot",
+ .offset = 0x0,
-+ .size = 0x
1
0000,
++ .size = 0x
2
0000,
+ },
+ {
+ .name = "uboot_env",
+ },
+ {
+ .name = "uboot_env",
-+ .offset = 0x
1
0000,
++ .offset = 0x
2
0000,
+ .size = 0x10000,
+ },
+ {
+ .name = "linux",
+ .size = 0x10000,
+ },
+ {
+ .name = "linux",
-+ .offset = 0x
2
0000,
-+ .size = 0x3
d
0000,
++ .offset = 0x
3
0000,
++ .size = 0x3
c
0000,
+ },
+ {
+ .name = "board_config",
+ },
+ {
+ .name = "board_config",
@@
-119,6
+143,13
@@
+
+#endif
+
+
+#endif
+
++static struct physmap_flash_data arv4510_flash_data = {
++#ifdef CONFIG_MTD_PARTITIONS
++ .nr_parts = ARRAY_SIZE(arv4510_partitions),
++ .parts = arv4510_partitions,
++#endif
++};
++
+static struct physmap_flash_data arv45xx_flash_data = {
+#ifdef CONFIG_MTD_PARTITIONS
+ .nr_parts = ARRAY_SIZE(arv45xx_partitions),
+static struct physmap_flash_data arv45xx_flash_data = {
+#ifdef CONFIG_MTD_PARTITIONS
+ .nr_parts = ARRAY_SIZE(arv45xx_partitions),
@@
-354,9
+385,10
@@
+ lq_register_gpio_leds(arv4510pw_leds_gpio, ARRAY_SIZE(arv4510pw_leds_gpio));
+ lq_register_asc(0);
+ lq_register_asc(1);
+ lq_register_gpio_leds(arv4510pw_leds_gpio, ARRAY_SIZE(arv4510pw_leds_gpio));
+ lq_register_asc(0);
+ lq_register_asc(1);
-+ lq_register_nor(&arv45xx_flash_data);
-+ lq_pci_data.irq[15] = (INT_NUM_IM2_IRL0 + 31);
-+ lq_pci_data.gpio |= PCI_EXIN1 | PCI_REQ2;
++ lq_register_nor(&arv4510_flash_data);
++ lq_pci_data.irq[12] = (INT_NUM_IM2_IRL0 + 31);
++ lq_pci_data.irq[15] = (INT_NUM_IM0_IRL0 + 26);
++ lq_pci_data.gpio |= PCI_EXIN2 | PCI_REQ2;
+ lq_register_pci(&lq_pci_data);
+ lq_register_wdt();
+ bewan_register_ethernet();
+ lq_register_pci(&lq_pci_data);
+ lq_register_wdt();
+ bewan_register_ethernet();
@@
-492,7
+524,7
@@
+arv7518pw_init(void)
+{
+#define ARV7518PW_EBU 0x2
+arv7518pw_init(void)
+{
+#define ARV7518PW_EBU 0x2
-+#define ARV7518PW_USB
-1
++#define ARV7518PW_USB
14
+
+ lq_register_gpio();
+ lq_register_gpio_ebu(ARV7518PW_EBU);
+
+ lq_register_gpio();
+ lq_register_gpio_ebu(ARV7518PW_EBU);
@@
-503,6
+535,7
@@
+ lq_register_nor(&arv75xx_flash_data);
+ lq_register_pci(&lq_pci_data);
+ lq_register_wdt();
+ lq_register_nor(&arv75xx_flash_data);
+ lq_register_pci(&lq_pci_data);
+ lq_register_wdt();
++ lq_register_tapi();
+ xway_register_dwc(ARV7518PW_USB);
+ arv75xx_register_ethernet();
+ //arv7518_register_ath9k(mac);
+ xway_register_dwc(ARV7518PW_USB);
+ arv75xx_register_ethernet();
+ //arv7518_register_ath9k(mac);
This page took
0.032278 seconds
and
4
git commands to generate.