Re: [U-Boot] [PATCH v2 2/2] armv7: add support for s5pc210 universal board

2011-01-20 Thread seedshope
On 01/13/2011 06:16 PM, Minkyu Kang wrote:
 This patch adds support for Samsung s5pc210 universal board

 Signed-off-by: Minkyu Kangmk7.k...@samsung.com
 Signed-off-by: Kyungmin Parkkyungmin.p...@samsung.com
 ---
 v2
   remove debug message

   MAINTAINERS  |5 +-
   MAKEALL  |1 +
   board/samsung/universal_c210/Makefile|   51 
   board/samsung/universal_c210/config.mk   |   24 ++
   board/samsung/universal_c210/lowlevel_init.S |  395 
 ++
   board/samsung/universal_c210/onenand.c   |   34 +++
   board/samsung/universal_c210/universal.c |  250 
   boards.cfg   |1 +
   include/configs/s5pc210_universal.h  |  248 
   9 files changed, 1007 insertions(+), 2 deletions(-)
   create mode 100644 board/samsung/universal_c210/Makefile
   create mode 100644 board/samsung/universal_c210/config.mk
   create mode 100644 board/samsung/universal_c210/lowlevel_init.S
   create mode 100644 board/samsung/universal_c210/onenand.c
   create mode 100644 board/samsung/universal_c210/universal.c
   create mode 100644 include/configs/s5pc210_universal.h

 diff --git a/MAINTAINERS b/MAINTAINERS
 index a5f0493..6eed120 100644
 --- a/MAINTAINERS
 +++ b/MAINTAINERS
 @@ -672,8 +672,9 @@ Nishant Kamatnska...@ti.com

   Minkyu Kangmk7.k...@samsung.com

 - s5p_goniARM ARMV7 (S5PC110 SoC)
 - SMDKC100ARM ARMV7 (S5PC100 SoC)
 + SMDKC100ARM ARMV7 (S5PC100 SoC)
 + s5p_goniARM ARMV7 (S5PC110 SoC)
 + s5pc210_universal   ARM ARMV7 (S5PC210 SoC)

   Frederik Kriewitzfrede...@kriewitz.eu

 diff --git a/MAKEALL b/MAKEALL
 index a732e6a..a5b265f 100755
 --- a/MAKEALL
 +++ b/MAKEALL
 @@ -434,6 +434,7 @@ LIST_ARMV7=  \
   omap4_panda \
   omap4_sdp4430   \
   s5p_goni\
 + s5pc210_universal   \
   smdkc100\
   

 diff --git a/board/samsung/universal_c210/Makefile 
 b/board/samsung/universal_c210/Makefile
 new file mode 100644
 index 000..0200220
 --- /dev/null
 +++ b/board/samsung/universal_c210/Makefile
 @@ -0,0 +1,51 @@
 +#
 +# Copyright (C) 2010 Samsung Electronics
 +# Minkyu Kangmk7.k...@samsung.com
 +#
 +# 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-y  := universal.o onenand.o
 +SOBJS:= lowlevel_init.o
 +
 +SRCS:= $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
 +OBJS := $(addprefix $(obj),$(COBJS-y))
 +SOBJS:= $(addprefix $(obj),$(SOBJS))
 +
 +$(LIB):  $(obj).depend $(SOBJS) $(OBJS)
 + $(call cmd_link_o_target, $(SOBJS) $(OBJS))
 +
 +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/samsung/universal_c210/config.mk 
 b/board/samsung/universal_c210/config.mk
 new file mode 100644
 index 000..0ecd716
 --- /dev/null
 +++ b/board/samsung/universal_c210/config.mk
 @@ -0,0 +1,24 @@
 +#
 +# Copyright (C) 2010 Samsung Electronics
 +# Kyungmin Parkkyungmin.p...@samsung.com
 +#
 +# 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, 

Re: [U-Boot] [PATCH v2 2/2] armv7: add support for s5pc210 universal board

2011-01-20 Thread Wolfgang Denk
Dear seedshope,

In message 4d3841b2.8050...@gmail.com you wrote:
...
  +int dram_init(void)
  +{
  +   gd-ram_size = PHYS_SDRAM_1_SIZE + PHYS_SDRAM_2_SIZE;
 It is shoule to use get_ram_size() function

This, like the others, are valid comments - but:

Can you please explain why you have to quote all the 1000+
unrelated lines of the patch?

It is even difficult to spot your 4 lines of comments in 1000+ lines
of quoted patch.  Plase don't do that.

Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
He had quite a powerful intellect, but it  was  as  powerful  like  a
locomotive,  and  ran on rails and was therefore almost impossible to
steer.  - Terry Pratchett, _Lords and Ladies_
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 2/2] armv7: add support for s5pc210 universal board

2011-01-17 Thread Wolfgang Denk
Dear Minkyu Kang,

In message 4d2ed0e1.7090...@samsung.com you wrote:
 This patch adds support for Samsung s5pc210 universal board
 
 Signed-off-by: Minkyu Kang mk7.k...@samsung.com
 Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
...
 diff --git a/MAKEALL b/MAKEALL
 index a732e6a..a5b265f 100755
 --- a/MAKEALL
 +++ b/MAKEALL
 @@ -434,6 +434,7 @@ LIST_ARMV7=  \
   omap4_panda \
   omap4_sdp4430   \
   s5p_goni\
 + s5pc210_universal   \
   smdkc100\

NO - boards don't get added to MAKEALL any more. MAKEALL automatically
picks them up from boards.cfg.  Please remove.

...
 --- /dev/null
 +++ b/board/samsung/universal_c210/config.mk
...
 +CONFIG_SYS_TEXT_BASE = 0x4480

No. Please remove config.mk and define CONFIG_SYS_TEXT_BASE in your
board config file instead.


Best regards,

Wolfgang Denk

-- 
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: w...@denx.de
If I don't document something, it's usually either for a good reason,
or a bad reason.  In this case it's a good reason.  :-)
 - Larry Wall in 1992jan17.005405.16...@netlabs.com
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v2 2/2] armv7: add support for s5pc210 universal board

2011-01-13 Thread Minkyu Kang
This patch adds support for Samsung s5pc210 universal board

Signed-off-by: Minkyu Kang mk7.k...@samsung.com
Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com
---
v2
 remove debug message

 MAINTAINERS  |5 +-
 MAKEALL  |1 +
 board/samsung/universal_c210/Makefile|   51 
 board/samsung/universal_c210/config.mk   |   24 ++
 board/samsung/universal_c210/lowlevel_init.S |  395 ++
 board/samsung/universal_c210/onenand.c   |   34 +++
 board/samsung/universal_c210/universal.c |  250 
 boards.cfg   |1 +
 include/configs/s5pc210_universal.h  |  248 
 9 files changed, 1007 insertions(+), 2 deletions(-)
 create mode 100644 board/samsung/universal_c210/Makefile
 create mode 100644 board/samsung/universal_c210/config.mk
 create mode 100644 board/samsung/universal_c210/lowlevel_init.S
 create mode 100644 board/samsung/universal_c210/onenand.c
 create mode 100644 board/samsung/universal_c210/universal.c
 create mode 100644 include/configs/s5pc210_universal.h

diff --git a/MAINTAINERS b/MAINTAINERS
index a5f0493..6eed120 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -672,8 +672,9 @@ Nishant Kamat nska...@ti.com
 
 Minkyu Kang mk7.k...@samsung.com
 
-   s5p_goniARM ARMV7 (S5PC110 SoC)
-   SMDKC100ARM ARMV7 (S5PC100 SoC)
+   SMDKC100ARM ARMV7 (S5PC100 SoC)
+   s5p_goniARM ARMV7 (S5PC110 SoC)
+   s5pc210_universal   ARM ARMV7 (S5PC210 SoC)
 
 Frederik Kriewitz frede...@kriewitz.eu
 
diff --git a/MAKEALL b/MAKEALL
index a732e6a..a5b265f 100755
--- a/MAKEALL
+++ b/MAKEALL
@@ -434,6 +434,7 @@ LIST_ARMV7=\
omap4_panda \
omap4_sdp4430   \
s5p_goni\
+   s5pc210_universal   \
smdkc100\
 
 
diff --git a/board/samsung/universal_c210/Makefile 
b/board/samsung/universal_c210/Makefile
new file mode 100644
index 000..0200220
--- /dev/null
+++ b/board/samsung/universal_c210/Makefile
@@ -0,0 +1,51 @@
+#
+# Copyright (C) 2010 Samsung Electronics
+# Minkyu Kang mk7.k...@samsung.com
+#
+# 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-y:= universal.o onenand.o
+SOBJS  := lowlevel_init.o
+
+SRCS:= $(SOBJS:.o=.S) $(COBJS-y:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS-y))
+SOBJS  := $(addprefix $(obj),$(SOBJS))
+
+$(LIB):$(obj).depend $(SOBJS) $(OBJS)
+   $(call cmd_link_o_target, $(SOBJS) $(OBJS))
+
+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/samsung/universal_c210/config.mk 
b/board/samsung/universal_c210/config.mk
new file mode 100644
index 000..0ecd716
--- /dev/null
+++ b/board/samsung/universal_c210/config.mk
@@ -0,0 +1,24 @@
+#
+# Copyright (C) 2010 Samsung Electronics
+# Kyungmin Park kyungmin.p...@samsung.com
+#
+# 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
+#
+
+CONFIG_SYS_TEXT_BASE = 0x4480
diff --git a/board/samsung/universal_c210/lowlevel_init.S