Re: [U-Boot] [PATCH V3 3/3] mx31: Add board support for HALE TT-01

2011-10-27 Thread Stefano Babic
On 10/27/2011 01:31 PM, Helmut Raiger wrote:
> This adds basic board support for TT-01 based on
> the Bluetechnix i.MX31 SOM. Currently only NOR-Flash
> boot is implemented.
> 

Hi Helmut,


> diff --git a/boards.cfg b/boards.cfg
> index 0de08a1..4e43b00 100644
> --- a/boards.cfg
> +++ b/boards.cfg
> @@ -43,6 +43,7 @@ imx31_phycorearm arm1136 -  
>  -
>  imx31_phycore_eetarm arm1136 imx31_phycore   -   
>mx31 imx31_phycore:IMX31_PHYCORE_EET
>  mx31pdk  arm arm1136 -   
> freescale  mx31 mx31pdk:NAND_U_BOOT
>  mx35pdk  arm arm1136 -   
> freescale  mx35
> +tt01 arm arm1136 -   
> hale   mx31

your entry is not sorted. I think the order for the sort is CPU, then
SOC and target. You do not need to repost (if there are no other
comments), I have another board to merge and I will fix it myself.

Acked-by: Stefano Babic 

Best regards,
Stefano Babic

-- 
=
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: off...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH V3 3/3] mx31: Add board support for HALE TT-01

2011-10-27 Thread Helmut Raiger
This adds basic board support for TT-01 based on
the Bluetechnix i.MX31 SOM. Currently only NOR-Flash
boot is implemented.

Signed-off-by: Helmut Raiger 
---
 V2:
  - MAINTAINER updated and used board.cfg instead of Makefile change
  - eliminated config.mk
  - replaced __REG accessors (WEIM and ESD),
this patch depends on http://patchwork.ozlabs.org/patch/116978/
  - MACH_TYPE_TT01 setup standardized
  - removed dependency on mx31pdk low level code
  - reduced lowlevel_init.S to its minimum (AIPS setup only), moved
DDR and clock setup to board_early_init_f()
  - some mulitiline comment cosmetics
  - added some comments to clarify the board setup 
(SYS_MONITOR_LEN, SYS_MALLOC_LEN)
  - removed definition of CONFIG_SYS_GBL_DATA_SIZE
 V3:
  - change to the new pmic interface, added board_late_init() for it.
  - use CONFIG_RTC_MC13XXX
  - minor cosmetic changes

I've not investigated the DDR setup any further, it's pretty old
and works. We'll re-check with the new hardware setup (currently
under developement) which has a new RAM chip.

 MAINTAINERS |4 +
 board/hale/tt01/Makefile|   51 
 board/hale/tt01/lowlevel_init.S |   32 +
 board/hale/tt01/tt01.c  |  200 ++
 boards.cfg  |1 +
 include/configs/tt01.h  |  254 +++
 6 files changed, 542 insertions(+), 0 deletions(-)
 create mode 100644 board/hale/tt01/Makefile
 create mode 100644 board/hale/tt01/lowlevel_init.S
 create mode 100644 board/hale/tt01/tt01.c
 create mode 100644 include/configs/tt01.h

diff --git a/MAINTAINERS b/MAINTAINERS
index cd0dd91..62e016d 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -757,6 +757,10 @@ Sandeep Paulraj 
davinci_dm365evmARM926EJS
davinci_dm6467evm   ARM926EJS
 
+Helmut Raiger 
+
+   tt01i.MX31
+
 Linus Walleij 
integratorapvarious
integratorcpvarious
diff --git a/board/hale/tt01/Makefile b/board/hale/tt01/Makefile
new file mode 100644
index 000..f6b2854
--- /dev/null
+++ b/board/hale/tt01/Makefile
@@ -0,0 +1,51 @@
+#
+# (C) Copyright 2009 HALE electronic 
+# (C) Copyright 2000-2006
+# Wolfgang Denk, DENX Software Engineering, w...@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  := tt01.o
+SOBJS  := lowlevel_init.o
+
+SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS))
+SOBJS  := $(addprefix $(obj),$(SOBJS))
+
+$(LIB):$(obj).depend $(OBJS) $(SOBJS)
+   $(call cmd_link_o_target, $(OBJS) $(SOBJS))
+
+clean:
+   rm -f $(SOBJS) $(OBJS)
+
+distclean: clean
+   rm -f $(LIB) core *.bak $(obj).depend
+
+#
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#
diff --git a/board/hale/tt01/lowlevel_init.S b/board/hale/tt01/lowlevel_init.S
new file mode 100644
index 000..6e9dc80
--- /dev/null
+++ b/board/hale/tt01/lowlevel_init.S
@@ -0,0 +1,32 @@
+/*
+ * (C) Copyright 2009 Magnus Lilja 
+ * (C) Copyright 2011 Helmut Raiger 
+ *
+ * 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 
+#include 
+#include 
+
+.globl lowlevel_init
+lowlevel_init:
+   /* Also setup the Peripheral Port Remap register inside the c