diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-26 19:54:27 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-02-26 19:54:27 -0500 |
commit | 64d497f55379b1e320a08ec2426468d96f5642ec (patch) | |
tree | 22b9ab3c5e69c5cc2728cbc2ca7fc7623beef8f1 /arch/sh/boards/mach-sdk7780/setup.c | |
parent | 37d4008484977f60d5d37499a2670c79b214dd46 (diff) | |
parent | b5f5fe80fa98a60daa0fa94512d1599b1e26674c (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: (187 commits)
sh: remove dead LED code for migo-r and ms7724se
sh: ecovec build fix for CONFIG_I2C=n
sh: ecovec r-standby support
sh: ms7724se r-standby support
sh: SH-Mobile R-standby register save/restore
clocksource: Fix up a registration/IRQ race in the sh drivers.
sh: ms7724: modify scan_timing for KEYSC
sh: ms7724: Add sh_sir support
sh: mach-ecovec24: Add sh_sir support
sh: wire up SET/GET_UNALIGN_CTL.
sh: allow alignment fault mode to be configured at kernel boot.
sh: sh7724: Update FSI/SPU2 clock
sh: always enable sh7724 vpu_clk and set to 166MHz on Ecovec
sh: add sh7724 kick callback to clk_div4_table
sh: introduce struct clk_div4_table
sh: clock-cpg div4 set_rate() shift fix
sh: Turn on speculative return for SH7785 and SH7786
sh: Merge legacy and dynamic PMB modes.
sh: Use uncached I/O helpers in PMB setup.
sh: Provide uncached I/O helpers.
...
Diffstat (limited to 'arch/sh/boards/mach-sdk7780/setup.c')
-rw-r--r-- | arch/sh/boards/mach-sdk7780/setup.c | 29 |
1 files changed, 10 insertions, 19 deletions
diff --git a/arch/sh/boards/mach-sdk7780/setup.c b/arch/sh/boards/mach-sdk7780/setup.c index aad94a78dc70..4da38db4b5fe 100644 --- a/arch/sh/boards/mach-sdk7780/setup.c +++ b/arch/sh/boards/mach-sdk7780/setup.c | |||
@@ -20,27 +20,18 @@ | |||
20 | 20 | ||
21 | #define GPIO_PECR 0xFFEA0008 | 21 | #define GPIO_PECR 0xFFEA0008 |
22 | 22 | ||
23 | //* Heartbeat */ | 23 | /* Heartbeat */ |
24 | static struct heartbeat_data heartbeat_data = { | 24 | static struct resource heartbeat_resource = { |
25 | .regsize = 16, | 25 | .start = PA_LED, |
26 | }; | 26 | .end = PA_LED, |
27 | 27 | .flags = IORESOURCE_MEM | IORESOURCE_MEM_16BIT, | |
28 | static struct resource heartbeat_resources[] = { | ||
29 | [0] = { | ||
30 | .start = PA_LED, | ||
31 | .end = PA_LED, | ||
32 | .flags = IORESOURCE_MEM, | ||
33 | }, | ||
34 | }; | 28 | }; |
35 | 29 | ||
36 | static struct platform_device heartbeat_device = { | 30 | static struct platform_device heartbeat_device = { |
37 | .name = "heartbeat", | 31 | .name = "heartbeat", |
38 | .id = -1, | 32 | .id = -1, |
39 | .dev = { | 33 | .num_resources = 1, |
40 | .platform_data = &heartbeat_data, | 34 | .resource = &heartbeat_resource, |
41 | }, | ||
42 | .num_resources = ARRAY_SIZE(heartbeat_resources), | ||
43 | .resource = heartbeat_resources, | ||
44 | }; | 35 | }; |
45 | 36 | ||
46 | /* SMC91x */ | 37 | /* SMC91x */ |
@@ -83,8 +74,8 @@ device_initcall(sdk7780_devices_setup); | |||
83 | 74 | ||
84 | static void __init sdk7780_setup(char **cmdline_p) | 75 | static void __init sdk7780_setup(char **cmdline_p) |
85 | { | 76 | { |
86 | u16 ver = ctrl_inw(FPGA_FPVERR); | 77 | u16 ver = __raw_readw(FPGA_FPVERR); |
87 | u16 dateStamp = ctrl_inw(FPGA_FPDATER); | 78 | u16 dateStamp = __raw_readw(FPGA_FPDATER); |
88 | 79 | ||
89 | printk(KERN_INFO "Renesas Technology Europe SDK7780 support.\n"); | 80 | printk(KERN_INFO "Renesas Technology Europe SDK7780 support.\n"); |
90 | printk(KERN_INFO "Board version: %d (revision %d), " | 81 | printk(KERN_INFO "Board version: %d (revision %d), " |
@@ -94,7 +85,7 @@ static void __init sdk7780_setup(char **cmdline_p) | |||
94 | dateStamp); | 85 | dateStamp); |
95 | 86 | ||
96 | /* Setup pin mux'ing for PCIC */ | 87 | /* Setup pin mux'ing for PCIC */ |
97 | ctrl_outw(0x0000, GPIO_PECR); | 88 | __raw_writew(0x0000, GPIO_PECR); |
98 | } | 89 | } |
99 | 90 | ||
100 | /* | 91 | /* |