diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-05-30 19:16:45 -0400 |
commit | ada47b5fe13d89735805b566185f4885f5a3f750 (patch) | |
tree | 644b88f8a71896307d71438e9b3af49126ffb22b /arch/mips/bcm47xx | |
parent | 43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff) | |
parent | 3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff) |
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'arch/mips/bcm47xx')
-rw-r--r-- | arch/mips/bcm47xx/gpio.c | 1 | ||||
-rw-r--r-- | arch/mips/bcm47xx/prom.c | 19 | ||||
-rw-r--r-- | arch/mips/bcm47xx/setup.c | 1 | ||||
-rw-r--r-- | arch/mips/bcm47xx/wgt634u.c | 1 |
4 files changed, 13 insertions, 9 deletions
diff --git a/arch/mips/bcm47xx/gpio.c b/arch/mips/bcm47xx/gpio.c index 9b798800258c..e4a5ee9c9721 100644 --- a/arch/mips/bcm47xx/gpio.c +++ b/arch/mips/bcm47xx/gpio.c | |||
@@ -59,4 +59,3 @@ int gpio_to_irq(unsigned gpio) | |||
59 | return -EINVAL; | 59 | return -EINVAL; |
60 | } | 60 | } |
61 | EXPORT_SYMBOL_GPL(gpio_to_irq); | 61 | EXPORT_SYMBOL_GPL(gpio_to_irq); |
62 | |||
diff --git a/arch/mips/bcm47xx/prom.c b/arch/mips/bcm47xx/prom.c index fb284c3b2cff..0fa646c5a844 100644 --- a/arch/mips/bcm47xx/prom.c +++ b/arch/mips/bcm47xx/prom.c | |||
@@ -100,11 +100,11 @@ static __init void prom_init_console(void) | |||
100 | 100 | ||
101 | static __init void prom_init_cmdline(void) | 101 | static __init void prom_init_cmdline(void) |
102 | { | 102 | { |
103 | static char buf[CL_SIZE] __initdata; | 103 | static char buf[COMMAND_LINE_SIZE] __initdata; |
104 | 104 | ||
105 | /* Get the kernel command line from CFE */ | 105 | /* Get the kernel command line from CFE */ |
106 | if (cfe_getenv("LINUX_CMDLINE", buf, CL_SIZE) >= 0) { | 106 | if (cfe_getenv("LINUX_CMDLINE", buf, COMMAND_LINE_SIZE) >= 0) { |
107 | buf[CL_SIZE-1] = 0; | 107 | buf[COMMAND_LINE_SIZE - 1] = 0; |
108 | strcpy(arcs_cmdline, buf); | 108 | strcpy(arcs_cmdline, buf); |
109 | } | 109 | } |
110 | 110 | ||
@@ -112,13 +112,13 @@ static __init void prom_init_cmdline(void) | |||
112 | * as CFE is not available anymore later in the boot process. */ | 112 | * as CFE is not available anymore later in the boot process. */ |
113 | if ((strstr(arcs_cmdline, "console=")) == NULL) { | 113 | if ((strstr(arcs_cmdline, "console=")) == NULL) { |
114 | /* Try to read the default serial port used by CFE */ | 114 | /* Try to read the default serial port used by CFE */ |
115 | if ((cfe_getenv("BOOT_CONSOLE", buf, CL_SIZE) < 0) | 115 | if ((cfe_getenv("BOOT_CONSOLE", buf, COMMAND_LINE_SIZE) < 0) |
116 | || (strncmp("uart", buf, 4))) | 116 | || (strncmp("uart", buf, 4))) |
117 | /* Default to uart0 */ | 117 | /* Default to uart0 */ |
118 | strcpy(buf, "uart0"); | 118 | strcpy(buf, "uart0"); |
119 | 119 | ||
120 | /* Compute the new command line */ | 120 | /* Compute the new command line */ |
121 | snprintf(arcs_cmdline, CL_SIZE, "%s console=ttyS%c,115200", | 121 | snprintf(arcs_cmdline, COMMAND_LINE_SIZE, "%s console=ttyS%c,115200", |
122 | arcs_cmdline, buf[4]); | 122 | arcs_cmdline, buf[4]); |
123 | } | 123 | } |
124 | } | 124 | } |
@@ -141,6 +141,14 @@ static __init void prom_init_mem(void) | |||
141 | break; | 141 | break; |
142 | } | 142 | } |
143 | 143 | ||
144 | /* Ignoring the last page when ddr size is 128M. Cached | ||
145 | * accesses to last page is causing the processor to prefetch | ||
146 | * using address above 128M stepping out of the ddr address | ||
147 | * space. | ||
148 | */ | ||
149 | if (mem == 0x8000000) | ||
150 | mem -= 0x1000; | ||
151 | |||
144 | add_memory_region(0, mem, BOOT_MEM_RAM); | 152 | add_memory_region(0, mem, BOOT_MEM_RAM); |
145 | } | 153 | } |
146 | 154 | ||
@@ -155,4 +163,3 @@ void __init prom_init(void) | |||
155 | void __init prom_free_prom_memory(void) | 163 | void __init prom_free_prom_memory(void) |
156 | { | 164 | { |
157 | } | 165 | } |
158 | |||
diff --git a/arch/mips/bcm47xx/setup.c b/arch/mips/bcm47xx/setup.c index 2f580fa160c9..d442e11625fa 100644 --- a/arch/mips/bcm47xx/setup.c +++ b/arch/mips/bcm47xx/setup.c | |||
@@ -121,4 +121,3 @@ void __init plat_mem_setup(void) | |||
121 | _machine_halt = bcm47xx_machine_halt; | 121 | _machine_halt = bcm47xx_machine_halt; |
122 | pm_power_off = bcm47xx_machine_halt; | 122 | pm_power_off = bcm47xx_machine_halt; |
123 | } | 123 | } |
124 | |||
diff --git a/arch/mips/bcm47xx/wgt634u.c b/arch/mips/bcm47xx/wgt634u.c index ef00e7f58c24..74d06965326f 100644 --- a/arch/mips/bcm47xx/wgt634u.c +++ b/arch/mips/bcm47xx/wgt634u.c | |||
@@ -164,4 +164,3 @@ static int __init wgt634u_init(void) | |||
164 | } | 164 | } |
165 | 165 | ||
166 | module_init(wgt634u_init); | 166 | module_init(wgt634u_init); |
167 | |||