summaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/patches-2.6.39/001-6345_cpu.patch
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-01-30 21:12:28 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-01-30 21:12:28 +0000
commit6baeb520da4e49c3bbcb9a4af3fe8af143d9fca3 (patch)
tree7cfc1f554bf7f0439fb8e91909d3a8b14a179dcc /target/linux/brcm63xx/patches-2.6.39/001-6345_cpu.patch
parent283043998c97e02ab4ccc23433fa54cf112bc2b0 (diff)
[brcm63xx] remove support for 2.6.39
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29959 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/patches-2.6.39/001-6345_cpu.patch')
-rw-r--r--target/linux/brcm63xx/patches-2.6.39/001-6345_cpu.patch122
1 files changed, 0 insertions, 122 deletions
diff --git a/target/linux/brcm63xx/patches-2.6.39/001-6345_cpu.patch b/target/linux/brcm63xx/patches-2.6.39/001-6345_cpu.patch
deleted file mode 100644
index b8cb016fb..000000000
--- a/target/linux/brcm63xx/patches-2.6.39/001-6345_cpu.patch
+++ /dev/null
@@ -1,122 +0,0 @@
---- a/arch/mips/bcm63xx/cpu.c
-+++ b/arch/mips/bcm63xx/cpu.c
-@@ -260,8 +260,10 @@ static unsigned int detect_memory_size(v
- unsigned int cols = 0, rows = 0, is_32bits = 0, banks = 0;
- u32 val;
-
-- if (BCMCPU_IS_6345())
-- return (8 * 1024 * 1024);
-+ if (BCMCPU_IS_6345()) {
-+ val = bcm_sdram_readl(SDRAM_MBASE_REG);
-+ return (val * 8 * 1024 * 1024);
-+ }
-
- if (BCMCPU_IS_6338() || BCMCPU_IS_6348()) {
- val = bcm_sdram_readl(SDRAM_CFG_REG);
---- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
-+++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
-@@ -735,6 +735,8 @@
- #define SDRAM_CFG_BANK_SHIFT 13
- #define SDRAM_CFG_BANK_MASK (1 << SDRAM_CFG_BANK_SHIFT)
-
-+#define SDRAM_MBASE_REG 0xc
-+
- #define SDRAM_PRIO_REG 0x2C
- #define SDRAM_PRIO_MIPS_SHIFT 29
- #define SDRAM_PRIO_MIPS_MASK (1 << SDRAM_PRIO_MIPS_SHIFT)
---- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
-+++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -698,15 +698,9 @@ void __init board_prom_init(void)
- char cfe_version[32];
- u32 val;
-
-- /* read base address of boot chip select (0)
-- * 6345 does not have MPI but boots from standard
-- * MIPS Flash address */
-- if (BCMCPU_IS_6345())
-- val = 0x1fc00000;
-- else {
-- val = bcm_mpi_readl(MPI_CSBASE_REG(0));
-- val &= MPI_CSBASE_BASE_MASK;
-- }
-+ /* read base address of boot chip select (0) */
-+ val = bcm_mpi_readl(MPI_CSBASE_REG(0));
-+ val &= MPI_CSBASE_BASE_MASK;
- boot_addr = (u8 *)KSEG1ADDR(val);
-
- /* dump cfe version */
-@@ -881,12 +875,9 @@ int __init board_register_devices(void)
- bcm63xx_dsp_register(&board.dsp);
-
- /* read base address of boot chip select (0) */
-- if (BCMCPU_IS_6345())
-- val = 0x1fc00000;
-- else {
-- val = bcm_mpi_readl(MPI_CSBASE_REG(0));
-- val &= MPI_CSBASE_BASE_MASK;
-- }
-+ val = bcm_mpi_readl(MPI_CSBASE_REG(0));
-+ val &= MPI_CSBASE_BASE_MASK;
-+
- mtd_resources[0].start = val;
- mtd_resources[0].end = 0x1FFFFFFF;
-
---- a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h
-+++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_cpu.h
-@@ -163,7 +163,7 @@ enum bcm63xx_regs_set {
- #define BCM_6345_ENET0_BASE (0xfffe1800)
- #define BCM_6345_ENETDMA_BASE (0xfffe2800)
- #define BCM_6345_PCMCIA_BASE (0xfffe2028)
--#define BCM_6345_MPI_BASE (0xdeadbeef)
-+#define BCM_6345_MPI_BASE (0xfffe2000)
- #define BCM_6345_OHCI0_BASE (0xfffe2100)
- #define BCM_6345_OHCI_PRIV_BASE (0xfffe2200)
- #define BCM_6345_USBH_PRIV_BASE (0xdeadbeef)
---- a/arch/mips/bcm63xx/gpio.c
-+++ b/arch/mips/bcm63xx/gpio.c
-@@ -4,7 +4,7 @@
- * for more details.
- *
- * Copyright (C) 2008 Maxime Bizon <mbizon@freebox.fr>
-- * Copyright (C) 2008 Florian Fainelli <florian@openwrt.org>
-+ * Copyright (C) 2008-2011 Florian Fainelli <florian@openwrt.org>
- */
-
- #include <linux/kernel.h>
-@@ -33,7 +33,10 @@ static void bcm63xx_gpio_set(struct gpio
- BUG();
-
- if (gpio < 32) {
-- reg = GPIO_DATA_LO_REG;
-+ if (!BCMCPU_IS_6345())
-+ reg = GPIO_DATA_LO_REG;
-+ else
-+ reg = GPIO_DATA_HI_REG;
- mask = 1 << gpio;
- v = &gpio_out_low;
- } else {
-@@ -60,7 +63,10 @@ static int bcm63xx_gpio_get(struct gpio_
- BUG();
-
- if (gpio < 32) {
-- reg = GPIO_DATA_LO_REG;
-+ if (!BCMCPU_IS_6345())
-+ reg = GPIO_DATA_LO_REG;
-+ else
-+ reg = GPIO_DATA_HI_REG;
- mask = 1 << gpio;
- } else {
- reg = GPIO_DATA_HI_REG;
-@@ -125,7 +131,11 @@ static struct gpio_chip bcm63xx_gpio_chi
-
- int __init bcm63xx_gpio_init(void)
- {
-- gpio_out_low = bcm_gpio_readl(GPIO_DATA_LO_REG);
-+ if (!BCMCPU_IS_6345())
-+ gpio_out_low = bcm_gpio_readl(GPIO_DATA_LO_REG);
-+ else
-+ gpio_out_low = bcm_gpio_readl(GPIO_DATA_HI_REG);
-+
- gpio_out_high = bcm_gpio_readl(GPIO_DATA_HI_REG);
- bcm63xx_gpio_chip.ngpio = bcm63xx_gpio_count();
- pr_info("registering %d GPIOs\n", bcm63xx_gpio_chip.ngpio);