From: Ash Charles <ashcharles@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [Patch v2 7/9] OMAP3: overo: add some Gumstix expansion boards
Date: Wed, 21 May 2014 14:04:53 -0700 [thread overview]
Message-ID: <1400706295-31871-8-git-send-email-ashcharles@gmail.com> (raw)
In-Reply-To: <1400706295-31871-1-git-send-email-ashcharles@gmail.com>
Add EEPROM ID switches for Alto35, Arbor43C, Stagecoach, Thumbo, and
Turtlecore Gumstix Overo expansion boards.
Signed-off-by: Ash Charles <ash@gumstix.com>
---
board/overo/overo.c | 42 ++++++++++++++++++++++++++++++++++++++++--
board/overo/overo.h | 16 ++++++++++++++++
2 files changed, 56 insertions(+), 2 deletions(-)
diff --git a/board/overo/overo.c b/board/overo/overo.c
index 9a5f4c4..62b50a8 100644
--- a/board/overo/overo.c
+++ b/board/overo/overo.c
@@ -39,6 +39,11 @@ DECLARE_GLOBAL_DATA_PTR;
#define GUMSTIX_CHESTNUT43 0x06000200
#define GUMSTIX_PINTO 0x07000200
#define GUMSTIX_GALLOP43 0x08000200
+#define GUMSTIX_ALTO35 0x09000200
+#define GUMSTIX_STAGECOACH 0x0A000200
+#define GUMSTIX_THUMBO 0x0B000200
+#define GUMSTIX_TURTLECORE 0x0C000200
+#define GUMSTIX_ARBOR43C 0x0D000200
#define ETTUS_USRP_E 0x01000300
@@ -231,6 +236,8 @@ unsigned int get_expansion_id(void)
*/
int misc_init_r(void)
{
+ unsigned int expansion_id;
+
twl4030_power_init();
twl4030_led_init(TWL4030_LED_LEDEN_LEDAON | TWL4030_LED_LEDEN_LEDBON);
@@ -253,7 +260,8 @@ int misc_init_r(void)
puts("Unable to detect mmc2 connection type\n");
}
- switch (get_expansion_id()) {
+ expansion_id = get_expansion_id();
+ switch (expansion_id) {
case GUMSTIX_SUMMIT:
printf("Recognized Summit expansion board (rev %d %s)\n",
expansion_config.revision,
@@ -303,6 +311,35 @@ int misc_init_r(void)
expansion_config.fab_revision);
setenv("defaultdisplay", "lcd43");
break;
+ case GUMSTIX_ALTO35:
+ printf("Recognized Alto35 expansion board (rev %d %s)\n",
+ expansion_config.revision,
+ expansion_config.fab_revision);
+ MUX_ALTO35();
+ setenv("defaultdisplay", "lcd35");
+ break;
+ case GUMSTIX_STAGECOACH:
+ printf("Recognized Stagecoach expansion board (rev %d %s)\n",
+ expansion_config.revision,
+ expansion_config.fab_revision);
+ break;
+ case GUMSTIX_THUMBO:
+ printf("Recognized Thumbo expansion board (rev %d %s)\n",
+ expansion_config.revision,
+ expansion_config.fab_revision);
+ break;
+ case GUMSTIX_TURTLECORE:
+ printf("Recognized Turtlecore expansion board (rev %d %s)\n",
+ expansion_config.revision,
+ expansion_config.fab_revision);
+ break;
+ case GUMSTIX_ARBOR43C:
+ printf("Recognized Arbor43C expansion board (rev %d %s)\n",
+ expansion_config.revision,
+ expansion_config.fab_revision);
+ MUX_ARBOR43C();
+ setenv("defaultdisplay", "lcd43");
+ break;
case ETTUS_USRP_E:
printf("Recognized Ettus Research USRP-E (rev %d %s)\n",
expansion_config.revision,
@@ -314,7 +351,8 @@ int misc_init_r(void)
puts("No EEPROM on expansion board\n");
break;
default:
- puts("Unrecognized expansion board\n");
+ printf("Unrecognized expansion board 0x%08x\n", expansion_id);
+ break;
}
if (expansion_config.content == 1)
diff --git a/board/overo/overo.h b/board/overo/overo.h
index 25c9f16..57725d8 100644
--- a/board/overo/overo.h
+++ b/board/overo/overo.h
@@ -405,4 +405,20 @@ const omap3_sysinfo sysinfo = {
MUX_VAL(CP(MCSPI1_SOMI), (IEN | PTD | DIS | M4)) /*GPIO_173 */\
MUX_VAL(CP(MCSPI1_CS1), (IDIS | PTD | EN | M4)) /*GPIO_175 */\
+#define MUX_ALTO35() \
+ MUX_VAL(CP(SYS_CLKOUT1), (IEN | PTU | EN | M4)) /*GPIO_10-BTN*/\
+ MUX_VAL(CP(UART1_TX), (IDIS | PTD | DIS | M4)) /*GPIO_148-RED LED*/\
+ MUX_VAL(CP(UART1_CTS), (IDIS | PTD | DIS | M4)) /*GPIO_150-YELLOW LED*/\
+ MUX_VAL(CP(UART1_RX), (IDIS | PTD | DIS | M4)) /*GPIO_151-BLUE LED*/\
+ MUX_VAL(CP(HDQ_SIO), (IDIS | PTD | DIS | M4)) /*GPIO_170-GREEN LED*/\
+ MUX_VAL(CP(MCSPI1_CS1), (IDIS | PTD | EN | M4)) /*GPIO_175*/\
+
+#define MUX_ARBOR43C() \
+ MUX_VAL(CP(CSI2_DX1), (IDIS | PTD | DIS | M4)) /*GPIO_114-RED LED*/\
+ MUX_VAL(CP(UART1_CTS), (IDIS | PTD | DIS | M4)) /*GPIO_150-YELLOW LED*/\
+ MUX_VAL(CP(HDQ_SIO), (IEN | PTU | EN | M4)) /*GPIO_170-BUTTON */\
+ MUX_VAL(CP(SYS_CLKOUT2), (IDIS | PTD | DIS | M4)) /*GPIO_186-BLUE LED*/\
+ MUX_VAL(CP(JTAG_EMU1), (IDIS | PTD | DIS | M4)) /*GPIO_31-CAP WAKE*/\
+ MUX_VAL(CP(SYS_CLKOUT1), (IEN | PTU | EN | M4)) /*GPIO_10-CAP IRQ*/\
+
#endif
--
1.8.3.2
next prev parent reply other threads:[~2014-05-21 21:04 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-29 23:15 [U-Boot] [PATCH 0/8] omap3: overo: update board data Ash Charles
2014-04-29 23:15 ` [U-Boot] [PATCH 1/8] omap: overo: allow the use of a plain text env file instead boot scripts Ash Charles
2014-04-29 23:15 ` [U-Boot] [PATCH 2/8] OMAP3: overo: add command support for mtd and ubi Ash Charles
2014-04-29 23:15 ` [U-Boot] [PATCH 3/8] OMAP3: overo: increase linux partition to 8 MiB Ash Charles
2014-04-29 23:15 ` [U-Boot] [PATCH 4/8] OMAP3: overo: eliminate hard-coded partition offsets Ash Charles
2014-04-29 23:15 ` [U-Boot] [PATCH 5/8] arm: omap3: Fix omap3_overo SPL boot hangup Ash Charles
2014-04-29 23:15 ` [U-Boot] [PATCH 6/8] [omap3][overo] Add Board Revision for Wireless chip Ash Charles
2014-04-29 23:15 ` [U-Boot] [PATCH 7/8] OMAP3: overo: add some Gumstix expansion boards Ash Charles
2014-04-29 23:15 ` [U-Boot] [PATCH 8/8] [omap3][overo] Allow overo to boot with device tree Ash Charles
2014-05-06 18:14 ` Tom Rini
2014-05-06 23:56 ` Ash Charles
2014-05-07 12:40 ` Tom Rini
2014-05-07 17:45 ` Ash Charles
2014-05-07 17:47 ` [U-Boot] [PATCH] omap3: overo: Use common configurations for Overo Ash Charles
2014-05-20 17:34 ` [U-Boot] [PATCH 8/8] [omap3][overo] Allow overo to boot with device tree Stefan Herbrechtsmeier
2014-05-21 20:16 ` Ash Charles
2014-05-21 21:04 ` [U-Boot] [Patch v2 0/9] omap3: overo: update board data Ash Charles
2014-05-21 21:04 ` [U-Boot] [Patch v2 1/9] omap: overo: allow the use of a plain text env file instead boot scripts Ash Charles
2014-05-23 23:50 ` [U-Boot] [U-Boot, v2, " Tom Rini
2014-05-21 21:04 ` [U-Boot] [Patch v2 2/9] OMAP3: overo: add command support for mtd and ubi Ash Charles
2014-05-23 23:50 ` [U-Boot] [U-Boot, v2, " Tom Rini
2014-05-21 21:04 ` [U-Boot] [Patch v2 3/9] OMAP3: overo: increase linux partition to 8 MiB Ash Charles
2014-05-23 23:51 ` [U-Boot] [U-Boot, v2, " Tom Rini
2014-05-21 21:04 ` [U-Boot] [Patch v2 4/9] OMAP3: overo: eliminate hard-coded partition offsets Ash Charles
2014-05-23 23:51 ` [U-Boot] [U-Boot, v2, " Tom Rini
2014-05-21 21:04 ` [U-Boot] [Patch v2 5/9] arm: omap3: Fix omap3_overo SPL boot hangup Ash Charles
2014-05-23 23:51 ` [U-Boot] [U-Boot, v2, " Tom Rini
2014-05-21 21:04 ` [U-Boot] [Patch v2 6/9] [omap3][overo] Add Board Revision for Wireless chip Ash Charles
2014-05-23 23:51 ` [U-Boot] [U-Boot, v2, 6/9, omap3, overo] " Tom Rini
2014-05-21 21:04 ` Ash Charles [this message]
2014-05-23 23:51 ` [U-Boot] [U-Boot, v2, 7/9] OMAP3: overo: add some Gumstix expansion boards Tom Rini
2014-05-21 21:04 ` [U-Boot] [Patch v2 8/9] [omap3][overo] Allow overo to boot with device tree Ash Charles
2014-05-23 23:51 ` [U-Boot] [U-Boot, v2, 8/9, omap3, overo] " Tom Rini
2014-05-21 21:04 ` [U-Boot] [Patch v2 9/9] omap3: overo: Use common configurations for Overo Ash Charles
2014-05-23 23:51 ` [U-Boot] [U-Boot, v2, " Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1400706295-31871-8-git-send-email-ashcharles@gmail.com \
--to=ashcharles@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox