Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 741e3a89 authored by Tony Lindgren's avatar Tony Lindgren
Browse files

omap: Use separate init_irq functions to avoid cpu_is_omap tests early



This allows us to remove cpu_is_omap calls from init_irq functions.
There should not be any need for cpu_is_omap calls as at this point.
During the timer init we only care about SoC generation, and not about
subrevisions.

The main reason for the patch is that we want to initialize only
minimal omap specific code from the init_early call.

Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Reviewed-by: default avatarKevin Hilman <khilman@ti.com>
parent 2c53b436
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ void ams_delta_latch2_write(u16 mask, u16 value)
static void __init ams_delta_init_irq(void)
{
	omap1_init_common_hw();
	omap_init_irq();
	omap1_init_irq();
}

static struct map_desc ams_delta_io_desc[] __initdata = {
+1 −1
Original line number Diff line number Diff line
@@ -329,7 +329,7 @@ static void __init omap_fsample_init(void)
static void __init omap_fsample_init_irq(void)
{
	omap1_init_common_hw();
	omap_init_irq();
	omap1_init_irq();
}

/* Only FPGA needs to be mapped here. All others are done with ioremap */
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@
static void __init omap_generic_init_irq(void)
{
	omap1_init_common_hw();
	omap_init_irq();
	omap1_init_irq();
}

/* assume no Mini-AB port */
+1 −1
Original line number Diff line number Diff line
@@ -376,7 +376,7 @@ static struct i2c_board_info __initdata h2_i2c_board_info[] = {
static void __init h2_init_irq(void)
{
	omap1_init_common_hw();
	omap_init_irq();
	omap1_init_irq();
}

static struct omap_usb_config h2_usb_config __initdata = {
+1 −1
Original line number Diff line number Diff line
@@ -439,7 +439,7 @@ static void __init h3_init(void)
static void __init h3_init_irq(void)
{
	omap1_init_common_hw();
	omap_init_irq();
	omap1_init_irq();
}

static void __init h3_map_io(void)
Loading