Zoom3: Add support for OMAP3630 Zoom3 board.
v5 cover Zoom3: Add support for OMAP3630 Zoom3 board.
From: Aldo Brett Cedillo Martinez <[email protected]>
This patch set gives basic functionality to Omap3630 Zoom3 board. And unifies serial_devices for zoom2 and zoom3 since both use the same struct.
Thanks Wolfgang for your comments, the modifications done were:
- Added entry to MAINTAINERS in proper order.
- Macro for UART1_RX pin.
- Left include for status led unconditional.
- Unindented preprocessor statements.
- Made CONFIG_SYS_HZ a constant with value 1000.
- Zoom2 and Zoom3 devices now use the same serial device.
Aldo Brett Cedillo Martinez (2):
[U-BOOT] Zoom3: Add support for OMAP3630 Zoom3 board. [U-BOOT] Unify serial_device for zoom2 and zoom3.
MAINTAINERS | 4 + MAKEALL | 1 + board/logicpd/zoom2/zoom2_serial.h | 2 +- board/logicpd/zoom3/Makefile | 54 +++++++ board/logicpd/zoom3/config.mk | 33 +++++ board/logicpd/zoom3/debug_board.c | 68 +++++++++ board/logicpd/zoom3/led.c | 133 +++++++++++++++++ board/logicpd/zoom3/zoom3.c | 199 ++++++++++++++++++++++++++ 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_zoom2.h | 2 +- include/configs/omap3_zoom3.h | 274 ++++++++++++++++++++++++++++++++++++ include/serial.h | 11 +- 16 files changed, 1148 insertions(+), 8 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
PATCH v5 1/2 Zoom3: Add support for OMAP3630 Zoom3 board.
From: Aldo Brett Cedillo Martinez <[email protected]>
This patch gives basic functionality to OMAP3630 Zoom3 board.
--- MAINTAINERS | 4 + MAKEALL | 1 + board/logicpd/zoom3/Makefile | 54 +++++++ board/logicpd/zoom3/config.mk | 33 +++++ board/logicpd/zoom3/debug_board.c | 68 +++++++++ board/logicpd/zoom3/led.c | 133 +++++++++++++++++ board/logicpd/zoom3/zoom3.c | 199 ++++++++++++++++++++++++++ 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
@@ -570,6 +570,10 @@ Rick Bronson <[email protected]> AT91RM9200DK at91rm9200 +Aldo Brett Cedillo <[email protected]> + + omap3_zoom3 ARM ARMV7 (OMAP3xx SoC) + Po-Yu Chuang <[email protected]> a320evb FA526 (ARM920T-like) (a320 SoC)
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 +68 -0
68 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 +199 -0
199 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
PATCH v5 2/2 Unify serial_device for zoom2 and zoom3.
From: Aldo Brett Cedillo Martinez <[email protected]>
Instead of using "struct serial_device zoom2_serial_device0" and "struct serial_device zoom3_serial_device0", we now use a single "struct serial_device zoom_serial_device0".
--- board/logicpd/zoom2/zoom2_serial.h | 2 +- board/logicpd/zoom3/zoom3_serial.h | 2 +- include/configs/omap3_zoom2.h | 2 +- include/configs/omap3_zoom3.h | 2 +- include/serial.h | 18 +++++------------- 5 files changed, 9 insertions(+), 17 deletions(-)
board/logicpd/zoom2/zoom2_serial.h +1 -1
@@ -60,7 +60,7 @@ int quad_tstc_##n(void) \ { \ return quad_tstc_dev(QUAD_BASE_##n); \ } \ -struct serial_device zoom2_serial_device##n = \ +struct serial_device zoom_serial_device##n = \ { \ N(n), \ U(n), \
board/logicpd/zoom3/zoom3_serial.h +1 -1
@@ -60,7 +60,7 @@ int quad_tstc_##n(void) \ { \ return quad_tstc_dev(QUAD_BASE_##n); \ } \ -struct serial_device zoom3_serial_device##n = \ +struct serial_device zoom_serial_device##n = \ { \ N(n), \ U(n), \
include/configs/omap3_zoom2.h +1 -1
@@ -83,7 +83,7 @@* 0 - 1 : first USB with respect to the left edge of the debug board * 2 - 3 : second USB with respect to the left edge of the debug board */ -#define ZOOM2_DEFAULT_SERIAL_DEVICE (&zoom2_serial_device0) +#define ZOOM2_DEFAULT_SERIAL_DEVICE (&zoom_serial_device0)#define V_NS16550_CLK (1843200)/* 1.8432 Mhz */
include/configs/omap3_zoom3.h +1 -1
@@ -85,7 +85,7 @@* 0 - 1 : first USB with respect to the left edge of the debug board * 2 - 3 : second USB with respect to the left edge of the debug board */ -#define ZOOM3_DEFAULT_SERIAL_DEVICE (&zoom3_serial_device0) +#define ZOOM3_DEFAULT_SERIAL_DEVICE (&zoom_serial_device0)#define V_NS16550_CLK (1843200)/* 1.8432 Mhz */
include/serial.h +5 -13
@@ -59,20 +59,12 @@ extern struct serial_device s5p_serial2_device;extern struct serial_device s5p_serial3_device;#endif -#if defined(CONFIG_OMAP3_ZOOM2 ) -extern struct serial_device zoom2_serial_device0; -extern struct serial_device zoom2_serial_device1; -extern struct serial_device zoom2_serial_device2; -extern struct serial_device zoom2_serial_device3; +#if defined(CONFIG_OMAP3_ZOOM2 ) || defined(CONFIG_OMAP3_ZOOM3 ) +extern struct serial_device zoom_serial_device0; +extern struct serial_device zoom_serial_device1; +extern struct serial_device zoom_serial_device2; +extern struct serial_device zoom_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
Martinez
v5 cover Zoom3: Add support for OMAP3630 Zoom3 board.
In reply to Aldo CedilloDear Wolfgang,
Quoted 22 lines
-----Original Message-----
From: Martinez, Aldo
Sent: Friday, July 16, 2010 1:30 AM
To: u-boot at lists.denx.de
Cc: Paulraj, Sandeep; wd at denx.de; Martinez, Aldo
Subject: [PATCH 0/2 v5][U-BOOT] Zoom3: Add support for OMAP3630 Zoom3 board.From: Aldo Brett Cedillo Martinez <[email protected]>
This patch set gives basic functionality to Omap3630 Zoom3 board. And unifies
serial_devicesfor zoom2 and zoom3 since both use the same struct.Thanks Wolfgang for your comments, the modifications done were:
- Added entry toMAINTAINERSin proper order.
- Macro forUART1_RXpin.
- Left include for status led unconditional.
- Unindented preprocessor statements.
- MadeCONFIG_SYS_HZa constant with value 1000.
- Zoom2 and Zoom3 devices now use the same serial device.
Quoted 3 lines
Aldo Brett Cedillo Martinez (2):
[U-BOOT] Zoom3: Add support for OMAP3630 Zoom3 board. [U-BOOT] Unifyserial_devicefor zoom2 and zoom3.
I wonder what is the status of this patch?
Sandeep commented me it was dependent on another patch, maybe a serial driver patch. The second patch of this series affects include/serial.h, should I make any modifications to patch so it can apply?
Thanks and best regards,
Aldo
v5 cover Zoom3: Add support for OMAP3630 Zoom3 board.
Quoted 1 line · Aldo
I wonder what is the status of this patch?
As someone trying to do development on a 3630, this would be helpful to have in the upstream tree.
Quoted 1 line
Sandeep commented me it was dependent on another patch, maybe a serial driver patch. The second patch of this series affects
include/serial.h, should I make any
Until this is upstream, is there a way to pull these patches from some tree or should I just copy all of them out of your email and manually apply them?
Paulraj
v5 cover Zoom3: Add support for OMAP3630 Zoom3 board.
Quoted 9 lines · Aldo
Quoted 2 lines
I wonder what is the status of this patch?
As someone trying to do development on a 3630, this would be helpful to have in the upstream tree.
Quoted 7 lines
Quoted 1 line
Sandeep commented me it was dependent on another patch, maybe a serial
driver patch. The second patch of this series affects
include/serial.h, should I make anyUntil this is upstream, is there a way to pull these patches from some tree or should I just copy all of them out of your email and manually apply them?
I am not supposed to be adding this patch below
http://www.mail-archive.com/u-boot at lists.denx.de/msg34906.html
I will need an ACK from the responsible custodian.
Regards,
Sandeep
v5 cover Zoom3: Add support for OMAP3630 Zoom3 board.
Dear Sandeep,
Quoted 5 lines · In message <[email protected]> you…
I am not supposed to be adding this patch below
http://www.mail-archive.com/u-boot at lists.denx.de/msg34906.htmlI will need an ACK from the responsible custodian.
Who would that be?
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 "Just think of a computer as hardware you can program." - Nigel de la Tierre
Paulraj
v5 cover Zoom3: Add support for OMAP3630 Zoom3 board.
Quoted 7 lines
Dear Sandeep,
In message <[email protected]>
Quoted 1 line · you
Quoted 7 lines
Quoted 4 lines
I am not supposed to be adding this patch below
http://www.mail-archive.com/u-boot at lists.denx.de/msg34906.htmlI will need an ACK from the responsible custodian.
Who would that be?
I believe that would be you Wolfgang.
You have ACK'ed serial patches before that touch common code.
Regards,
Sandeep
Martinez
v5 cover Zoom3: Add support for OMAP3630 Zoom3 board.
Dear Wolfgang,
Quoted 8 lines
Quoted 8 lines
Dear Sandeep,
In message <[email protected]>
Quoted 4 lines · you
I am not supposed to be adding this patch below
http://www.mail-archive.com/u-boot at lists.denx.de/msg34906.html
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
I will need an ACK from the responsible custodian.
Who would that be?
I believe that would be you Wolfgang.
You have ACK'ed serial patches before that touch common code.
Gentle reminder :)
Quoted 3 lines
Regards,
Sandeep
Regards,
Aldo
v5 cover Zoom3: Add support for OMAP3630 Zoom3 board.
Dear "Martinez, Aldo",
Quoted 4 lines · In message <[email protected]> you…
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
I am not supposed to be adding this patch below
http://www.mail-archive.com/u-boot at lists.denx.de/msg34906.html
Quoted 8 lines
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
I will need an ACK from the responsible custodian.
Who would that be?
I believe that would be you Wolfgang.
You have ACK'ed serial patches before that touch common code.
Gentle reminder :)
oops. sorry.
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
You get a wonderful view from the point of no return.
- Terry Pratchett, _Making_Money_v5 cover Zoom3: Add support for OMAP3630 Zoom3 board.
In reply to Jeff CarrQuoted 3 lines · Jeff Carr
Quoted 1 line · Aldo
I wonder what is the status of this patch?
I tried this patch today and DRAM seems to not work after u-boot loads. Strange. I did:
git clone git://git.denx.de/u-boot.git
git pull git://git.denx.de/u-boot-ti.git master
patch < your_patch_from_this_thread.diff
export CROSS_COMPILE=arm-none-linux-gnueabi-
make omap3_zoom3_config
make
Then the output looks like:
U-Boot 2010.06-00691-g30b170e-dirty (Aug 17 2010 - 15:58:42)
OMAP3530-GP ES2.0, CPU-OPP2 L3-165MHz
OMAP3 Zoom3 + LPDDR/NAND
DRAM: 640 MiB NAND: 512 MiB In: serial Out: serial Err: serial
Board revision Production
Die ID #782400011ff00000015a5e591101d014
Hit any key to stop autoboot: 0
OMAP3 Zoom3 #bdinfoarch_number = 0x000009A0env_t = 0x00000000boot_params = 0x80000100
DRAM bank = 0x00000000 -> start = 0x80000000 -> size = 0x20000000 DRAM bank = 0x00000001 -> start = 0xA0000000 -> size = 0x08000000 baudrate = 115200 bps
OMAP3 Zoom3 #md 0x80001000
80001000:
Martinez
v5 cover Zoom3: Add support for OMAP3630 Zoom3 board.
Hi Jeff,
Quoted 49 lines
-----Original Message-----
From: Jeff Carr [mailto:basilarchia at gmail.com]
Sent: Tuesday, August 17, 2010 6:53 PM
To: Martinez, Aldo
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH 0/2 v5][U-BOOT] Zoom3: Add support for OMAP3630 Zoom3 board.Quoted 1 line · Jeff Carr
On Tue, Aug 17, 2010 at 08:34, Martinez, Aldo <[email protected]>
Quoted 2 lines · wrote:
Quoted 2 lines
I wonder what is the status of this patch?
I tried this patch today and DRAM seems to not work after u-boot loads. Strange. I did:
git clone
git://git.denx.de/u-boot.git
git pullgit://git.denx.de/u-boot-ti.gitmaster patch < your_patch_from_this_thread.diff export CROSS_COMPILE=arm-none-linux-gnueabi- makeomap3_zoom3_config
makeThen the output looks like:
U-Boot 2010.06-00691-g30b170e-dirty (Aug 17 2010 - 15:58:42)
OMAP3530-GP ES2.0, CPU-OPP2 L3-165MHz OMAP3 Zoom3 + LPDDR/NAND
DRAM: 640 MiB NAND: 512 MiB In: serial Out: serial Err: serialBoard revision Production
Die ID #782400011ff00000015a5e591101d014 Hit any key to stop autoboot: 0
OMAP3 Zoom3 #bdinfoarch_number=0x000009A0env_t=0x00000000boot_params=0x80000100DRAM bank = 0x00000000 -> start = 0x80000000 -> size = 0x20000000 DRAM bank = 0x00000001 -> start = 0xA0000000 -> size = 0x08000000 baudrate = 115200 bps
Quoted 2 lines
OMAP3 Zoom3 #md
0x80001000
80001000:
I'll take a look at this, thanks for noting it.
Best regards,
Aldo Brett
v5 cover Zoom3: Add support for OMAP3630 Zoom3 board.
Quoted 7 lines · Aldo
Quoted 2 lines · Jeff Carr
I tried this patch today and DRAM seems to not work after u-boot
I'll take a look at this, thanks for noting it.
Best regards,
Aldo Brett
It dawns on me that I didn't ask what toolchain you are using. I've been using gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)
Martinez
v5 cover Zoom3: Add support for OMAP3630 Zoom3 board.
Hi Jeff,
Quoted 10 lines
Quoted 6 lines
Quoted 1 line
I tried this patch today and DRAM seems to not work after u-boot
I'll take a look at this, thanks for noting it.
Best regards,
Aldo BrettIt dawns on me that I didn't ask what toolchain you are using. I've been using
gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72)
I'm using the same toolchain.
Regards,
Aldo Brett
Martinez
v5 cover Zoom3: Add support for OMAP3630 Zoom3 board.
In reply to Jeff CarrHi Jeff,
Quoted 6 lines · Aldo
Quoted 2 lines
I wonder what is the status of this patch?
As someone trying to do development on a 3630, this would be helpful to have in the upstream tree.
I know :)
Quoted 7 lines
Quoted 1 line
Sandeep commented me it was dependent on another patch, maybe a serial
driver patch. The second patch of this series affects
include/serial.h, should I make anyUntil this is upstream, is there a way to pull these patches from some tree or should I just copy all of them out of your email and manually apply them?
I think the only option now is taking them from the email :)
Aldo
v5 cover Zoom3: Add support for OMAP3630 Zoom3 board.
In reply to Jeff CarrQuoted 6 lines · Jeff Carr
Quoted 1 line · Aldo
I wonder what is the status of this patch?
As someone trying to do development on a 3630, this would be helpful to have in the upstream tree.
I'm preparing a patch series to support 37XX versions of Beagle and Overo. It includes enhancements to the existing code in arch/arm/cpu/armv7/omap3 to detect and configure the 36/37XX series processors, as well as changes to the board files for Beagle and Overo to support both old and new versions. Perhaps those patches might help you with your 3630 work.
I hope to have them submitted to the list by end of week.
Regards,
Steve
Martinez
v5 cover Zoom3: Add support for OMAP3630 Zoom3 board.
Quoted 14 lines
Quoted 6 lines
Quoted 3 lines
I wonder what is the status of this patch?
As someone trying to do development on a 3630, this would be helpful to have in the upstream tree.
I'm preparing a patch series to support 37XX versions of Beagle and Overo. It includes enhancements to the existing code in
arch/arm/cpu/armv7/omap3to detect and configure the 36/37XX series processors, as well as changes to the board files for Beagle and Overo to support both old and new versions. Perhaps those patches might help you with your 3630 work.
Quoted 5 lines
I hope to have them submitted to the list by end of week.
Regards,
Steve
Excellent, will take a look when you submit them.
Regards,
Aldo Brett