Skip to contentSkip to conversation

OMAP3: overo : Use ttyO2 instead of ttyS2.

PATCH New Philip Balister 2 participants 6 messages Oct 11, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 OMAP3: overo : Use ttyO2 instead of ttyS2.

Starting with kernel 2.6.37, the serial ports on the OMAP3 are called ttyOX, not ttySX.

---
 include/configs/omap3_overo.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/configs/omap3_overo.h +1 -1
index 2f3743c..6573235 100644
@@ -155,7 +155,7 @@
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"loadaddr=0x82000000\0" \
-	"console=ttyS2,115200n8\0" \
+	"console=ttyO2,115200n8\0" \
 	"mpurate=500\0" \
 	"vram=12M\0" \
 	"dvimode=1024x768MR-16 at 60\0" \
Signature · 1 line
1.7.6.4
#1 lore raw

PATCH 2/3 OMAP3: overo: Move ethernet CS4 configuration to execute based on board id

By moving the CS4 configuration into the board specific configuration, it is left free for custom carrier boards. The USRP-E1XX series uses CS4 to control access to an FPGA, so without this patch the device driver cannot claim CS4.

---
 board/overo/overo.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
board/overo/overo.c +3 -4
index 850dfee..2f9eba6 100644
@@ -233,6 +233,9 @@ int misc_init_r(void)
 		printf("Recognized Tobi Duo expansion board (rev %d %s)\n",
 			expansion_config.revision,
 			expansion_config.fab_revision);
+		/* second lan chip */
+		enable_gpmc_cs_config(gpmc_lan_config, &gpmc_cfg->cs[4],
+		    0x2B000000, GPMC_SIZE_16M);
 		break;
 	case GUMSTIX_PALO35:
 		printf("Recognized Palo35 expansion board (rev %d %s)\n",
@@ -310,10 +313,6 @@ static void setup_net_chip(void)
 	enable_gpmc_cs_config(gpmc_lan_config, &gpmc_cfg->cs[5], 0x2C000000,
 			GPMC_SIZE_16M);
 
-	/* second lan chip */
-	enable_gpmc_cs_config(gpmc_lan_config, &gpmc_cfg->cs[4], 0x2B000000,
-			GPMC_SIZE_16M);
-
 	/* Enable off mode for NWE in PADCONF_GPMC_NWE register */
 	writew(readw(&ctrl_base ->gpmc_nwe) | 0x0E00, &ctrl_base->gpmc_nwe);
 	/* Enable off mode for NOE in PADCONF_GPMC_NADV_ALE register */
Signature · 1 line
1.7.6.4
#3 lore raw

PATCH 3/3 OMAP3: overo : Add environment variable optargs to bootargs

In reply to Philip Balister

This allows the user can easily add extra kernel arguments. Very helpful for reserving memory for the DSP without rewriting the entire kernel argument line.

---
 include/configs/omap3_overo.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
include/configs/omap3_overo.h +3 -0
index 6573235..afdefd9 100644
@@ -157,6 +157,7 @@
 	"loadaddr=0x82000000\0" \
 	"console=ttyO2,115200n8\0" \
 	"mpurate=500\0" \
+	"optargs=\0" \
 	"vram=12M\0" \
 	"dvimode=1024x768MR-16 at 60\0" \
 	"defaultdisplay=dvi\0" \
@@ -166,6 +167,7 @@
 	"nandroot=/dev/mtdblock4 rw\0" \
 	"nandrootfstype=jffs2\0" \
 	"mmcargs=setenv bootargs console=${console} " \
+		"${optargs} " \
 		"mpurate=${mpurate} " \
 		"vram=${vram} " \
 		"omapfb.mode=dvi:${dvimode} " \
@@ -173,6 +175,7 @@
 		"root=${mmcroot} " \
 		"rootfstype=${mmcrootfstype}\0" \
 	"nandargs=setenv bootargs console=${console} " \
+		"${optargs} " \
 		"mpurate=${mpurate} " \
 		"vram=${vram} " \
 		"omapfb.mode=dvi:${dvimode} " \
Signature · 1 line
1.7.6.4
#2 lore raw

PATCH 2/3 OMAP3: overo: Move ethernet CS4 configuration to execute based on board id

In reply to Philip Balister
Quoted 6 lines · Philip Balister

By moving the CS4 configuration into the board specific configuration, it is left free for custom carrier boards. The USRP-E1XX series uses CS4 to control access to an FPGA, so without this patch the device driver cannot claim CS4.