diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2013-10-22 14:17:44 +0200 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2013-10-22 14:17:44 +0200 |
commit | d831d2d2a2459419ab1b9eeec55d816c72920556 (patch) | |
tree | 78667ea82b42a95622595d12371f8915536e5e8b | |
parent | d0289ab23da17186989c3467014a63980c906cf8 (diff) |
apalis_t30: clean-up gpio definitions and namesColibri_T30_LinuxImageV2.1Beta1_20131022Colibri_T20_LinuxImageV2.1Beta1_20131022Apalis_T30_LinuxImageV2.1Beta1_20131022
Clean-up GPIO definitions and names (e.g. use LVDS_ defines, BKL1_ON
rather than BL_ON and HDMI1_HPD rather than hdmi_hpd).
-rw-r--r-- | arch/arm/mach-tegra/board-apalis_t30-panel.c | 8 | ||||
-rw-r--r-- | arch/arm/mach-tegra/board-apalis_t30.c | 32 |
2 files changed, 20 insertions, 20 deletions
diff --git a/arch/arm/mach-tegra/board-apalis_t30-panel.c b/arch/arm/mach-tegra/board-apalis_t30-panel.c index 8be309edf52c..aac0db6f6a05 100644 --- a/arch/arm/mach-tegra/board-apalis_t30-panel.c +++ b/arch/arm/mach-tegra/board-apalis_t30-panel.c @@ -45,8 +45,8 @@ #include "gpio-names.h" #include "tegra3_host1x_devices.h" -#define apalis_t30_bl_enb TEGRA_GPIO_PV2 /* BL_ON */ -#define apalis_t30_hdmi_hpd TEGRA_GPIO_PN7 /* HDMI_INT_N */ +#define apalis_t30_bl_enb BKL1_ON +#define apalis_t30_hdmi_hpd HDMI1_HPD static struct regulator *apalis_t30_hdmi_pll = NULL; static struct regulator *apalis_t30_hdmi_reg = NULL; @@ -55,7 +55,7 @@ static struct regulator *apalis_t30_hdmi_vddio = NULL; static int apalis_t30_backlight_init(struct device *dev) { int ret; - ret = gpio_request(apalis_t30_bl_enb, "BL_ON"); + ret = gpio_request(apalis_t30_bl_enb, "BKL1_ON"); if (ret < 0) return ret; @@ -738,7 +738,7 @@ int __init apalis_t30_panel_init(void) void __iomem *to_io; /* enable hdmi hotplug gpio for hotplug detection */ - gpio_request(apalis_t30_hdmi_hpd, "hdmi_hpd"); + gpio_request(apalis_t30_hdmi_hpd, "HDMI1_HPD"); gpio_direction_input(apalis_t30_hdmi_hpd); #ifdef CONFIG_HAS_EARLYSUSPEND diff --git a/arch/arm/mach-tegra/board-apalis_t30.c b/arch/arm/mach-tegra/board-apalis_t30.c index acabf5eb7d70..d6c1955e3f32 100644 --- a/arch/arm/mach-tegra/board-apalis_t30.c +++ b/arch/arm/mach-tegra/board-apalis_t30.c @@ -232,23 +232,23 @@ static struct tegra_clk_init_table apalis_t30_clk_init_table[] __initdata = { /* GPIO */ static struct gpio apalis_t30_gpios[] = { - {APALIS_GPIO1, GPIOF_IN, "GPIO1 X1-1"}, - {APALIS_GPIO2, GPIOF_IN, "GPIO2 X1-3"}, - {APALIS_GPIO3, GPIOF_IN, "GPIO3 X1-5"}, - {APALIS_GPIO4, GPIOF_IN, "GPIO4 X1-7"}, - {APALIS_GPIO5, GPIOF_IN, "GPIO5 X1-9"}, - {APALIS_GPIO6, GPIOF_IN, "GPIO6 X1-11"}, + {APALIS_GPIO1, GPIOF_IN, "GPIO1 X1-1"}, + {APALIS_GPIO2, GPIOF_IN, "GPIO2 X1-3"}, + {APALIS_GPIO3, GPIOF_IN, "GPIO3 X1-5"}, + {APALIS_GPIO4, GPIOF_IN, "GPIO4 X1-7"}, + {APALIS_GPIO5, GPIOF_IN, "GPIO5 X1-9"}, + {APALIS_GPIO6, GPIOF_IN, "GPIO6 X1-11"}, /* GPIO7 is used by PCIe driver on Evaluation board */ -/* {APALIS_GPIO7, GPIOF_IN, "GPIO7 X1-13"}, */ - {APALIS_GPIO8, GPIOF_IN, "GPIO8 X1-15, FAN"}, - {TEGRA_GPIO_PBB0, GPIOF_IN, "LVDS: Single/Dual Ch"}, - {TEGRA_GPIO_PBB3, GPIOF_IN, "LVDS: 18/24 Bit Mode"}, - {TEGRA_GPIO_PBB4, GPIOF_IN, "LVDS: Output Enable"}, - {TEGRA_GPIO_PBB5, GPIOF_IN, "LVDS: Power Down"}, - {TEGRA_GPIO_PBB6, GPIOF_IN, "LVDS: Clock Polarity"}, - {TEGRA_GPIO_PBB7, GPIOF_IN, "LVDS: Colour Mapping"}, - {TEGRA_GPIO_PCC1, GPIOF_IN, "LVDS: Swing Mode"}, - {TEGRA_GPIO_PCC2, GPIOF_IN, "LVDS: DDRclk Disable"}, +/* {APALIS_GPIO7, GPIOF_IN, "GPIO7 X1-13"}, */ + {APALIS_GPIO8, GPIOF_IN, "GPIO8 X1-15, FAN"}, + {LVDS_MODE, GPIOF_IN, "LVDS: Single/Dual Ch"}, + {LVDS_6B_8B_N, GPIOF_IN, "LVDS: 18/24 Bit Mode"}, + {LVDS_OE, GPIOF_IN, "LVDS: Output Enable"}, + {LVDS_PDWN_N, GPIOF_IN, "LVDS: Power Down"}, + {LVDS_R_F_N, GPIOF_IN, "LVDS: Clock Polarity"}, + {LVDS_MAP, GPIOF_IN, "LVDS: Colour Mapping"}, + {LVDS_RS, GPIOF_IN, "LVDS: Swing Mode"}, + {LVDS_DDR_N, GPIOF_IN, "LVDS: DDRclk Disable"}, }; static void apalis_t30_gpio_init(void) |