Re: [U-Boot] [PATCH v4 2/7] arm: vf610: Add Vybrid VF610 CPU support

2013-06-03 Thread Stefano Babic
On 28/05/2013 10:55, Alison Wang wrote:
 This patch adds generic codes to support Freescale's Vybrid VF610 CPU.
 
 It aligns Vybrid VF610 platform with i.MX platform. As there are
 some differences between VF610 and i.MX platforms, the specific
 codes are in the arch/arm/cpu/armv7/vf610 directory.
 
 Signed-off-by: Alison Wang b18...@freescale.com
 ---

Applied to u-boot-imx, thanks.

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-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v4 2/7] arm: vf610: Add Vybrid VF610 CPU support

2013-05-31 Thread Stefano Babic
On 29/05/2013 16:46, Benoît Thébaudeau wrote:
 Hi Alison,
 

Hi Benoit,

 I have just noticed that this was actually in 6/7. Why are you putting
 this into a separate patch?
 [Alison Wang] Because patch 2/7 is about VF610 CPU support, and
 doc/README.vf610 is also a document about
 VF610 SoC. Doc/README.mxc_ocotp is the document about a driver (IP OCOTP), so
 this driver document should be
 separated from CPU patch 2/7.
 
 I don't think so: It's part of what comes with the addition of the VF610
 platform, so 6/7 could be merged into 2/7. But it does not really matter. It's
 probably also fine if you keep what you did.
 
 Stefano, any opinion?

Strictly speaking, you're right. But as you mentioned, it does not
really matter. Without reposting, I can myself squash 6/7 into 2/7 by
merging the patchset.

Best regards,
Stefano

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


Re: [U-Boot] [PATCH v4 2/7] arm: vf610: Add Vybrid VF610 CPU support

2013-05-31 Thread Benoît Thébaudeau
Hi Stefano,

On Friday, May 31, 2013 10:59:03 AM, Stefano Babic wrote:
 On 29/05/2013 16:46, Benoît Thébaudeau wrote:
  Hi Alison,
  
 
 Hi Benoit,
 
  I have just noticed that this was actually in 6/7. Why are you putting
  this into a separate patch?
  [Alison Wang] Because patch 2/7 is about VF610 CPU support, and
  doc/README.vf610 is also a document about
  VF610 SoC. Doc/README.mxc_ocotp is the document about a driver (IP OCOTP),
  so
  this driver document should be
  separated from CPU patch 2/7.
  
  I don't think so: It's part of what comes with the addition of the VF610
  platform, so 6/7 could be merged into 2/7. But it does not really matter.
  It's
  probably also fine if you keep what you did.
  
  Stefano, any opinion?
 
 Strictly speaking, you're right. But as you mentioned, it does not
 really matter. Without reposting, I can myself squash 6/7 into 2/7 by
 merging the patchset.

OK.
Reviewed-by: Benoît Thébaudeau benoit.thebaud...@advansee.com

Best regards,
Benoît
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v4 2/7] arm: vf610: Add Vybrid VF610 CPU support

2013-05-29 Thread Benoît Thébaudeau
Hi Alison,

On Wednesday, May 29, 2013 7:37:32 AM, Wang Huan-B18965 wrote:
 Hi, Benoit,
 
diff --git a/doc/README.vf610 b/doc/README.vf610 new file mode
100644 index 000..38cf5cf
--- /dev/null
+++ b/doc/README.vf610
@@ -0,0 +1,10 @@
+U-Boot for Freescale Vybrid VF610
+
+This file contains information for the port of U-Boot to the
+Freescale
Vybrid
+VF610 SoC.
+
+1. CONVENTIONS FOR FUSE ASSIGNMENTS
+---
+
+1.1 MAC Address: It is stored in fuse bank 4, with the 16 msbs in
+word 2
and
the
+32 lsbs in word 3.
  
   The hunk below is still missing:
  
   doc/README.mxc_ocotp:
   ---
on MXC
  
This IP can be found on the following SoCs:
   + - Vybrid VF610,
 - i.MX6.
  
Note that this IP is different from albeit similar to the IPs of the
   same  name
   ---
  
  I have just noticed that this was actually in 6/7. Why are you putting
  this into a separate patch?
 [Alison Wang] Because patch 2/7 is about VF610 CPU support, and
 doc/README.vf610 is also a document about
 VF610 SoC. Doc/README.mxc_ocotp is the document about a driver (IP OCOTP), so
 this driver document should be
 separated from CPU patch 2/7.

I don't think so: It's part of what comes with the addition of the VF610
platform, so 6/7 could be merged into 2/7. But it does not really matter. It's
probably also fine if you keep what you did.

Stefano, any opinion?

Best regards,
Benoît


___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH v4 2/7] arm: vf610: Add Vybrid VF610 CPU support

2013-05-28 Thread Alison Wang
This patch adds generic codes to support Freescale's Vybrid VF610 CPU.

It aligns Vybrid VF610 platform with i.MX platform. As there are
some differences between VF610 and i.MX platforms, the specific
codes are in the arch/arm/cpu/armv7/vf610 directory.

Signed-off-by: Alison Wang b18...@freescale.com
---
Changes in v4:
- Rename mvf_pins.h to iomux-vf610.h
- Add README.vf610 about fuse assignments for MAC addresses
- Rename directory name 'mvf600' to 'vf610'
- Rename directory 'arch-mvf600' to 'arch-vf610'

Changes in v3:
- Rename the common functions and enums
- Move the structure definitions to imx-regs.h  

Changes in v2:
- Remove vybrid-common directory
- Rename directory name 'vybrid' to 'mvf600'
- Add generic.c file
- Rewrite get_reset_cause() to make it readable
- Remove reset_cpu(), and use the function in imx_watchdog.c
- Rewrite timer.c file
- Use vybrid_get_clock(VYBRID_UART_CLK) instead of vybrid_get_uartclk()
- Remove lowlevel_init.S, and add clock_init() in board_early_init_f()
- Remove useless CONFIG_SYS_ defines
- Move CONFIG_MACH_TYPE to board configuration file
- Define C structures and access C structures to set/read registers
- Remove useless errata
- Remove useless macros
- Rename directory 'arch-vybrid' to 'arch-mvf600'

 Makefile  |   2 +-
 arch/arm/cpu/armv7/vf610/Makefile |  42 +++
 arch/arm/cpu/armv7/vf610/generic.c| 324 
 arch/arm/cpu/armv7/vf610/timer.c  | 103 +++
 arch/arm/include/asm/arch-vf610/clock.h   |  39 +++
 arch/arm/include/asm/arch-vf610/crm_regs.h| 225 ++
 arch/arm/include/asm/arch-vf610/imx-regs.h| 419 ++
 arch/arm/include/asm/arch-vf610/iomux-vf610.h | 101 +++
 doc/README.vf610  |  10 +
 9 files changed, 1264 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/cpu/armv7/vf610/Makefile
 create mode 100644 arch/arm/cpu/armv7/vf610/generic.c
 create mode 100644 arch/arm/cpu/armv7/vf610/timer.c
 create mode 100644 arch/arm/include/asm/arch-vf610/clock.h
 create mode 100644 arch/arm/include/asm/arch-vf610/crm_regs.h
 create mode 100644 arch/arm/include/asm/arch-vf610/imx-regs.h
 create mode 100644 arch/arm/include/asm/arch-vf610/iomux-vf610.h
 create mode 100644 doc/README.vf610

diff --git a/Makefile b/Makefile
index c52f0f1..363180c 100644
--- a/Makefile
+++ b/Makefile
@@ -341,7 +341,7 @@ ifneq 
($(CONFIG_AM33XX)$(CONFIG_OMAP34XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX)$(C
 LIBS-y += $(CPUDIR)/omap-common/libomap-common.o
 endif
 
-ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs))
+ifneq (,$(filter $(SOC), mx25 mx27 mx5 mx6 mx31 mx35 mxs vf610))
 LIBS-y += arch/$(ARCH)/imx-common/libimx-common.o
 endif
 
diff --git a/arch/arm/cpu/armv7/vf610/Makefile 
b/arch/arm/cpu/armv7/vf610/Makefile
new file mode 100644
index 000..9232cd4
--- /dev/null
+++ b/arch/arm/cpu/armv7/vf610/Makefile
@@ -0,0 +1,42 @@
+#
+# Copyright 2013 Freescale Semiconductor, Inc.
+#
+# 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$(SOC).o
+
+COBJS  += generic.o
+COBJS  += timer.o
+
+SRCS   := $(COBJS:.o=.c)
+OBJS   := $(addprefix $(obj),$(COBJS))
+
+all:   $(obj).depend $(LIB)
+
+$(LIB):$(OBJS)
+   $(call cmd_link_o_target, $(OBJS))
+
+#
+
+# defines $(obj).depend target
+include $(SRCTREE)/rules.mk
+
+sinclude $(obj).depend
+
+#
diff --git a/arch/arm/cpu/armv7/vf610/generic.c 
b/arch/arm/cpu/armv7/vf610/generic.c
new file mode 100644
index 000..87f2a86
--- /dev/null
+++ b/arch/arm/cpu/armv7/vf610/generic.c
@@ -0,0 +1,324 @@
+/*
+ * Copyright 2013 Freescale Semiconductor, Inc.
+ *
+ * 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 

Re: [U-Boot] [PATCH v4 2/7] arm: vf610: Add Vybrid VF610 CPU support

2013-05-28 Thread Benoît Thébaudeau
Hi Alison,

On Tuesday, May 28, 2013 10:55:42 AM, Alison Wang wrote:
 This patch adds generic codes to support Freescale's Vybrid VF610 CPU.
 
 It aligns Vybrid VF610 platform with i.MX platform. As there are
 some differences between VF610 and i.MX platforms, the specific
 codes are in the arch/arm/cpu/armv7/vf610 directory.
 
 Signed-off-by: Alison Wang b18...@freescale.com

[...]

 diff --git a/doc/README.vf610 b/doc/README.vf610
 new file mode 100644
 index 000..38cf5cf
 --- /dev/null
 +++ b/doc/README.vf610
 @@ -0,0 +1,10 @@
 +U-Boot for Freescale Vybrid VF610
 +
 +This file contains information for the port of U-Boot to the Freescale
 Vybrid
 +VF610 SoC.
 +
 +1. CONVENTIONS FOR FUSE ASSIGNMENTS
 +---
 +
 +1.1 MAC Address: It is stored in fuse bank 4, with the 16 msbs in word 2 and
 the
 +32 lsbs in word 3.

The hunk below is still missing:

doc/README.mxc_ocotp:
---
 on MXC
 
 This IP can be found on the following SoCs:
+ - Vybrid VF610,
  - i.MX6.
 
 Note that this IP is different from albeit similar to the IPs of the same name
---

Apart from that, this patch is correct.

Best regards,
Benoît
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v4 2/7] arm: vf610: Add Vybrid VF610 CPU support

2013-05-28 Thread Benoît Thébaudeau
Hi Alison,

On Tuesday, May 28, 2013 9:16:20 PM, Benoît Thébaudeau wrote:
 Hi Alison,
 
 On Tuesday, May 28, 2013 10:55:42 AM, Alison Wang wrote:
  This patch adds generic codes to support Freescale's Vybrid VF610 CPU.
  
  It aligns Vybrid VF610 platform with i.MX platform. As there are
  some differences between VF610 and i.MX platforms, the specific
  codes are in the arch/arm/cpu/armv7/vf610 directory.
  
  Signed-off-by: Alison Wang b18...@freescale.com
 
 [...]
 
  diff --git a/doc/README.vf610 b/doc/README.vf610
  new file mode 100644
  index 000..38cf5cf
  --- /dev/null
  +++ b/doc/README.vf610
  @@ -0,0 +1,10 @@
  +U-Boot for Freescale Vybrid VF610
  +
  +This file contains information for the port of U-Boot to the Freescale
  Vybrid
  +VF610 SoC.
  +
  +1. CONVENTIONS FOR FUSE ASSIGNMENTS
  +---
  +
  +1.1 MAC Address: It is stored in fuse bank 4, with the 16 msbs in word 2
  and
  the
  +32 lsbs in word 3.
 
 The hunk below is still missing:
 
 doc/README.mxc_ocotp:
 ---
  on MXC
  
  This IP can be found on the following SoCs:
 + - Vybrid VF610,
   - i.MX6.
  
  Note that this IP is different from albeit similar to the IPs of the same
  name
 ---

I have just noticed that this was actually in 6/7. Why are you putting this into
a separate patch?

Best regards,
Benoît
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v4 2/7] arm: vf610: Add Vybrid VF610 CPU support

2013-05-28 Thread Wang Huan-B18965
Hi, Benoit,

 The hunk below is still missing:
 
 doc/README.mxc_ocotp:
 ---
  on MXC
 
  This IP can be found on the following SoCs:
 + - Vybrid VF610,
   - i.MX6.
 
  Note that this IP is different from albeit similar to the IPs of the
 same name
[Alison Wang] It is not missing, it is in the 6/7 patch.
 ---
 
 Apart from that, this patch is correct.
 


Best Regards,
Alison Wang

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v4 2/7] arm: vf610: Add Vybrid VF610 CPU support

2013-05-28 Thread Wang Huan-B18965
Hi, Benoit,

   diff --git a/doc/README.vf610 b/doc/README.vf610 new file mode
   100644 index 000..38cf5cf
   --- /dev/null
   +++ b/doc/README.vf610
   @@ -0,0 +1,10 @@
   +U-Boot for Freescale Vybrid VF610
   +
   +This file contains information for the port of U-Boot to the
   +Freescale
   Vybrid
   +VF610 SoC.
   +
   +1. CONVENTIONS FOR FUSE ASSIGNMENTS
   +---
   +
   +1.1 MAC Address: It is stored in fuse bank 4, with the 16 msbs in
   +word 2
   and
   the
   +32 lsbs in word 3.
 
  The hunk below is still missing:
 
  doc/README.mxc_ocotp:
  ---
   on MXC
 
   This IP can be found on the following SoCs:
  + - Vybrid VF610,
- i.MX6.
 
   Note that this IP is different from albeit similar to the IPs of the
  same  name
  ---
 
 I have just noticed that this was actually in 6/7. Why are you putting
 this into a separate patch?
[Alison Wang] Because patch 2/7 is about VF610 CPU support, and 
doc/README.vf610 is also a document about
VF610 SoC. Doc/README.mxc_ocotp is the document about a driver (IP OCOTP), so 
this driver document should be
separated from CPU patch 2/7.


Best Regards,
Alison Wang

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot