aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-kirkwood/board-lsxl.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-12-13 13:39:26 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-12-13 13:39:26 -0500
commitdb5b0ae00712b5176d7405e7a1dd2bfd6e8f5070 (patch)
tree4e874d81ca9037dda1007178bbc9613649d43305 /arch/arm/mach-kirkwood/board-lsxl.c
parent6be35c700f742e911ecedd07fcc43d4439922334 (diff)
parent64507dd7028e3e0145077e73b8374bd75aea117c (diff)
Merge tag 'dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
Pull ARM SoC device tree conversions and enablement from Olof Johansson: "Continued device tree conversion and enablement across a number of platforms; Kirkwood, tegra, i.MX, Exynos, zynq and a couple of other smaller series as well. ux500 has seen continued conversion for platforms. Several platforms have seen pinctrl-via-devicetree conversions for simpler multiplatform. Tegra is adding data for new devices/drivers, and Exynos has a bunch of new bindings and devices added as well. So, pretty much the same progression in the right direction as the last few releases." Fix up conflicts as per Olof. * tag 'dt' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc: (185 commits) ARM: ux500: Rename dbx500 cpufreq code to be more generic ARM: dts: add missing ux500 device trees ARM: ux500: Stop registering the PCM driver from platform code ARM: ux500: Move board specific GPIO info out to subordinate DTS files ARM: ux500: Disable the MMCI gpio-regulator by default ARM: Kirkwood: remove kirkwood_ehci_init() from new boards ARM: Kirkwood: Add support LED of OpenBlocks A6 ARM: Kirkwood: Convert to EHCI via DT for OpenBlocks A6 ARM: kirkwood: Add NAND partiton map for OpenBlocks A6 ARM: kirkwood: Add support second I2C bus and RTC on OpenBlocks A6 ARM: kirkwood: Add support DT of second I2C bus ARM: kirkwood: Convert mplcec4 board to pinctrl ARM: Kirkwood: Convert km_kirkwood to pinctrl ARM: Kirkwood: support 98DX412x kirkwoods with pinctrl ARM: Kirkwood: Convert IX2-200 to pinctrl. ARM: Kirkwood: Convert lsxl boards to pinctrl. ARM: Kirkwood: Convert ib62x0 to pinctrl. ARM: Kirkwood: Convert GoFlex Net to pinctrl. ARM: Kirkwood: Convert dreamplug to pinctrl. ARM: Kirkwood: Convert dockstar to pinctrl. ...
Diffstat (limited to 'arch/arm/mach-kirkwood/board-lsxl.c')
-rw-r--r--arch/arm/mach-kirkwood/board-lsxl.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/arch/arm/mach-kirkwood/board-lsxl.c b/arch/arm/mach-kirkwood/board-lsxl.c
index 7e18cad9b796..4ec8b7ae784a 100644
--- a/arch/arm/mach-kirkwood/board-lsxl.c
+++ b/arch/arm/mach-kirkwood/board-lsxl.c
@@ -15,9 +15,7 @@
15#include <linux/init.h> 15#include <linux/init.h>
16#include <linux/platform_device.h> 16#include <linux/platform_device.h>
17#include <linux/mv643xx_eth.h> 17#include <linux/mv643xx_eth.h>
18#include <linux/gpio.h>
19#include "common.h" 18#include "common.h"
20#include "mpp.h"
21 19
22static struct mv643xx_eth_platform_data lsxl_ge00_data = { 20static struct mv643xx_eth_platform_data lsxl_ge00_data = {
23 .phy_addr = MV643XX_ETH_PHY_ADDR(0), 21 .phy_addr = MV643XX_ETH_PHY_ADDR(0),
@@ -27,23 +25,6 @@ static struct mv643xx_eth_platform_data lsxl_ge01_data = {
27 .phy_addr = MV643XX_ETH_PHY_ADDR(8), 25 .phy_addr = MV643XX_ETH_PHY_ADDR(8),
28}; 26};
29 27
30static unsigned int lsxl_mpp_config[] __initdata = {
31 MPP10_GPO, /* HDD Power Enable */
32 MPP11_GPIO, /* USB Vbus Enable */
33 MPP18_GPO, /* FAN High Enable# */
34 MPP19_GPO, /* FAN Low Enable# */
35 MPP36_GPIO, /* Function Blue LED */
36 MPP37_GPIO, /* Alarm LED */
37 MPP38_GPIO, /* Info LED */
38 MPP39_GPIO, /* Power LED */
39 MPP40_GPIO, /* Fan Lock */
40 MPP41_GPIO, /* Function Button */
41 MPP42_GPIO, /* Power Switch */
42 MPP43_GPIO, /* Power Auto Switch */
43 MPP48_GPIO, /* Function Red LED */
44 0
45};
46
47/* 28/*
48 * On the LS-XHL/LS-CHLv2, the shutdown process is following: 29 * On the LS-XHL/LS-CHLv2, the shutdown process is following:
49 * - Userland monitors key events until the power switch goes to off position 30 * - Userland monitors key events until the power switch goes to off position
@@ -57,21 +38,12 @@ static void lsxl_power_off(void)
57 kirkwood_restart('h', NULL); 38 kirkwood_restart('h', NULL);
58} 39}
59 40
60#define LSXL_GPIO_HDD_POWER 10
61#define LSXL_GPIO_USB_POWER 11
62
63void __init lsxl_init(void) 41void __init lsxl_init(void)
64{ 42{
65 /* 43 /*
66 * Basic setup. Needs to be called early. 44 * Basic setup. Needs to be called early.
67 */ 45 */
68 kirkwood_mpp_conf(lsxl_mpp_config);
69
70 /* usb and sata power on */
71 gpio_set_value(LSXL_GPIO_USB_POWER, 1);
72 gpio_set_value(LSXL_GPIO_HDD_POWER, 1);
73 46
74 kirkwood_ehci_init();
75 kirkwood_ge00_init(&lsxl_ge00_data); 47 kirkwood_ge00_init(&lsxl_ge00_data);
76 kirkwood_ge01_init(&lsxl_ge01_data); 48 kirkwood_ge01_init(&lsxl_ge01_data);
77 49