Zoom3: Add support for OMAP3630 Zoom3 board.
PATCH v4 1/1 Zoom3: Add support for OMAP3630 Zoom3 board.
From: Aldo Brett Cedillo Martinez <[email protected]>
This patch gives basic functionality to OMAP3630 Zoom3 board.
This version has been rebased againts u-boot-ti
--- MAINTAINERS | 4 + MAKEALL | 1 + board/logicpd/zoom3/Makefile | 54 +++++++ board/logicpd/zoom3/config.mk | 33 +++++ board/logicpd/zoom3/debug_board.c | 66 +++++++++ board/logicpd/zoom3/led.c | 133 +++++++++++++++++ board/logicpd/zoom3/zoom3.c | 201 ++++++++++++++++++++++++++ board/logicpd/zoom3/zoom3.h | 164 +++++++++++++++++++++ board/logicpd/zoom3/zoom3_serial.c | 132 +++++++++++++++++ board/logicpd/zoom3/zoom3_serial.h | 76 ++++++++++ boards.cfg | 1 + common/serial.c | 2 + include/configs/omap3_zoom3.h | 274 ++++++++++++++++++++++++++++++++++++ include/serial.h | 7 + 14 files changed, 1148 insertions(+), 0 deletions(-) create mode 100644 board/logicpd/zoom3/Makefile create mode 100644 board/logicpd/zoom3/config.mk create mode 100644 board/logicpd/zoom3/debug_board.c create mode 100644 board/logicpd/zoom3/led.c create mode 100644 board/logicpd/zoom3/zoom3.c create mode 100644 board/logicpd/zoom3/zoom3.h create mode 100644 board/logicpd/zoom3/zoom3_serial.c create mode 100644 board/logicpd/zoom3/zoom3_serial.h create mode 100644 include/configs/omap3_zoom3.h
MAINTAINERS +4 -0
@@ -813,6 +813,10 @@ Alex Z lart SA1100 dnp1110 SA1110 +Aldo Brett Cedillo Martinez <[email protected]> + + omap3_zoom3 ARM CORTEX-A8 (OMAP3xx SoC) + ------------------------------------------------------------------------- Unknown / orphaned boards:
MAKEALL +1 -0
@@ -657,6 +657,7 @@ LIST_ARMV7=" \ omap3_sdp3430 \ omap3_zoom1 \ omap3_zoom2 \ + omap3_zoom3 \ omap4_panda \ omap4_sdp4430 \ s5p_goni \
board/logicpd/zoom3/Makefile new file +54 -0
54 lines not on this page · raw message
board/logicpd/zoom3/config.mk new file +33 -0
@@ -0,0 +1,33 @@ +# +# (C) Copyright 2009 +# Texas Instruments, <www.ti.com> +# +# Zoom II 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: +# 0x80000000 (bank0) +# 0xA0000000 (bank1) +# Linux-Kernel is expected to be at 0x80008000, entry 0x80008000 +# (mem base + reserved) + +# For use with external or internal boots. +TEXT_BASE = 0x80e80000
board/logicpd/zoom3/debug_board.c new file +66 -0
66 lines not on this page · raw message
board/logicpd/zoom3/led.c new file +133 -0
133 lines not on this page · raw message
board/logicpd/zoom3/zoom3.c new file +201 -0
201 lines not on this page · raw message
board/logicpd/zoom3/zoom3.h new file +164 -0
164 lines not on this page · raw message
board/logicpd/zoom3/zoom3_serial.c new file +132 -0
132 lines not on this page · raw message
board/logicpd/zoom3/zoom3_serial.h new file +76 -0
76 lines not on this page · raw message
boards.cfg +1 -0
@@ -259,6 +259,7 @@ omap3_overo arm armv7 overo - omap3 omap3_pandora arm armv7 pandora - omap3 omap3_zoom1 arm armv7 zoom1 logicpd omap3 omap3_zoom2 arm armv7 zoom2 logicpd omap3 +omap3_zoom3 arm armv7 zoom3 logicpd omap3 omap3_beagle arm armv7 beagle ti omap3 omap3_evm arm armv7 evm ti omap3 omap3_sdp3430 arm armv7 sdp3430 ti omap3
common/serial.c +2 -0
@@ -92,6 +92,8 @@ struct serial_device *__default_serial_console (void)#endif #elif defined(CONFIG_OMAP3_ZOOM2 )return ZOOM2_DEFAULT_SERIAL_DEVICE ; +#elif defined(CONFIG_OMAP3_ZOOM3 ) +return ZOOM3_DEFAULT_SERIAL_DEVICE ;#else #error No default console#endif
include/configs/omap3_zoom3.h new file +274 -0
274 lines not on this page · raw message
include/serial.h +7 -0
@@ -66,6 +66,13 @@ extern struct serial_device zoom2_serial_device2;extern struct serial_device zoom2_serial_device3;#endif +#if defined(CONFIG_OMAP3_ZOOM3 ) +extern struct serial_device zoom3_serial_device0; +extern struct serial_device zoom3_serial_device1; +extern struct serial_device zoom3_serial_device2; +extern struct serial_device zoom3_serial_device3; +#endif +extern struct serial_device serial_ffuart_device;extern struct serial_device serial_btuart_device;extern struct serial_device serial_stuart_device;
Signature · 1 line
1.6.3.3
Wolfgang Denk
NAKPATCH v4 1/1 Zoom3: Add support for OMAP3630 Zoom3 board.
Dear Aldo Cedillo,
Quoted 38 lines · In message <[email protected]> you wrote:
From: Aldo Brett Cedillo Martinez <[email protected]>
This patch gives basic functionality to OMAP3630 Zoom3 board.
This version has been rebased againts u-boot-ti
Signed-off-by Aldo Brett Cedillo Martinez <[email protected]>--- MAINTAINERS | 4 + MAKEALL | 1 + board/logicpd/zoom3/Makefile | 54 +++++++ board/logicpd/zoom3/config.mk | 33 +++++ board/logicpd/zoom3/debug_board.c | 66 +++++++++ board/logicpd/zoom3/led.c | 133 +++++++++++++++++ board/logicpd/zoom3/zoom3.c | 201 ++++++++++++++++++++++++++ board/logicpd/zoom3/zoom3.h | 164 +++++++++++++++++++++ board/logicpd/zoom3/zoom3_serial.c | 132 +++++++++++++++++ board/logicpd/zoom3/zoom3_serial.h | 76 ++++++++++ boards.cfg | 1 + common/serial.c | 2 + include/configs/omap3_zoom3.h | 274 ++++++++++++++++++++++++++++++++++++ include/serial.h | 7 + 14 files changed, 1148 insertions(+), 0 deletions(-) create mode 100644 board/logicpd/zoom3/Makefile create mode 100644 board/logicpd/zoom3/config.mk create mode 100644 board/logicpd/zoom3/debug_board.c create mode 100644 board/logicpd/zoom3/led.c create mode 100644 board/logicpd/zoom3/zoom3.c create mode 100644 board/logicpd/zoom3/zoom3.h create mode 100644 board/logicpd/zoom3/zoom3_serial.c create mode 100644 board/logicpd/zoom3/zoom3_serial.h create mode 100644 include/configs/omap3_zoom3.hMAINTAINERS +0
-0
MAINTAINERS Alex Z · line 819
Quoted 7 lines
MAINTAINERS +4
-0@@ -813,6 +813,10 @@ Alex Z lart SA1100 dnp1110 SA1110 +Aldo Brett Cedillo Martinez <[email protected]> + + omap3_zoom3 ARM CORTEX-A8 (OMAP3xx SoC) +
Please keep list sorted. "Martinez" goes between "Lapin" and "Menon", it seems.
MAINTAINERS Alex Z
Quoted 8 lines
MAINTAINERS +8
-0+static void zoom3_debug_board_detect(void) +{ + int val = 0; + + /* + * TODO gpio 158 is UART1_RX, should we make a macro of this + * instead of the raw number? + */
What a question - yes, you should!
...
MAINTAINERS
Quoted 5 lines
MAINTAINERS +5
-0+#include <common.h> +#include <netdev.h> +#ifdef CONFIG_STATUS_LED +#include <status_led.h> +#endif
Would it hurt to include <status_led.h> unconditionally?
MAINTAINERS
Quoted 7 lines
MAINTAINERS +7
-0+int misc_init_r(void) +{ + zoom3_identify(); + #if (CONFIG_TWL4030_POWER) + twl4030_power_init(); + twl4030_led_init(TWL4030_LED_LEDEN_LEDAON | TWL4030_LED_LEDEN_LEDBON); + #endif
Please unindent the preprocessor statements. Check and fix globally, please.
...
MAINTAINERS
Quoted 3 lines
MAINTAINERS +3
-0+#define CONFIG_SYS_TIMERBASE (OMAP36XX_GPT2) +#define CONFIG_SYS_PTV 7 /* 2^(PTV+1) */ +#define CONFIG_SYS_HZ ((V_SCLK) / (2 << CONFIG_SYS_PTV))
NAK!!!
CONFIG_SYS_HZ is a constant and must always be 1000.
...
Quoted 8 lines
include/serial.h +0
-0@@ -66,6 +66,13 @@ extern struct serial_device zoom2_serial_device2;extern struct serial_device zoom2_serial_device3;#endif
include/serial.h extern struct serial_device zoom2_serial_device2; · line 78
Quoted 10 lines
include/serial.h +7
-0+#if defined(CONFIG_OMAP3_ZOOM3 ) +extern struct serial_device zoom3_serial_device0; +extern struct serial_device zoom3_serial_device1; +extern struct serial_device zoom3_serial_device2; +extern struct serial_device zoom3_serial_device3; +#endif +extern struct serial_device serial_ffuart_device;extern struct serial_device serial_btuart_device;extern struct serial_device serial_stuart_device;
This is becoming a serious mess. Isn't there a way to avoid this?
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de People are always a lot more complicated than you think. It's very important to remember that. - Terry Pratchett, _Truckers_