Skip to content
Snippets Groups Projects
Commit cb19ea5e authored by Troy Kisky's avatar Troy Kisky
Browse files

ta: use fbp_bus_gp

parent 769c5113
No related branches found
No related tags found
No related merge requests found
......@@ -143,8 +143,8 @@ static const iomux_v3_cfg_t init_pads[] = {
IOMUX_PAD_CTRL(GPIO_9__GPIO1_IO09, WEAK_PULLUP),
/* LVDS */
#define GP_LVDS_CONTRAST IMX_GPIO_NR(4, 20)
IOMUX_PAD_CTRL(DI0_PIN4__GPIO4_IO20, WEAK_PULLUP),
#define GP_LVDS_BKL_EN IMX_GPIO_NR(4, 20)
IOMUX_PAD_CTRL(DI0_PIN4__GPIO4_IO20, WEAK_PULLDN),
#define GP_LVDS_BACKLIGHT IMX_GPIO_NR(1, 18)
IOMUX_PAD_CTRL(SD1_CMD__GPIO1_IO18, OUTPUT_40OHM),
......@@ -262,16 +262,17 @@ void board_enable_lvds(const struct display_info_t *di, int enable)
static const struct display_info_t displays[] = {
/* ft5x06 */
VD_HANNSTAR7(LVDS, fbp_detect_i2c, 2, 0x38),
VD_WSVGA(LVDS, NULL, 2, 0x38),
VD_TM070JDHG30(LVDS, NULL, 2, 0x38),
VD_HANNSTAR7(LVDS, fbp_detect_i2c, fbp_bus_gp(2, 0, GP_LVDS_BKL_EN, 0), 0x38),
VD_M101NWWB(LVDS, NULL, fbp_bus_gp(2, 0, GP_LVDS_BKL_EN, 0), 0x38),
VD_WSVGA(LVDS, NULL, fbp_bus_gp(2, 0, GP_LVDS_BKL_EN, 0), 0x38),
VD_TM070JDHG30(LVDS, NULL, fbp_bus_gp(2, 0, GP_LVDS_BKL_EN, 0), 0x38),
VD_WXGA_J(LVDS, NULL, 0, 0x00),
VD_WXGA(LVDS, NULL, 0, 0x00),
VD_WXGA_J(LVDS, NULL, fbp_bus_gp(0, 0, GP_LVDS_BKL_EN, 0), 0x00),
VD_WXGA(LVDS, NULL, fbp_bus_gp(0, 0, GP_LVDS_BKL_EN, 0), 0x00),
/* egalax_ts */
VD_HANNSTAR(LVDS, fbp_detect_i2c, 2, 0x04),
VD_LG9_7(LVDS, NULL, 2, 0x04),
VD_HANNSTAR(LVDS, fbp_detect_i2c, fbp_bus_gp(2, 0, GP_LVDS_BKL_EN, 0), 0x04),
VD_LG9_7(LVDS, NULL, fbp_bus_gp(2, 0, GP_LVDS_BKL_EN, 0), 0x04),
};
#define display_cnt ARRAY_SIZE(displays)
#else
......@@ -283,7 +284,7 @@ static const unsigned short gpios_out_low[] = {
GP_RGMII_PHY_RESET,
GP_RELAY_EVENT,
GP_RELAY_GAS,
GP_LVDS_CONTRAST,
GP_LVDS_BKL_EN,
GP_LVDS_BACKLIGHT,
GP_USBH1_PWR,
GP_USB_OTG_PWR,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment