diff options
| author | Ben Dooks <ben.dooks@codethink.co.uk> | 2015-03-26 10:16:22 -0400 |
|---|---|---|
| committer | Sebastian Reichel <sre@kernel.org> | 2015-03-26 10:21:00 -0400 |
| commit | 7be5ac2c32bd26c47a05367c0135cb6e67b3d452 (patch) | |
| tree | 5324860c1d5c41b7f6bf76c149ca62e0ea4b4aa1 | |
| parent | ecf896b97de9757fd835034ad849680218babc93 (diff) | |
power/reset: at91: big endian fixes for atsama5d3x
Fix the passing of big endian data to routines that will be writing
it to the bus in the wrong order.
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
| -rw-r--r-- | drivers/power/reset/at91-reset.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/power/reset/at91-reset.c b/drivers/power/reset/at91-reset.c index 68b18962f73a..01c7055c4200 100644 --- a/drivers/power/reset/at91-reset.c +++ b/drivers/power/reset/at91-reset.c | |||
| @@ -73,8 +73,8 @@ static int at91sam9260_restart(struct notifier_block *this, unsigned long mode, | |||
| 73 | : "r" (at91_ramc_base[0]), | 73 | : "r" (at91_ramc_base[0]), |
| 74 | "r" (at91_rstc_base), | 74 | "r" (at91_rstc_base), |
| 75 | "r" (1), | 75 | "r" (1), |
| 76 | "r" (AT91_SDRAMC_LPCB_POWER_DOWN), | 76 | "r" cpu_to_le32(AT91_SDRAMC_LPCB_POWER_DOWN), |
| 77 | "r" (AT91_RSTC_KEY | AT91_RSTC_PERRST | AT91_RSTC_PROCRST)); | 77 | "r" cpu_to_le32(AT91_RSTC_KEY | AT91_RSTC_PERRST | AT91_RSTC_PROCRST)); |
| 78 | 78 | ||
| 79 | return NOTIFY_DONE; | 79 | return NOTIFY_DONE; |
| 80 | } | 80 | } |
| @@ -116,8 +116,8 @@ static int at91sam9g45_restart(struct notifier_block *this, unsigned long mode, | |||
| 116 | "r" (at91_ramc_base[1]), | 116 | "r" (at91_ramc_base[1]), |
| 117 | "r" (at91_rstc_base), | 117 | "r" (at91_rstc_base), |
| 118 | "r" (1), | 118 | "r" (1), |
| 119 | "r" (AT91_DDRSDRC_LPCB_POWER_DOWN), | 119 | "r" cpu_to_le32(AT91_DDRSDRC_LPCB_POWER_DOWN), |
| 120 | "r" (AT91_RSTC_KEY | AT91_RSTC_PERRST | AT91_RSTC_PROCRST) | 120 | "r" cpu_to_le32(AT91_RSTC_KEY | AT91_RSTC_PERRST | AT91_RSTC_PROCRST) |
| 121 | : "r0"); | 121 | : "r0"); |
| 122 | 122 | ||
| 123 | return NOTIFY_DONE; | 123 | return NOTIFY_DONE; |
