mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
OMAP: Remove OMAP_IO_ADDRESS, use OMAP1_IO_ADDRESS and OMAP2_IO_ADDRESS instead
Search and replace OMAP_IO_ADDRESS with OMAP1_IO_ADDRESS and OMAP2_IO_ADDRESS, and convert omap_read/write into a functions instead of a macros. Also rename OMAP_MPUIO_VBASE to OMAP1_MPUIO_VBASE. In the long run, most code should use ioremap + __raw_read/write instead. Signed-off-by: Tony Lindgren <[email protected]>
This commit is contained in:
parent
326ba5010a
commit
941132606c
27 changed files with 196 additions and 157 deletions
|
|
@ -212,9 +212,9 @@ static void enable_rfbi_mode(int enable)
|
|||
dispc_write_reg(DISPC_CONTROL, l);
|
||||
|
||||
/* Set bypass mode in RFBI module */
|
||||
l = __raw_readl(IO_ADDRESS(RFBI_CONTROL));
|
||||
l = __raw_readl(OMAP2_IO_ADDRESS(RFBI_CONTROL));
|
||||
l |= enable ? 0 : (1 << 1);
|
||||
__raw_writel(l, IO_ADDRESS(RFBI_CONTROL));
|
||||
__raw_writel(l, OMAP2_IO_ADDRESS(RFBI_CONTROL));
|
||||
}
|
||||
|
||||
static void set_lcd_data_lines(int data_lines)
|
||||
|
|
@ -1421,7 +1421,7 @@ static int omap_dispc_init(struct omapfb_device *fbdev, int ext_mode,
|
|||
}
|
||||
|
||||
/* L3 firewall setting: enable access to OCM RAM */
|
||||
__raw_writel(0x402000b0, IO_ADDRESS(0x680050a0));
|
||||
__raw_writel(0x402000b0, OMAP2_IO_ADDRESS(0x680050a0));
|
||||
|
||||
if ((r = alloc_palette_ram()) < 0)
|
||||
goto fail2;
|
||||
|
|
|
|||
Loading…
Reference in a new issue