David Hendricks (dhendrix(a)chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3114
-gerrit
commit 3d5d6bd86958616c0e9f6bb9f5b027ddbae680f4
Author: David Hendricks <dhendrix(a)chromium.org>
Date: Thu Apr 18 17:27:07 2013 -0700
exynos5: eliminate lcd_base variable
The original imported code used "lcdbase" and "lcd_base" which quite
predictably caused confusion and bugs. Let's put an end to this little
bit of insanity.
Change-Id: I4f995482cfbff5f23bb296a1e6d35beccf5f8a91
Signed-off-by: David Hendricks <dhendrix(a)chromium.org>
---
src/cpu/samsung/exynos5-common/exynos-fb.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/cpu/samsung/exynos5-common/exynos-fb.c b/src/cpu/samsung/exynos5-common/exynos-fb.c
index 11d666b..54a2d7a 100644
--- a/src/cpu/samsung/exynos5-common/exynos-fb.c
+++ b/src/cpu/samsung/exynos5-common/exynos-fb.c
@@ -83,7 +83,6 @@ int lcd_line_length;
int lcd_color_fg;
int lcd_color_bg;
-void *lcd_base; /* Start of framebuffer memory */
void *lcd_console_address; /* Start of console buffer */
short console_col;
@@ -150,10 +149,10 @@ void fb_init(vidinfo_t *panel_info, void *lcdbase,
((pd->yres - 1) << LINEVAL_OFFSET);
writel(val, &disp_ctrl->vidtcon2);
- writel((unsigned int)lcd_base, &fimd->vidw00add0b0);
+ writel((unsigned int)lcdbase, &fimd->vidw00add0b0);
fbsize = calc_fbsize(panel_info);
- writel((unsigned int)lcd_base + fbsize, &fimd->vidw00add1b0);
+ writel((unsigned int)lcdbase + fbsize, &fimd->vidw00add1b0);
writel(pd->xres * 2, &fimd->vidw00add2);
David Hendricks (dhendrix(a)chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3113
-gerrit
commit 5bf5c5aa127a1edbcc5f53fce5e243dd271a5ccd
Author: David Hendricks <dhendrix(a)chromium.org>
Date: Thu Apr 18 16:45:47 2013 -0700
google/snow: Minor clean-ups for display setup code in ramstage
This just cleans up a few areas:
- Removed an unnecessary delay from exynos_dp_bridge_setup()
- The delay at the end of exynos_dp_bridge_init() is necessary, so
removed the comment suggesting that it might not be.
- Simplified exynos_dp_hotplug
Change-Id: I44150f5ef3958e333985440c1022b4f1544a93aa
Signed-off-by: David Hendricks <dhendrix(a)chromium.org>
---
src/mainboard/google/snow/ramstage.c | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/src/mainboard/google/snow/ramstage.c b/src/mainboard/google/snow/ramstage.c
index 962c79b..1b01758 100644
--- a/src/mainboard/google/snow/ramstage.c
+++ b/src/mainboard/google/snow/ramstage.c
@@ -98,8 +98,6 @@ static void exynos_dp_bridge_setup(void)
gpio_set_pull(dp_rst_l, EXYNOS_GPIO_PULL_NONE);
udelay(10);
gpio_set_value(dp_rst_l, 1);
-
- udelay(90000); /* FIXME: this might be unnecessary */
}
static void exynos_dp_bridge_init(void)
@@ -116,19 +114,13 @@ static void exynos_dp_bridge_init(void)
* roughly 50ms after PD is de-asserted. The phantom high
* makes it hard for us to know when the NXP chip is up.
*/
- udelay(90000); /* FIXME: this might be unnecessary */
+ udelay(90000);
}
static int exynos_dp_hotplug(void)
{
- int x = gpio_get_value(dp_hpd);
/* Check HPD. If it's high, we're all good. */
-// if (gpio_get_value(dp_hpd))
-// return 0;
- printk(BIOS_DEBUG, "%s: dp_hpd: 0x%02x\n", __func__, x);
- if (x)
- return 0;
- return -1;
+ return gpio_get_value(dp_hpd) ? 0 : 1;
}
static void exynos_dp_reset(void)
Ronald G. Minnich (rminnich(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3111
-gerrit
commit 2ca12d2e5ef0c49263abebed37723ae0e9d3f01a
Author: Ronald G. Minnich <rminnich(a)gmail.com>
Date: Thu Apr 18 16:10:29 2013 -0700
exynos5250: get xres and yres out of the device tree and into the panel descriptor
We neglected to copy xres and yres out; now we do.
Change-Id: Icc4a8eb35799d156b11274f71bcfb4a1d10e01e3
Signed-off-by: Ronald G. Minnich <rminnich(a)gmail.com>
---
src/cpu/samsung/exynos5250/cpu.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/cpu/samsung/exynos5250/cpu.c b/src/cpu/samsung/exynos5250/cpu.c
index ee33cf3..09b670e 100644
--- a/src/cpu/samsung/exynos5250/cpu.c
+++ b/src/cpu/samsung/exynos5250/cpu.c
@@ -51,6 +51,8 @@ static void exynos_displayport_init(device_t dev)
panel.left_margin = conf->left_margin;
panel.right_margin = conf->right_margin;
panel.hsync = conf->hsync;
+ panel.xres = conf->xres;
+ panel.yres = conf->yres;
vi.vl_col = conf->xres;
vi.vl_row = conf->yres;