summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2011-06-28 11:13:55 +0200
committerH. Nikolaus Schaller <hns@goldelico.com>2011-06-28 11:13:55 +0200
commit1696dbc8035ed04964c72f379572b6bec15589ad (patch)
tree27d27b4634743184f123423f37cb12eae929aeae
parenta8d8cd819e3066c9504ad9af45294f4f8c662749 (diff)
downloadbootable_bootloader_goldelico_gta04-1696dbc8035ed04964c72f379572b6bec15589ad.zip
bootable_bootloader_goldelico_gta04-1696dbc8035ed04964c72f379572b6bec15589ad.tar.gz
bootable_bootloader_goldelico_gta04-1696dbc8035ed04964c72f379572b6bec15589ad.tar.bz2
added gta04b2 variant
-rw-r--r--board/goldelico/beagle-expander/Makefile2
-rw-r--r--board/goldelico/gta04b2/COM37H3M05DTC.c (renamed from board/goldelico/beagle-expander/COM37H3M05DTC.c)0
-rw-r--r--board/goldelico/gta04b2/COM37H3M05DTC.h (renamed from board/goldelico/beagle-expander/COM37H3M05DTC.h)0
-rw-r--r--board/goldelico/gta04b2/Makefile49
-rw-r--r--board/goldelico/gta04b2/config.mk33
-rw-r--r--board/goldelico/gta04b2/gta04b2.c24
-rw-r--r--board/goldelico/gta04b2/gta04b2.h34
-rw-r--r--board/goldelico/gta04b2/trf7960.c (renamed from board/goldelico/beagle-expander/trf7960.c)0
-rw-r--r--boards.cfg1
-rw-r--r--include/configs/omap3_gta04.h8
10 files changed, 147 insertions, 4 deletions
diff --git a/board/goldelico/beagle-expander/Makefile b/board/goldelico/beagle-expander/Makefile
index 6bdedcd..f75a580 100644
--- a/board/goldelico/beagle-expander/Makefile
+++ b/board/goldelico/beagle-expander/Makefile
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
LIB = $(obj)lib$(BOARD).o
-COBJS := beagleexpander.o COM37H3M05DTC.o trf7960.o ../gta04/backlight.o ../gta04/status.o ../gta04/tsc2007.o ../gta04/dssfb.o ../gta04/gps.o ../gta04/shutdown.o ../gta04/systest.o ../gta04/commands.o
+COBJS := beagleexpander.o ../gta04b2/COM37H3M05DTC.o ../gta04b2/trf7960.o ../gta04/backlight.o ../gta04/status.o ../gta04/tsc2007.o ../gta04/dssfb.o ../gta04/gps.o ../gta04/shutdown.o ../gta04/systest.o ../gta04/commands.o
SRCS := $(COBJS:.o=.c)
OBJS := $(addprefix $(obj),$(COBJS))
diff --git a/board/goldelico/beagle-expander/COM37H3M05DTC.c b/board/goldelico/gta04b2/COM37H3M05DTC.c
index 526fcb1..526fcb1 100644
--- a/board/goldelico/beagle-expander/COM37H3M05DTC.c
+++ b/board/goldelico/gta04b2/COM37H3M05DTC.c
diff --git a/board/goldelico/beagle-expander/COM37H3M05DTC.h b/board/goldelico/gta04b2/COM37H3M05DTC.h
index 87c7b57..87c7b57 100644
--- a/board/goldelico/beagle-expander/COM37H3M05DTC.h
+++ b/board/goldelico/gta04b2/COM37H3M05DTC.h
diff --git a/board/goldelico/gta04b2/Makefile b/board/goldelico/gta04b2/Makefile
new file mode 100644
index 0000000..feb46c1
--- /dev/null
+++ b/board/goldelico/gta04b2/Makefile
@@ -0,0 +1,49 @@
+#
+# (C) Copyright 2000, 2001, 2002
+# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+
+include $(TOPDIR)/config.mk
+
+LIB = $(obj)lib$(BOARD).o
+
+COBJS := gta04b2.o COM37H3M05DTC.o trf7960.o ../gta04/backlight.o ../gta04/status.o ../gta04/tsc2007.o ../gta04/dssfb.o ../gta04/gps.o ../gta04/shutdown.o ../gta04/systest.o ../gta04/commands.o
+
+SRCS := $(COBJS:.o=.c)
+OBJS := $(addprefix $(obj),$(COBJS))
+
+$(LIB): $(obj).depend $(OBJS)
+ $(call cmd_link_o_target, $(OBJS))
+
+clean:
+ rm -f $(OBJS)
+
+distclean: clean
+ rm -f $(LIB) core *.bak $(obj).depend
+
+#########################################################################
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+######################################################################### \ No newline at end of file
diff --git a/board/goldelico/gta04b2/config.mk b/board/goldelico/gta04b2/config.mk
new file mode 100644
index 0000000..cf055db
--- /dev/null
+++ b/board/goldelico/gta04b2/config.mk
@@ -0,0 +1,33 @@
+#
+# (C) Copyright 2006
+# Texas Instruments, <www.ti.com>
+#
+# Beagle Board uses OMAP3 (ARM-CortexA8) cpu
+# see http://www.ti.com/ for more information on Texas Instruments
+#
+# See file CREDITS for list of people who contributed to this
+# project.
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of
+# the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+# MA 02111-1307 USA
+#
+# Physical Address:
+# 8000'0000 (bank0)
+# A000/0000 (bank1)
+# Linux-Kernel is expected to be at 8000'8000, entry 8000'8000
+# (mem base + reserved)
+
+# For use with external or internal boots.
+CONFIG_SYS_TEXT_BASE = 0x80008000
diff --git a/board/goldelico/gta04b2/gta04b2.c b/board/goldelico/gta04b2/gta04b2.c
new file mode 100644
index 0000000..3675a89
--- /dev/null
+++ b/board/goldelico/gta04b2/gta04b2.c
@@ -0,0 +1,24 @@
+#include <common.h>
+#include <twl4030.h>
+#include <asm/io.h>
+#include <asm/arch/mmc_host_def.h>
+#include <asm/arch/mux.h>
+#include <asm/arch/sys_proto.h>
+#include <asm/arch/gpio.h>
+#include <asm/mach-types.h>
+#include "../gta04/gta04.h"
+#include "gta04b2.h"
+
+// make us initialize using both pinmux sets
+
+void muxinit(void)
+{
+ MUX_BEAGLE();
+ MUX_BEAGLE_EXPANDER();
+}
+
+#undef MUX_BEAGLE
+#define MUX_BEAGLE() muxinit()
+
+// take the original beagle.c code
+#include "../gta04/gta04.c"
diff --git a/board/goldelico/gta04b2/gta04b2.h b/board/goldelico/gta04b2/gta04b2.h
new file mode 100644
index 0000000..c1b8da9
--- /dev/null
+++ b/board/goldelico/gta04b2/gta04b2.h
@@ -0,0 +1,34 @@
+// all pins on GTA04 expansion connector
+
+// GPIO -> GTA04-Pin -> Expander function
+
+#define MUX_BEAGLE_EXPANDER() \
+
+// FIXME: clean up so that we have the right PinMuxes
+#if 0
+
+MUX_VAL(CP(ETK_D0), (IEN | PTD | EN | M1)) /*GPIO_17 -> MCSPI3-CLK -> TRF*/\
+MUX_VAL(CP(MMC2_CLK), (IDIS | PTD | EN | M4)) /*GPIO_130 -> MCSPI3-CLK -> TRF*/\
+MUX_VAL(CP(MMC2_CMD), (IDIS | PTD | EN | M4)) /*GPIO_131 -> MCSPI3-SIMO -> TRF*/\
+MUX_VAL(CP(MMC2_DAT0), (IEN | PTU | EN | M4)) /*GPIO_132 -> MCSPI3-SOMI -> TRF*/\
+MUX_VAL(CP(MCBSP1_DX), (IDIS | PTD | EN | M4)) /*GPIO_158 - Display STBY */\
+MUX_VAL(CP(MCBSP1_DR), (IDIS | PTD | EN | M4)) /*GPIO_159 - McBSP1-DR -> TRF EN2 */\
+MUX_VAL(CP(MCBSP1_FSX), (IDIS | PTD | EN | M4)) /*GPIO_161 - McBSP1-FSX -> TRF EN */\
+
+MUX_VAL(CP(MMC2_DAT1), (IEN | PTU | EN | M4)) /*GPIO_133 -> UART3-RX (software)*/\
+MUX_VAL(CP(MMC2_DAT2), (IDIS | PTU | EN | M4)) /*GPIO_134 -> UART3-TX (software)*/\
+MUX_VAL(CP(MMC2_DAT3), (IDIS | PTU | EN | M1)) /*GPIO_135 -> MCSPI3-CS0*/\
+MUX_VAL(CP(MMC2_DAT4), (IEN | PTD | EN | M4)) /*GPIO_136 - AUX */\
+MUX_VAL(CP(MMC2_DAT5), (IEN | PTU | EN | M4)) /*GPIO_137 - POWER */\
+MUX_VAL(CP(MMC2_DAT6), (IDIS | PTU | EN | M4)) /*GPIO_138 - UART3-RTS (software) */\
+MUX_VAL(CP(MMC2_DAT7), (IEN | PTU | EN | M4)) /*GPIO_139 - UART3-CTS (software) */\
+MUX_VAL(CP(UART2_RX), (IEN | PTU | EN | M4)) /*GPIO_143 - UART2-RX */\
+MUX_VAL(CP(UART2_CTS), (IDIS | PTU | EN | M4)) /*GPIO_144 - UART2-CTS */\
+MUX_VAL(CP(UART2_RTS), (IDIS | PTU | EN | M4)) /*GPIO_145 - UART2-RTS */\
+MUX_VAL(CP(UART2_TX), (IEN | PTU | EN | M4)) /*GPIO_146 - UART2-TX */\
+MUX_VAL(CP(MCBSP1_CLKR), (IEN | PTD | EN | M4)) /*GPIO_156 - KEYIRQ -> TRF IRQ */\
+MUX_VAL(CP(MCBSP1_FSR), (IEN | PTU | EN | M4)) /*GPIO_157 - PENIRQ */\
+MUX_VAL(CP(MCBSP_CLKS), (IEN | PTU | DIS | M0)) /*McBSP_CLKS */\
+MUX_VAL(CP(MCBSP1_CLKX), (IDIS | PTD | EN | M4)) /*GPIO_162 - McBSP1-CLKX -> UART3 Powerdown */
+
+#endif \ No newline at end of file
diff --git a/board/goldelico/beagle-expander/trf7960.c b/board/goldelico/gta04b2/trf7960.c
index fd90792..fd90792 100644
--- a/board/goldelico/beagle-expander/trf7960.c
+++ b/board/goldelico/gta04b2/trf7960.c
diff --git a/boards.cfg b/boards.cfg
index 59a8baf..5cd29e9 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -122,6 +122,7 @@ omap3_beagle arm armv7 beagle ti
omap3_beaglehyb arm armv7 beagle-hybrid goldelico omap3
omap3_beagleexpander arm armv7 beagle-expander goldelico omap3
omap3_gta04 arm armv7 gta04 goldelico omap3
+omap3_gta04b2 arm armv7 gta04b2 goldelico omap3
omap3_evm arm armv7 evm ti omap3
omap3_sdp3430 arm armv7 sdp3430 ti omap3
devkit8000 arm armv7 devkit8000 timll omap3
diff --git a/include/configs/omap3_gta04.h b/include/configs/omap3_gta04.h
index 0286510..10fdd2b 100644
--- a/include/configs/omap3_gta04.h
+++ b/include/configs/omap3_gta04.h
@@ -23,9 +23,11 @@
* MA 02111-1307 USA
*/
-#define CONFIG_OMAP3_GTA04 1 /* working with BEAGLE and GTA04 */
-#define CONFIG_OMAP3_GTA04A2 0 /* include patches and fixes for GTA04A2 */
-
+/* working with BEAGLE and GTA04 */
+#define CONFIG_OMAP3_GTA04 y
+/* enable to include patches and fixes for GTA04A2 */
+/* #define CONFIG_OMAP3_GTA04A2 y */
+
#include "omap3_beaglehyb.h" /* share config */
#undef CONFIG_SYS_PROMPT