From 0273e73a5fc5703d9b48ca85d54a482f97c8d9b8 Mon Sep 17 00:00:00 2001 From: marc Date: Thu, 8 Apr 2010 17:53:43 +1000 Subject: [PATCH 2/3] Enable power to LCD. Changed register names in f3s_pmic_init_all so that they have the same effect with the corrected address values. --- board/freescale-mx35-3-stack/3stack.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/board/freescale-mx35-3-stack/3stack.c b/board/freescale-mx35-3-stack/3stack.c index 3b6a93b..0b1abcd 100644 --- a/board/freescale-mx35-3-stack/3stack.c +++ b/board/freescale-mx35-3-stack/3stack.c @@ -202,6 +202,10 @@ device_initcall(f3s_devices_init); static int f3s_enable_display(void) { gpio_direction_output(1, 1); + + /* Enable power to the LCD. (bit 6 hi.) */ + mc9sdz60_set_bits( mc9sdz60_get(), MC9SDZ60_REG_GPIO_1, 0x40, 0x40); + return 0; } @@ -390,11 +394,11 @@ static int f3s_pmic_init_all(struct mc9sdz60 *mc9sdz60) { int err = 0; - err |= mc9sdz60_set_bits(mc9sdz60, MC9SDZ60_REG_INT_FLAG_1, 0x04, 0x04); + err |= mc9sdz60_set_bits(mc9sdz60, MC9SDZ60_REG_GPIO_1, 0x04, 0x04); - err |= mc9sdz60_set_bits(mc9sdz60, MC9SDZ60_REG_GPIO_2, 0x80, 0x00); + err |= mc9sdz60_set_bits(mc9sdz60, MC9SDZ60_REG_RESET_2, 0x80, 0x00); mdelay(200); - err |= mc9sdz60_set_bits(mc9sdz60, MC9SDZ60_REG_GPIO_2, 0x80, 0x80); + err |= mc9sdz60_set_bits(mc9sdz60, MC9SDZ60_REG_RESET_2, 0x80, 0x80); if (err) dev_err(&mc9sdz60->client->dev, -- 1.6.4.2