From 58f98ac38244ed93bb01dcf377937f1aec45202b Mon Sep 17 00:00:00 2001 From: kaloz Date: Fri, 28 Dec 2007 21:00:01 +0000 Subject: * upgrade ixp4xx to 2.6.23.12 * upgrade to the new ethernet driver (temporary breaks Marvell switch support on Compex units) * handle NPE microcodes in a user friendly way - YAY for Intel for changing the license * add support for the Lanready AP1000 (used in for example the Ligowave LGO2AGN) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10016 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../ixp4xx/patches-2.6.23/064-fsg3_setup_mac.patch | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 target/linux/ixp4xx/patches-2.6.23/064-fsg3_setup_mac.patch (limited to 'target/linux/ixp4xx/patches-2.6.23/064-fsg3_setup_mac.patch') diff --git a/target/linux/ixp4xx/patches-2.6.23/064-fsg3_setup_mac.patch b/target/linux/ixp4xx/patches-2.6.23/064-fsg3_setup_mac.patch new file mode 100644 index 000000000..359fc0b2d --- /dev/null +++ b/target/linux/ixp4xx/patches-2.6.23/064-fsg3_setup_mac.patch @@ -0,0 +1,56 @@ +diff --git a/arch/arm/mach-ixp4xx/fsg-setup.c b/arch/arm/mach-ixp4xx/fsg-setup.c +index ec3d517..7cc7201 100644 +--- a/arch/arm/mach-ixp4xx/fsg-setup.c ++++ b/arch/arm/mach-ixp4xx/fsg-setup.c +@@ -16,6 +16,7 @@ + #include + #include + #include ++#include + + #include + #include +@@ -177,6 +178,34 @@ static struct platform_device *fsg_devices[] __initdata = { + &fsg_eth[1], + }; + ++static void fsg_flash_add(struct mtd_info *mtd) ++{ ++ if (strcmp(mtd->name, "RedBoot config") == 0) { ++ size_t retlen; ++ u_char mac[6]; ++ ++ if (mtd->read(mtd, 0x0422, 6, &retlen, mac) == 0 && retlen == 6) { ++ printk(KERN_INFO "eth0 mac: %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n", ++ mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); ++ memcpy(fsg_plat_eth[0].hwaddr, mac, 6); ++ mac[5]++; ++ printk(KERN_INFO "eth1 mac: %.2x:%.2x:%.2x:%.2x:%.2x:%.2x\n", ++ mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); ++ memcpy(fsg_plat_eth[1].hwaddr, mac, 6); ++ } else { ++ printk(KERN_ERR "fsg mac: read failed\n"); ++ } ++ } ++} ++ ++static void fsg_flash_remove(struct mtd_info *mtd) { ++} ++ ++static struct mtd_notifier fsg_flash_notifier = { ++ .add = fsg_flash_add, ++ .remove = fsg_flash_remove, ++}; ++ + static void __init fsg_init(void) + { + ixp4xx_sys_init(); +@@ -198,6 +227,8 @@ static void __init fsg_init(void) + (void)platform_device_register(&fsg_uart); + + platform_add_devices(fsg_devices, ARRAY_SIZE(fsg_devices)); ++ ++ register_mtd_user(&fsg_flash_notifier); + } + + MACHINE_START(FSG, "Freecom FSG-3") -- cgit v1.2.3