diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2011-11-27 10:15:50 -0500 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-02-23 03:24:46 -0500 |
commit | 4342d6479e249c0cc952ff71f22167e4276a4927 (patch) | |
tree | b40fc563405fd581d60b0e21bc73b70856692454 /arch/arm/mach-at91/at91sam9rl_devices.c | |
parent | fac36a5ab9fe5a8bd977d2305eeccad48389cbb5 (diff) |
ARM: at91: make matrix register base soc independent
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Reviewed-by: Ryan Mallon <rmallon@gmail.com>
Cc: linux-usb@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/mach-at91/at91sam9rl_devices.c')
-rw-r--r-- | arch/arm/mach-at91/at91sam9rl_devices.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/arm/mach-at91/at91sam9rl_devices.c b/arch/arm/mach-at91/at91sam9rl_devices.c index 9be71c11d0f0..936cf20bc54f 100644 --- a/arch/arm/mach-at91/at91sam9rl_devices.c +++ b/arch/arm/mach-at91/at91sam9rl_devices.c | |||
@@ -20,6 +20,7 @@ | |||
20 | #include <mach/board.h> | 20 | #include <mach/board.h> |
21 | #include <mach/at91sam9rl.h> | 21 | #include <mach/at91sam9rl.h> |
22 | #include <mach/at91sam9rl_matrix.h> | 22 | #include <mach/at91sam9rl_matrix.h> |
23 | #include <mach/at91_matrix.h> | ||
23 | #include <mach/at91sam9_smc.h> | 24 | #include <mach/at91sam9_smc.h> |
24 | #include <mach/at_hdmac.h> | 25 | #include <mach/at_hdmac.h> |
25 | 26 | ||
@@ -265,8 +266,8 @@ void __init at91_add_device_nand(struct atmel_nand_data *data) | |||
265 | if (!data) | 266 | if (!data) |
266 | return; | 267 | return; |
267 | 268 | ||
268 | csa = at91_sys_read(AT91_MATRIX_EBICSA); | 269 | csa = at91_matrix_read(AT91_MATRIX_EBICSA); |
269 | at91_sys_write(AT91_MATRIX_EBICSA, csa | AT91_MATRIX_CS3A_SMC_SMARTMEDIA); | 270 | at91_matrix_write(AT91_MATRIX_EBICSA, csa | AT91_MATRIX_CS3A_SMC_SMARTMEDIA); |
270 | 271 | ||
271 | /* enable pin */ | 272 | /* enable pin */ |
272 | if (gpio_is_valid(data->enable_pin)) | 273 | if (gpio_is_valid(data->enable_pin)) |