summaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-12-07 20:34:48 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2008-12-07 20:34:48 +0000
commit6489001dd8255d821f3e64f8cf2f7e811f6ccb53 (patch)
tree6956835a97a8994f5b7c2d51c086a06d6baca2b1 /target/linux
parent6640cdb33ab941d30e0aaa8fd8d518de74c24b4c (diff)
Add support for bcm96348gw10 (Netgear DG834GT) (#4319)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13540 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c23
-rw-r--r--target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c4
-rw-r--r--target/linux/brcm63xx/image/Makefile2
3 files changed, 27 insertions, 2 deletions
diff --git a/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c b/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c
index 5623d7902..42e0e9723 100644
--- a/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c
+++ b/target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c
@@ -50,6 +50,28 @@ static struct board_info __initdata board_96348r = {
},
};
+static struct board_info __initdata board_96348gw_10 = {
+ .name = "96348GW-10",
+ .expected_cpu_id = 0x6348,
+
+ .has_enet0 = 1,
+ .has_enet1 = 1,
+ .has_pci = 1,
+
+ .enet0 = {
+ .has_phy = 1,
+ .use_internal_phy = 1,
+ },
+ .enet1 = {
+ .force_speed_100 = 1,
+ .force_duplex_full = 1,
+ },
+
+ .has_ohci0 = 1,
+ .has_pccard = 1,
+ .has_ehci0 = 1,
+};
+
static struct board_info __initdata board_96348gw_11 = {
.name = "96348GW-11",
.expected_cpu_id = 0x6348,
@@ -153,6 +175,7 @@ static const struct board_info __initdata *bcm963xx_boards[] = {
#ifdef CONFIG_BCM63XX_CPU_6348
&board_96348r,
&board_96348gw,
+ &board_96348gw_10,
&board_96348gw_11,
#endif
diff --git a/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c b/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c
index 6f74945e5..6fb0ee1e0 100644
--- a/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c
+++ b/target/linux/brcm63xx/files/drivers/mtd/maps/bcm963xx-flash.c
@@ -156,13 +156,13 @@ static int bcm963xx_probe(struct platform_device *pdev)
r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
bcm963xx_map.phys = r->start;
bcm963xx_map.size = (r->end - r->start);
- bcm963xx_map.virt = ioremap(r->start, r->end - r->start);
+ bcm963xx_map.virt = ioremap(r->start, r->end - r->start + 1);
if (!bcm963xx_map.virt) {
printk(KERN_ERR PFX "Failed to ioremap\n");
return -EIO;
}
- printk(KERN_INFO PFX "0x%08x at 0x%08x\n", (r->end - r->start) + 1, r->start);
+ printk(KERN_INFO PFX "0x%08x at 0x%08x\n", bcm963xx_map.size, bcm963xx_map.phys);
simple_map_init(&bcm963xx_map);
diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile
index 516dee0e2..ac22fee4a 100644
--- a/target/linux/brcm63xx/image/Makefile
+++ b/target/linux/brcm63xx/image/Makefile
@@ -78,6 +78,8 @@ define Image/Build
$(call Image/Build/CFE,$(1),96358VW,6358)
# Comtrend 536
$(call Image/Build/CFE,$(1),96348GW-11,6348)
+ # DG834G
+ $(call Image/Build/CFE,$(1),96348GW-10,6348)
endef
$(eval $(call BuildImage))