diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-12 12:14:06 -0800 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-12 12:14:06 -0800 | 
| commit | cf4af01221579a4e895f43dbfc47598fbfc5a731 (patch) | |
| tree | adc48fdc6ffb9d3d2a32a0f83df9e66066549963 /arch/arm/mach-orion5x/edmini_v2-setup.c | |
| parent | d027db132b395dabfac208e52a7e510e441bb9d2 (diff) | |
| parent | 006309132f57ccc20dd69e971e2041ebd2cbb7e5 (diff) | |
| download | olio-linux-3.10-cf4af01221579a4e895f43dbfc47598fbfc5a731.tar.xz olio-linux-3.10-cf4af01221579a4e895f43dbfc47598fbfc5a731.zip  | |
Merge tag 'boards' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC board updates from Olof Johansson:
 "This branch contains a set of various board updates for ARM platforms.
  A few shmobile platforms that are stale have been removed, some
  defconfig updates for various boards selecting new features such as
  pinctrl subsystem support, and various updates enabling peripherals,
  etc."
Fix up conflicts mostly as per Olof.
* tag 'boards' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (58 commits)
  ARM: S3C64XX: Add dummy supplies for Glenfarclas LDOs
  ARM: S3C64XX: Add registration of WM2200 Bells device on Cragganmore
  ARM: kirkwood: Add Plat'Home OpenBlocks A6 support
  ARM: Dove: update defconfig
  ARM: Kirkwood: update defconfig for new boards
  arm: orion5x: add DT related options in defconfig
  arm: orion5x: convert 'LaCie Ethernet Disk mini v2' to Device Tree
  arm: orion5x: basic Device Tree support
  arm: orion5x: mechanical defconfig update
  ARM: kirkwood: Add support for the MPL CEC4
  arm: kirkwood: add support for ZyXEL NSA310
  ARM: Kirkwood: new board USI Topkick
  ARM: kirkwood: use gpio-fan DT binding on lsxl
  ARM: Kirkwood: add Netspace boards to defconfig
  ARM: kirkwood: DT board setup for Network Space Mini v2
  ARM: kirkwood: DT board setup for Network Space Lite v2
  ARM: kirkwood: DT board setup for Network Space v2 and parents
  leds: leds-ns2: add device tree binding
  ARM: Kirkwood: Enable the second I2C bus
  ARM: mmp: select pinctrl driver
  ...
Diffstat (limited to 'arch/arm/mach-orion5x/edmini_v2-setup.c')
| -rw-r--r-- | arch/arm/mach-orion5x/edmini_v2-setup.c | 88 | 
1 files changed, 1 insertions, 87 deletions
diff --git a/arch/arm/mach-orion5x/edmini_v2-setup.c b/arch/arm/mach-orion5x/edmini_v2-setup.c index 355e962137c..d675e727803 100644 --- a/arch/arm/mach-orion5x/edmini_v2-setup.c +++ b/arch/arm/mach-orion5x/edmini_v2-setup.c @@ -115,69 +115,6 @@ static struct i2c_board_info __initdata edmini_v2_i2c_rtc = {  };  /***************************************************************************** - * Sata - ****************************************************************************/ - -static struct mv_sata_platform_data edmini_v2_sata_data = { -	.n_ports	= 2, -}; - -/***************************************************************************** - * GPIO LED (simple - doesn't use hardware blinking support) - ****************************************************************************/ - -#define EDMINI_V2_GPIO_LED_POWER	16 - -static struct gpio_led edmini_v2_leds[] = { -	{ -		.name = "power:blue", -		.gpio = EDMINI_V2_GPIO_LED_POWER, -		.active_low = 1, -	}, -}; - -static struct gpio_led_platform_data edmini_v2_led_data = { -	.num_leds = ARRAY_SIZE(edmini_v2_leds), -	.leds = edmini_v2_leds, -}; - -static struct platform_device edmini_v2_gpio_leds = { -	.name           = "leds-gpio", -	.id             = -1, -	.dev            = { -		.platform_data  = &edmini_v2_led_data, -	}, -}; - -/**************************************************************************** - * GPIO key - ****************************************************************************/ - -#define EDMINI_V2_GPIO_KEY_POWER	18 - -static struct gpio_keys_button edmini_v2_buttons[] = { -	{ -		.code		= KEY_POWER, -		.gpio		= EDMINI_V2_GPIO_KEY_POWER, -		.desc		= "Power Button", -		.active_low	= 0, -	}, -}; - -static struct gpio_keys_platform_data edmini_v2_button_data = { -	.buttons	= edmini_v2_buttons, -	.nbuttons	= ARRAY_SIZE(edmini_v2_buttons), -}; - -static struct platform_device edmini_v2_gpio_buttons = { -	.name		= "gpio-keys", -	.id		= -1, -	.dev		= { -		.platform_data	= &edmini_v2_button_data, -	}, -}; - -/*****************************************************************************   * General Setup   ****************************************************************************/  static unsigned int edminiv2_mpp_modes[] __initdata = { @@ -207,13 +144,8 @@ static unsigned int edminiv2_mpp_modes[] __initdata = {  	0,  }; -static void __init edmini_v2_init(void) +void __init edmini_v2_init(void)  { -	/* -	 * Setup basic Orion functions. Need to be called early. -	 */ -	orion5x_init(); -  	orion5x_mpp_conf(edminiv2_mpp_modes);  	/* @@ -221,15 +153,10 @@ static void __init edmini_v2_init(void)  	 */  	orion5x_ehci0_init();  	orion5x_eth_init(&edmini_v2_eth_data); -	orion5x_i2c_init(); -	orion5x_sata_init(&edmini_v2_sata_data); -	orion5x_uart0_init();  	orion5x_setup_dev_boot_win(EDMINI_V2_NOR_BOOT_BASE,  				EDMINI_V2_NOR_BOOT_SIZE);  	platform_device_register(&edmini_v2_nor_flash); -	platform_device_register(&edmini_v2_gpio_leds); -	platform_device_register(&edmini_v2_gpio_buttons);  	pr_notice("edmini_v2: USB device port, flash write and power-off "  		  "are not yet supported.\n"); @@ -247,16 +174,3 @@ static void __init edmini_v2_init(void)  	i2c_register_board_info(0, &edmini_v2_i2c_rtc, 1);  } - -/* Warning: LaCie use a wrong mach-type (0x20e=526) in their bootloader. */ -MACHINE_START(EDMINI_V2, "LaCie Ethernet Disk mini V2") -	/* Maintainer: Christopher Moore <moore@free.fr> */ -	.atag_offset	= 0x100, -	.init_machine	= edmini_v2_init, -	.map_io		= orion5x_map_io, -	.init_early	= orion5x_init_early, -	.init_irq	= orion5x_init_irq, -	.timer		= &orion5x_timer, -	.fixup		= tag_fixup_mem32, -	.restart	= orion5x_restart, -MACHINE_END  |