diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /arch/mips/ar7 | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'arch/mips/ar7')
-rw-r--r-- | arch/mips/ar7/gpio.c | 2 | ||||
-rw-r--r-- | arch/mips/ar7/platform.c | 46 | ||||
-rw-r--r-- | arch/mips/ar7/prom.c | 4 | ||||
-rw-r--r-- | arch/mips/ar7/setup.c | 2 |
4 files changed, 7 insertions, 47 deletions
diff --git a/arch/mips/ar7/gpio.c b/arch/mips/ar7/gpio.c index d8dbd8f0c1d..bb571bcdb8f 100644 --- a/arch/mips/ar7/gpio.c +++ b/arch/mips/ar7/gpio.c | |||
@@ -217,7 +217,7 @@ struct titan_gpio_cfg { | |||
217 | u32 func; | 217 | u32 func; |
218 | }; | 218 | }; |
219 | 219 | ||
220 | static const struct titan_gpio_cfg titan_gpio_table[] = { | 220 | static struct titan_gpio_cfg titan_gpio_table[] = { |
221 | /* reg, start bit, mux value */ | 221 | /* reg, start bit, mux value */ |
222 | {4, 24, 1}, | 222 | {4, 24, 1}, |
223 | {4, 26, 1}, | 223 | {4, 26, 1}, |
diff --git a/arch/mips/ar7/platform.c b/arch/mips/ar7/platform.c index 7477fd2127a..33ffecf6a6d 100644 --- a/arch/mips/ar7/platform.c +++ b/arch/mips/ar7/platform.c | |||
@@ -202,11 +202,8 @@ static struct resource physmap_flash_resource = { | |||
202 | .end = 0x107fffff, | 202 | .end = 0x107fffff, |
203 | }; | 203 | }; |
204 | 204 | ||
205 | static const char *ar7_probe_types[] = { "ar7part", NULL }; | ||
206 | |||
207 | static struct physmap_flash_data physmap_flash_data = { | 205 | static struct physmap_flash_data physmap_flash_data = { |
208 | .width = 2, | 206 | .width = 2, |
209 | .part_probe_types = ar7_probe_types, | ||
210 | }; | 207 | }; |
211 | 208 | ||
212 | static struct platform_device physmap_flash = { | 209 | static struct platform_device physmap_flash = { |
@@ -313,10 +310,10 @@ static void __init cpmac_get_mac(int instance, unsigned char *dev_addr) | |||
313 | &dev_addr[4], &dev_addr[5]) != 6) { | 310 | &dev_addr[4], &dev_addr[5]) != 6) { |
314 | pr_warning("cannot parse mac address, " | 311 | pr_warning("cannot parse mac address, " |
315 | "using random address\n"); | 312 | "using random address\n"); |
316 | eth_random_addr(dev_addr); | 313 | random_ether_addr(dev_addr); |
317 | } | 314 | } |
318 | } else | 315 | } else |
319 | eth_random_addr(dev_addr); | 316 | random_ether_addr(dev_addr); |
320 | } | 317 | } |
321 | 318 | ||
322 | /***************************************************************************** | 319 | /***************************************************************************** |
@@ -465,40 +462,6 @@ static struct gpio_led fb_fon_leds[] = { | |||
465 | }, | 462 | }, |
466 | }; | 463 | }; |
467 | 464 | ||
468 | static struct gpio_led gt701_leds[] = { | ||
469 | { | ||
470 | .name = "inet:green", | ||
471 | .gpio = 13, | ||
472 | .active_low = 1, | ||
473 | }, | ||
474 | { | ||
475 | .name = "usb", | ||
476 | .gpio = 12, | ||
477 | .active_low = 1, | ||
478 | }, | ||
479 | { | ||
480 | .name = "inet:red", | ||
481 | .gpio = 9, | ||
482 | .active_low = 1, | ||
483 | }, | ||
484 | { | ||
485 | .name = "power:red", | ||
486 | .gpio = 7, | ||
487 | .active_low = 1, | ||
488 | }, | ||
489 | { | ||
490 | .name = "power:green", | ||
491 | .gpio = 8, | ||
492 | .active_low = 1, | ||
493 | .default_trigger = "default-on", | ||
494 | }, | ||
495 | { | ||
496 | .name = "ethernet", | ||
497 | .gpio = 10, | ||
498 | .active_low = 1, | ||
499 | }, | ||
500 | }; | ||
501 | |||
502 | static struct gpio_led_platform_data ar7_led_data; | 465 | static struct gpio_led_platform_data ar7_led_data; |
503 | 466 | ||
504 | static struct platform_device ar7_gpio_leds = { | 467 | static struct platform_device ar7_gpio_leds = { |
@@ -540,9 +503,6 @@ static void __init detect_leds(void) | |||
540 | } else if (strstr(prid, "CYWM") || strstr(prid, "CYWL")) { | 503 | } else if (strstr(prid, "CYWM") || strstr(prid, "CYWL")) { |
541 | ar7_led_data.num_leds = ARRAY_SIZE(titan_leds); | 504 | ar7_led_data.num_leds = ARRAY_SIZE(titan_leds); |
542 | ar7_led_data.leds = titan_leds; | 505 | ar7_led_data.leds = titan_leds; |
543 | } else if (strstr(prid, "GT701")) { | ||
544 | ar7_led_data.num_leds = ARRAY_SIZE(gt701_leds); | ||
545 | ar7_led_data.leds = gt701_leds; | ||
546 | } | 506 | } |
547 | } | 507 | } |
548 | 508 | ||
@@ -576,7 +536,7 @@ static int __init ar7_register_uarts(void) | |||
576 | 536 | ||
577 | bus_clk = clk_get(NULL, "bus"); | 537 | bus_clk = clk_get(NULL, "bus"); |
578 | if (IS_ERR(bus_clk)) | 538 | if (IS_ERR(bus_clk)) |
579 | panic("unable to get bus clk"); | 539 | panic("unable to get bus clk\n"); |
580 | 540 | ||
581 | uart_port.type = PORT_AR7; | 541 | uart_port.type = PORT_AR7; |
582 | uart_port.uartclk = clk_get_rate(bus_clk) / 2; | 542 | uart_port.uartclk = clk_get_rate(bus_clk) / 2; |
diff --git a/arch/mips/ar7/prom.c b/arch/mips/ar7/prom.c index a23adc49d50..8088c6fdb83 100644 --- a/arch/mips/ar7/prom.c +++ b/arch/mips/ar7/prom.c | |||
@@ -69,7 +69,7 @@ struct psbl_rec { | |||
69 | u32 ffs_size; | 69 | u32 ffs_size; |
70 | }; | 70 | }; |
71 | 71 | ||
72 | static const char psp_env_version[] __initconst = "TIENV0.8"; | 72 | static __initdata char psp_env_version[] = "TIENV0.8"; |
73 | 73 | ||
74 | struct psp_env_chunk { | 74 | struct psp_env_chunk { |
75 | u8 num; | 75 | u8 num; |
@@ -84,7 +84,7 @@ struct psp_var_map_entry { | |||
84 | char *value; | 84 | char *value; |
85 | }; | 85 | }; |
86 | 86 | ||
87 | static const struct psp_var_map_entry psp_var_map[] = { | 87 | static struct psp_var_map_entry psp_var_map[] = { |
88 | { 1, "cpufrequency" }, | 88 | { 1, "cpufrequency" }, |
89 | { 2, "memsize" }, | 89 | { 2, "memsize" }, |
90 | { 3, "flashsize" }, | 90 | { 3, "flashsize" }, |
diff --git a/arch/mips/ar7/setup.c b/arch/mips/ar7/setup.c index 9a357fffcfb..f20b53e597c 100644 --- a/arch/mips/ar7/setup.c +++ b/arch/mips/ar7/setup.c | |||
@@ -96,7 +96,7 @@ void __init plat_mem_setup(void) | |||
96 | 96 | ||
97 | io_base = (unsigned long)ioremap(AR7_REGS_BASE, 0x10000); | 97 | io_base = (unsigned long)ioremap(AR7_REGS_BASE, 0x10000); |
98 | if (!io_base) | 98 | if (!io_base) |
99 | panic("Can't remap IO base!"); | 99 | panic("Can't remap IO base!\n"); |
100 | set_io_port_base(io_base); | 100 | set_io_port_base(io_base); |
101 | 101 | ||
102 | prom_meminit(); | 102 | prom_meminit(); |