summaryrefslogtreecommitdiff
path: root/board/st/u8500/mcde_display_dsi.c
diff options
context:
space:
mode:
authorMichael Brandt <michael.brandt@stericsson.com>2011-01-25 16:18:23 +0100
committerMichael BRANDT <michael.brandt@stericsson.com>2011-01-28 14:08:07 +0100
commit308da1de236830389b79db8019c8e9aadc152d4f (patch)
tree65e48bca9e99c9ab3707c149bdaef18132a6acb1 /board/st/u8500/mcde_display_dsi.c
parentbc03d1e9728ab1faa9eebbee3ed90e57bd27c051 (diff)
U8500: Change display reset for HREFP 2.0 V60 and later
The HREFP 2.0 V60 has no GPIO expander and the display reset IO line was moved to an ordinary GPIO line. Furthermore move the board dependent routine out from the mcde driver into u8500.c ST-Ericsson ID: CR 272893 Change-Id: If1362cecaeb183e67273066f759e220672f4537f Signed-off-by: Michael Brandt <michael.brandt@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/13480 Reviewed-by: Dan JOHANSSON <dan.johansson@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: Joakim AXELSSON <joakim.axelsson@stericsson.com> Reviewed-by: Markus HELGESSON <markus.helgesson@stericsson.com>
Diffstat (limited to 'board/st/u8500/mcde_display_dsi.c')
-rw-r--r--board/st/u8500/mcde_display_dsi.c35
1 files changed, 2 insertions, 33 deletions
diff --git a/board/st/u8500/mcde_display_dsi.c b/board/st/u8500/mcde_display_dsi.c
index 30186eb2b..8870c9675 100644
--- a/board/st/u8500/mcde_display_dsi.c
+++ b/board/st/u8500/mcde_display_dsi.c
@@ -13,43 +13,12 @@
#include <asm/arch/common.h>
#include "mcde_display.h"
#include "dsilink_regs.h"
-#include <tc35892.h>
#include "mcde_regs.h"
#include <malloc.h>
#include "mcde.h"
#include <linux/err.h>
#include <asm/arch/ab8500.h>
-static int mcde_enable_gpio(void)
-{
- int ret;
-
- debug("%s: enter\n", __func__);
-
- /* Only main display should be initialized */
- ret = tc35892_gpio_dir(CONFIG_SYS_I2C_GPIOE_ADDR,
- main_display_data.reset_gpio, 1);
- if (ret) {
- printf("%s:Could not set direction for gpio\n", __func__);
- return -EINVAL;
- }
- ret = tc35892_gpio_set(CONFIG_SYS_I2C_GPIOE_ADDR,
- main_display_data.reset_gpio, 0);
- if (ret) {
- printf("%s:Could reset gpio\n", __func__);
- return -EINVAL;
- }
- mdelay(main_display_data.reset_delay);
- ret = tc35892_gpio_set(CONFIG_SYS_I2C_GPIOE_ADDR,
- main_display_data.reset_gpio, 1);
- if (ret) {
- printf("%s:Could set gpio\n", __func__);
- return -EINVAL;
- }
- mdelay(main_display_data.reset_delay);
- return 0;
-}
-
#define DCS_CMD_EXIT_SLEEP_MODE 0x11
#define DCS_CMD_SET_DISPLAY_ON 0x29
@@ -259,9 +228,9 @@ int mcde_startup_dsi(struct mcde_platform_data *pdata)
return ret;
}
- ret = mcde_enable_gpio();
+ ret = board_mcde_display_reset();
if (ret) {
- printf("%s: mcde_enable_gpio() -> %d\n", __func__, ret);
+ printf("%s: board_mcde_display_reset() -> %d\n", __func__, ret);
return ret;
}