diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-flash.c')
-rw-r--r-- | arch/arm/mach-omap2/board-flash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/board-flash.c b/arch/arm/mach-omap2/board-flash.c index ac82512b9c8c..84cc1482e584 100644 --- a/arch/arm/mach-omap2/board-flash.c +++ b/arch/arm/mach-omap2/board-flash.c | |||
@@ -160,13 +160,13 @@ static u8 get_gpmc0_type(void) | |||
160 | if (!fpga_map_addr) | 160 | if (!fpga_map_addr) |
161 | return -ENOMEM; | 161 | return -ENOMEM; |
162 | 162 | ||
163 | if (!(__raw_readw(fpga_map_addr + REG_FPGA_REV))) | 163 | if (!(readw_relaxed(fpga_map_addr + REG_FPGA_REV))) |
164 | /* we dont have an DEBUG FPGA??? */ | 164 | /* we dont have an DEBUG FPGA??? */ |
165 | /* Depend on #defines!! default to strata boot return param */ | 165 | /* Depend on #defines!! default to strata boot return param */ |
166 | goto unmap; | 166 | goto unmap; |
167 | 167 | ||
168 | /* S8-DIP-OFF = 1, S8-DIP-ON = 0 */ | 168 | /* S8-DIP-OFF = 1, S8-DIP-ON = 0 */ |
169 | cs = __raw_readw(fpga_map_addr + REG_FPGA_DIP_SWITCH_INPUT2) & 0xf; | 169 | cs = readw_relaxed(fpga_map_addr + REG_FPGA_DIP_SWITCH_INPUT2) & 0xf; |
170 | 170 | ||
171 | /* ES2.0 SDP's onwards 4 dip switches are provided for CS */ | 171 | /* ES2.0 SDP's onwards 4 dip switches are provided for CS */ |
172 | if (omap_rev() >= OMAP3430_REV_ES1_0) | 172 | if (omap_rev() >= OMAP3430_REV_ES1_0) |