aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/patches-2.6.39/230-6358-enet1-external-mii-clk.patch
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2011-05-27 09:54:52 +0000
committerFlorian Fainelli <florian@openwrt.org>2011-05-27 09:54:52 +0000
commit016e8dee34bf3f9e735f7ac9afd712e7472bfe7a (patch)
tree072d450c9728f2a51b176ecbee4bd88be23726b9 /target/linux/brcm63xx/patches-2.6.39/230-6358-enet1-external-mii-clk.patch
parent590c82cec184555869cb6135ce5a45d978069cfe (diff)
downloadupstream-016e8dee34bf3f9e735f7ac9afd712e7472bfe7a.tar.gz
upstream-016e8dee34bf3f9e735f7ac9afd712e7472bfe7a.tar.bz2
upstream-016e8dee34bf3f9e735f7ac9afd712e7472bfe7a.zip
bcm63xx: Add support for 2.6.39
Add support for Kernel 2.6.39. Boots fine on a BCM6358. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> SVN-Revision: 27019
Diffstat (limited to 'target/linux/brcm63xx/patches-2.6.39/230-6358-enet1-external-mii-clk.patch')
-rw-r--r--target/linux/brcm63xx/patches-2.6.39/230-6358-enet1-external-mii-clk.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-2.6.39/230-6358-enet1-external-mii-clk.patch b/target/linux/brcm63xx/patches-2.6.39/230-6358-enet1-external-mii-clk.patch
new file mode 100644
index 0000000000..d859410b77
--- /dev/null
+++ b/target/linux/brcm63xx/patches-2.6.39/230-6358-enet1-external-mii-clk.patch
@@ -0,0 +1,22 @@
+--- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
++++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
+@@ -818,6 +818,8 @@ void __init board_prom_init(void)
+ if (BCMCPU_IS_6348())
+ val |= GPIO_MODE_6348_G3_EXT_MII |
+ GPIO_MODE_6348_G0_EXT_MII;
++ else if (BCMCPU_IS_6358())
++ val |= GPIO_MODE_6358_ENET1_MII_CLK_INV;
+ }
+
+ bcm_gpio_writel(val, GPIO_MODE_REG);
+--- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
++++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
+@@ -402,6 +402,8 @@
+ #define GPIO_MODE_6358_EXTRA_SPI_SS (1 << 7)
+ #define GPIO_MODE_6358_SERIAL_LED (1 << 10)
+ #define GPIO_MODE_6358_UTOPIA (1 << 12)
++#define GPIO_MODE_6358_ENET0_MII_CLK_INV (1 << 30)
++#define GPIO_MODE_6358_ENET1_MII_CLK_INV (1 << 31)
+
+
+ /*************************************************************************