From: Arnd Bergmann Date: Thu, 22 Mar 2012 22:02:16 +0000 (+0000) Subject: Merge branch 'rmobile-fixes-for-linus' of git://github.com/pmundt/linux-sh into renes... X-Git-Tag: v3.4-rc1~72^2^2 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=426f1af947c61dee48a9267f84bff227e503a547;p=~emulex%2Finfiniband.git Merge branch 'rmobile-fixes-for-linus' of git://github.com/pmundt/linux-sh into renesas/soc Conflicts: arch/arm/mach-shmobile/board-ap4evb.c This moves the addition of init_consistent_dma_size() from the board files into the common sh7372_map_io() functions where all the other contents of the board specific map_io calls have gone. Signed-off-by: Arnd Bergmann --- 426f1af947c61dee48a9267f84bff227e503a547 diff --cc arch/arm/mach-shmobile/board-ap4evb.c index 4739f039650,6e3fab69a5a..c92c0052712 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c @@@ -1188,6 -1190,33 +1188,7 @@@ static struct i2c_board_info i2c1_devic }, }; -static struct map_desc ap4evb_io_desc[] __initdata = { - /* create a 1:1 entity map for 0xe6xxxxxx - * used by CPGA, INTC and PFC. - */ - { - .virtual = 0xe6000000, - .pfn = __phys_to_pfn(0xe6000000), - .length = 256 << 20, - .type = MT_DEVICE_NONSHARED - }, -}; - -static void __init ap4evb_map_io(void) -{ - iotable_init(ap4evb_io_desc, ARRAY_SIZE(ap4evb_io_desc)); - - /* - * DMA memory at 0xff200000 - 0xffdfffff. The default 2MB size isn't - * enough to allocate the frame buffer memory. - */ - init_consistent_dma_size(12 << 20); - - /* setup early devices and console here as well */ - sh7372_add_early_devices(); - shmobile_setup_console(); -} + #define GPIO_PORT9CR 0xE6051009 #define GPIO_PORT10CR 0xE605100A #define USCCR1 0xE6058144 diff --cc arch/arm/mach-shmobile/board-mackerel.c index 71d27915047,7b53cda4185..55da7a11591 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c @@@ -1335,15 -1337,31 +1335,6 @@@ static struct i2c_board_info i2c1_devic }, }; -static struct map_desc mackerel_io_desc[] __initdata = { - /* create a 1:1 entity map for 0xe6xxxxxx - * used by CPGA, INTC and PFC. - */ - { - .virtual = 0xe6000000, - .pfn = __phys_to_pfn(0xe6000000), - .length = 256 << 20, - .type = MT_DEVICE_NONSHARED - }, -}; - --static void __init mackerel_map_io(void) --{ - sh7372_map_io(); - iotable_init(mackerel_io_desc, ARRAY_SIZE(mackerel_io_desc)); -- /* DMA memory at 0xff200000 - 0xffdfffff. The default 2MB size isn't -- * enough to allocate the frame buffer memory. -- */ -- init_consistent_dma_size(12 << 20); - - /* setup early devices and console here as well */ - sh7372_add_early_devices(); - shmobile_setup_console(); --} -- #define GPIO_PORT9CR 0xE6051009 #define GPIO_PORT10CR 0xE605100A #define GPIO_PORT167CR 0xE60520A7 @@@ -1562,9 -1577,21 +1553,9 @@@ static void __init mackerel_init(void pm_clk_add(&hdmi_lcdc_device.dev, "hdmi"); } -static void __init mackerel_timer_init(void) -{ - sh7372_clock_init(); - shmobile_timer.init(); - - /* External clock source */ - clk_set_rate(&sh7372_dv_clki_clk, 27000000); -} - -static struct sys_timer mackerel_timer = { - .init = mackerel_timer_init, -}; - MACHINE_START(MACKEREL, "mackerel") -- .map_io = mackerel_map_io, ++ .map_io = sh7372_map_io, + .init_early = sh7372_add_early_devices, .init_irq = sh7372_init_irq, .handle_irq = shmobile_handle_irq_intc, .init_machine = mackerel_init, diff --cc arch/arm/mach-shmobile/setup-sh7372.c index c14fb35de47,a83cf51fc09..0ebbee087b5 --- a/arch/arm/mach-shmobile/setup-sh7372.c +++ b/arch/arm/mach-shmobile/setup-sh7372.c @@@ -31,30 -31,10 +31,37 @@@ #include #include #include ++#include #include #include +#include +#include #include #include +#include + +static struct map_desc sh7372_io_desc[] __initdata = { + /* create a 1:1 entity map for 0xe6xxxxxx + * used by CPGA, INTC and PFC. + */ + { + .virtual = 0xe6000000, + .pfn = __phys_to_pfn(0xe6000000), + .length = 256 << 20, + .type = MT_DEVICE_NONSHARED + }, +}; + +void __init sh7372_map_io(void) +{ + iotable_init(sh7372_io_desc, ARRAY_SIZE(sh7372_io_desc)); ++ ++ /* ++ * DMA memory at 0xff200000 - 0xffdfffff. The default 2MB size isn't ++ * enough to allocate the frame buffer memory. ++ */ ++ init_consistent_dma_size(12 << 20); +} /* SCIFA0 */ static struct plat_sci_port scif0_platform_data = {