Skip to contentSkip to conversation

OMAP3: fix panel timing on the mt_ventoux board

PATCH New Stefano Babic 2 participants 4 messages Nov 23, 2012 – Dec 10, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 OMAP3: fix panel timing on the mt_ventoux board

---
 board/teejet/mt_ventoux/mt_ventoux.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
board/teejet/mt_ventoux/mt_ventoux.c +4 -4
index 9622a81..98b92f3 100644
@@ -73,10 +73,10 @@ static struct {
 
 static struct panel_config lcd_cfg[] = {
 	{
-	.timing_h       = PANEL_TIMING_H(4, 8, 41),
-	.timing_v       = PANEL_TIMING_V(2, 4, 10),
-	.pol_freq       = 0x00000000, /* Pol Freq */
-	.divisor        = 0x0001000d, /* 33Mhz Pixel Clock */
+	.timing_h       = PANEL_TIMING_H(40, 5, 2),
+	.timing_v       = PANEL_TIMING_V(8, 8, 2),
+	.pol_freq       = 0x00003000, /* Pol Freq */
+	.divisor        = 0x00010033, /* 9 Mhz Pixel Clock */
 	.panel_type     = 0x01, /* TFT */
 	.data_lines     = 0x03, /* 24 Bit RGB */
 	.load_mode      = 0x02, /* Frame Mode */
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/2 OMAP3: TAM3517: add macros for reading eeprom

Added macros to read SOM information from the I2C
EEPROM.

---
 board/technexion/twister/twister.c   |   10 ++++--
 board/teejet/mt_ventoux/mt_ventoux.c |   15 ++++++---
 include/configs/tam3517-common.h     |   58 +++++++++++++++++++++++++---------
 3 files changed, 60 insertions(+), 23 deletions(-)
board/technexion/twister/twister.c +7 -3
index 1471559..c9eea9b 100644
@@ -98,9 +98,12 @@ int board_init(void)
 	return 0;
 }
 
+#ifndef CONFIG_SPL_BUILD
 int misc_init_r(void)
 {
 	char *eth_addr;
+	struct tam3517_module_info info;
+	int ret;
 
 	dieid_num_r();
 
@@ -108,12 +111,13 @@ int misc_init_r(void)
 	if (eth_addr)
 		return 0;
 
-#ifndef CONFIG_SPL_BUILD
-	TAM3517_READ_MAC_FROM_EEPROM;
-#endif
+	TAM3517_READ_EEPROM(&info, ret);
+	if (!ret)
+		TAM3517_READ_MAC_FROM_EEPROM(&info);
 
 	return 0;
 }
+#endif
 
 /*
  * Routine: set_muxconf_regs
board/teejet/mt_ventoux/mt_ventoux.c +10 -5
index 98b92f3..c516c75 100644
@@ -258,21 +258,26 @@ int board_init(void)
 	return 0;
 }
 
+#ifndef CONFIG_SPL_BUILD
 int misc_init_r(void)
 {
 	char *eth_addr;
+	struct tam3517_module_info info;
+	int ret;
 
+	TAM3517_READ_EEPROM(&info, ret);
 	dieid_num_r();
 
-	eth_addr = getenv("ethaddr");
-	if (eth_addr)
+	if (ret)
 		return 0;
+	eth_addr = getenv("ethaddr");
+	if (!eth_addr)
+		TAM3517_READ_MAC_FROM_EEPROM(&info);
 
-#ifndef CONFIG_SPL_BUILD
-	TAM3517_READ_MAC_FROM_EEPROM;
-#endif
+	TAM3517_PRINT_SOM_INFO(&info);
 	return 0;
 }
+#endif
 
 /*
  * Routine: set_muxconf_regs
include/configs/tam3517-common.h +43 -15

80 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 2/2 OMAP3: TAM3517: add macros for reading eeprom

Quoted 4 lines · Stefano Babic

Added macros to read SOM information from the I2C
EEPROM.

Applied to u-boot-ti/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121210/7179e33a/attachment.pgp>
#3 lore raw

PATCH 1/2 OMAP3: fix panel timing on the mt_ventoux board

In reply to Stefano Babic
Quoted 1 line · Stefano Babic

Applied to u-boot-ti/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20121210/0c6500db/attachment.pgp>