[coreboot-gerrit] Patch set updated for coreboot: e8c51f4 veyron: Support Mighty v1 hardware

Marc Jones (marc.jones@se-eng.com) gerrit at coreboot.org
Tue Apr 14 22:05:00 CEST 2015


Marc Jones (marc.jones at se-eng.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/9633

-gerrit

commit e8c51f46dfeea4cb0e888d5fcdeb1bcde3a320d7
Author: huang lin <hl at rock-chips.com>
Date:   Sat Dec 13 09:38:38 2014 +0800

    veyron: Support Mighty v1 hardware
    
    BUG=None
    TEST=emerge veyron_mighty and boot the Mighty board
    BRANCH=None
    
    Change-Id: I0047569c9eed7a3881500ba3b05e6726ba8d7b8f
    Signed-off-by: Stefan Reinauer <reinauer at chromium.org>
    Original-Commit-Id: 49366e5bb3ecdec38c898c936392e5d77a91cd53
    Original-Change-Id: I3fcdc837e8d7e62c145850f549662d8260aa1120
    Original-Signed-off-by: huang lin <hl at rock-chips.com>
    Original-Reviewed-on: https://chromium-review.googlesource.com/234714
    Original-Reviewed-by: Julius Werner <jwerner at chromium.org>
---
 src/mainboard/google/veyron_mighty/mainboard.c | 35 ++++++++++++++++++++------
 1 file changed, 28 insertions(+), 7 deletions(-)

diff --git a/src/mainboard/google/veyron_mighty/mainboard.c b/src/mainboard/google/veyron_mighty/mainboard.c
index 016e052..dd22748 100644
--- a/src/mainboard/google/veyron_mighty/mainboard.c
+++ b/src/mainboard/google/veyron_mighty/mainboard.c
@@ -91,9 +91,19 @@ static void configure_vop(void)
 	/* lcdc(vop) iodomain select 1.8V */
 	writel(RK_SETBITS(1 << 0), &rk3288_grf->io_vsel);
 
-	rk808_configure_switch(PMIC_BUS, 2, 1);	/* VCC18_LCD */
-	rk808_configure_ldo(PMIC_BUS, 7, 2500);	/* VCC10_LCD_PWREN_H */
-	rk808_configure_switch(PMIC_BUS, 1, 1);	/* VCC33_LCD */
+	switch (board_id()) {
+	case 0:
+		rk808_configure_switch(PMIC_BUS, 2, 1);	/* VCC18_LCD */
+		rk808_configure_ldo(PMIC_BUS, 7, 2500);	/* VCC10_LCD_PWREN_H */
+		rk808_configure_switch(PMIC_BUS, 1, 1);	/* VCC33_LCD */
+		break;
+	default:
+		gpio_output(GPIO(2, B, 5), 1);	/* AVDD_1V8_DISP_EN */
+		rk808_configure_ldo(PMIC_BUS, 7, 2500);	/* VCC10_LCD_PWREN_H */
+		gpio_output(GPIO(7, B, 6), 1);	/* LCD_EN */
+		rk808_configure_switch(PMIC_BUS, 1, 1);	/* VCC33_LCD */
+		break;
+	}
 }
 
 static void mainboard_init(device_t dev)
@@ -133,8 +143,19 @@ void lb_board(struct lb_header *header)
 
 void mainboard_power_on_backlight(void)
 {
-	gpio_output(GPIO(7, A, 0), 0);	/* BL_EN */
-	gpio_output(GPIO(7, A, 2), 1);	/* LCD_BL */
-	mdelay(10);
-	gpio_output(GPIO(7, A, 0), 1);	/* BL_EN */
+	switch (board_id()) {
+	case 0:
+		gpio_output(GPIO(7, A, 0), 0);	/* BL_EN */
+		gpio_output(GPIO(7, A, 2), 1);	/* LCD_BL */
+		mdelay(10);
+		gpio_output(GPIO(7, A, 0), 1);	/* BL_EN */
+		break;
+	default:
+		gpio_output(GPIO(2, B, 4), 1);	/* BL_PWR_EN */
+		mdelay(10);
+		gpio_output(GPIO(7, A, 2), 1);	/* LCD_BL */
+		mdelay(10);
+		gpio_output(GPIO(7, A, 0), 1);	/* BL_EN */
+		break;
+	}
 }



More information about the coreboot-gerrit mailing list