diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-22 14:23:33 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-18 18:15:44 -0500 |
commit | 6ed3e2acc7995625625592abe8cd3383c34a471b (patch) | |
tree | 5c34373aa5c6a468f176f70c7f9528ead08536b4 /arch/arm/mach-sa1100 | |
parent | 54292a4649a5dd93562d10f188a8e201afebfe2f (diff) |
MFD: mcp-sa11x0/assabet: move assabet reset handling out of mcp-sa11x0.c
Move the assabet specific reset handling out of mcp-sa11x0.c, into its
board file. This leaves the mcp code free from all board specific
details.
Acked-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-sa1100')
-rw-r--r-- | arch/arm/mach-sa1100/assabet.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-sa1100/assabet.c b/arch/arm/mach-sa1100/assabet.c index c45402f866cc..b5955ad35945 100644 --- a/arch/arm/mach-sa1100/assabet.c +++ b/arch/arm/mach-sa1100/assabet.c | |||
@@ -70,6 +70,13 @@ void ASSABET_BCR_frob(unsigned int mask, unsigned int val) | |||
70 | 70 | ||
71 | EXPORT_SYMBOL(ASSABET_BCR_frob); | 71 | EXPORT_SYMBOL(ASSABET_BCR_frob); |
72 | 72 | ||
73 | static void assabet_ucb1x00_reset(enum ucb1x00_reset state) | ||
74 | { | ||
75 | if (state == UCB_RST_PROBE) | ||
76 | ASSABET_BCR_set(ASSABET_BCR_CODEC_RST); | ||
77 | } | ||
78 | |||
79 | |||
73 | static void assabet_backlight_power(int on) | 80 | static void assabet_backlight_power(int on) |
74 | { | 81 | { |
75 | #ifndef ASSABET_PAL_VIDEO | 82 | #ifndef ASSABET_PAL_VIDEO |
@@ -201,6 +208,7 @@ static struct irda_platform_data assabet_irda_data = { | |||
201 | }; | 208 | }; |
202 | 209 | ||
203 | static struct ucb1x00_plat_data assabet_ucb1x00_data = { | 210 | static struct ucb1x00_plat_data assabet_ucb1x00_data = { |
211 | .reset = assabet_ucb1x00_reset, | ||
204 | .gpio_base = -1, | 212 | .gpio_base = -1, |
205 | }; | 213 | }; |
206 | 214 | ||