Angelo Dureghello | 1 Aug 2011 01:12
Picon

Re: u-boot on mcf5307

On 29/07/2011 00:08, Angelo Dureghello wrote:
> Dear all,
> 
> i succesfully added support for mcf5307, was quite easy, as you suggested i started from a m68k/cpu model
with a very similar memory map.
> 
> I am trying now to have the bootloader running in a custom board i developed:
> MCF5307
> SDRAM 16M, mapped at 0x00000000
> FLASH  4M, mapped at 0xffc00000
> 
> The bootloader works great only if i don't enable timer2 for the clock/timestamp.
> If timer2 is enabled i get the following error:
> 
> 
> U-Boot 2011.06-rc2-dirty (Jul 28 2011 - 23:55:16)
> 
> CPU:   Freescale Coldfire MCF5307 at 90 MHz
> Board: AMCORE v.001(alpha)
> DRAM:  16 MiB
> SDRAM test:
> testing MB 01 ...
> testing MB 02 ...
> testing MB 03 ...
> testing MB 04 ...
> testing MB 05 ...
> testing MB 06 ...
> testing MB 07 ...
> testing MB 08 ...
> testing MB 09 ...
(Continue reading)

Jason Cooper | 1 Aug 2011 02:48

[PATCH] drivers/rtc: add Marvell Integrated RTC.

This driver can be used for kirkwood SoCs by enabling CONFIG_RTC_MVINTEG.
Tested on Global Scale Technologies Dreamplug.

Signed-off-by: Jason Cooper <u-boot <at> lakedaemon.net>
---
Changes from v1:
	- renamed files to mvrtc.{c,h}
	- used proper c-structs for register access
	- used existing macros for register access
	- removed RFC

 arch/arm/include/asm/arch-kirkwood/kirkwood.h |    1 +
 drivers/rtc/Makefile                          |    1 +
 drivers/rtc/mvrtc.c                           |  157 +++++++++++++++++++++++++
 drivers/rtc/mvrtc.h                           |   79 +++++++++++++
 4 files changed, 238 insertions(+), 0 deletions(-)
 create mode 100644 drivers/rtc/mvrtc.c
 create mode 100644 drivers/rtc/mvrtc.h

diff --git a/arch/arm/include/asm/arch-kirkwood/kirkwood.h b/arch/arm/include/asm/arch-kirkwood/kirkwood.h
index 0104418..3c843a0 100644
--- a/arch/arm/include/asm/arch-kirkwood/kirkwood.h
+++ b/arch/arm/include/asm/arch-kirkwood/kirkwood.h
 <at>  <at>  -50,6 +50,7  <at>  <at> 
 #define KW_MPP_BASE			(KW_REGISTER(0x10000))
 #define KW_GPIO0_BASE			(KW_REGISTER(0x10100))
 #define KW_GPIO1_BASE			(KW_REGISTER(0x10140))
+#define KW_RTC_BASE			(KW_REGISTER(0x10300))
 #define KW_NANDF_BASE			(KW_REGISTER(0x10418))
 #define KW_SPI_BASE			(KW_REGISTER(0x10600))
(Continue reading)

Jason | 1 Aug 2011 02:51

Re: [PATCH v2] drivers/rtc: add Marvell Integrated RTC.

v2.  My apologies.

thx,

Jason.
Jason Cooper | 1 Aug 2011 03:04

[PATCH v2] arm/kirkwood: print speeds with cpu info.

If CONFIG_DISPLAY_CPUINFO is enabled on kirkwood SoCs, this will print the
speeds of the various components.

Signed-off-by: Jason Cooper <u-boot <at> lakedaemon.net>
---
Changes since v1:
	- optimized macros to remove one-timers
	- reduced switch/case to if/else since it operates on one bit.
	- remove RFC

 arch/arm/cpu/arm926ejs/kirkwood/cpu.c    |   41 ++++++++++++++++++++++++++++++
 arch/arm/include/asm/arch-kirkwood/cpu.h |    1 +
 2 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/arch/arm/cpu/arm926ejs/kirkwood/cpu.c b/arch/arm/cpu/arm926ejs/kirkwood/cpu.c
index b4a4c04..818c82f 100644
--- a/arch/arm/cpu/arm926ejs/kirkwood/cpu.c
+++ b/arch/arm/cpu/arm926ejs/kirkwood/cpu.c
 <at>  <at>  -270,11 +270,28  <at>  <at>  static void kw_sysrst_check(void)
 }

 #if defined(CONFIG_DISPLAY_CPUINFO)
+#define MSAR_CPUCLCK_EXTRACT(X)	(((X & 0x2) >> 1) | ((X & 0x400000) >> 21) | \
+				((X & 0x18) >> 1))
+#define MSAR_L2CLCK_EXTRACT(X)  (((X & 0x600) >> 9) | ((X & 0x80000) >> 17))
+#define MSAR_DDRCLCK_RTIO_MASK  (0xf << 5)
+
+/*
+ * TCCLK bit:
+ *   1 = 166 MHz
(Continue reading)

Lei Wen | 1 Aug 2011 06:05
Favicon

[PATCH] ARM: fix build error

error message:
/home/leiwen/reps/clones/uboot/include/asm/u-boot-arm.h:66: error:
conflicting types for 'setenv'
/home/leiwen/reps/clones/uboot/include/common.h:271: note: previous
declaration of 'setenv' was here

Since common code has change the setenv declaration method, follow
the common code to do the same change.

Signed-off-by: Lei Wen <leiwen <at> marvell.com>
---
 arch/arm/include/asm/u-boot-arm.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/include/asm/u-boot-arm.h b/arch/arm/include/asm/u-boot-arm.h
index 3904027..b01a0e9 100644
--- a/arch/arm/include/asm/u-boot-arm.h
+++ b/arch/arm/include/asm/u-boot-arm.h
 <at>  <at>  -63,7 +63,7  <at>  <at>  void	setup_revision_tag (struct tag **params);
 /* To be fixed!							*/
 /* ------------------------------------------------------------ */
 /* common/cmd_nvedit.c */
-int	setenv		(char *, char *);
+int	setenv		(const char *, const char *);

 /* cpu/.../interrupt.c */
 int	arch_interrupt_init	(void);
--

-- 
1.7.0.4
(Continue reading)

Wolfgang Denk | 1 Aug 2011 07:40
Picon
Picon
Favicon

Re: u-boot on mcf5307

Dear Angelo Dureghello,

In message <4E35E147.6080602 <at> gmail.com> you wrote:
>
> I would be happy to share the m530x /cpu files, but i don't know the
> exact procedure used here.

Your patches will be welcome.

> Let me know if and how i can contribute.

For details please see http://www.denx.de/wiki/U-Boot/Patches

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: wd <at> denx.de
Q: Why do PCs have a reset button on the front?
A: Because they are expected to run Microsoft operating systems.
Wolfgang Denk | 1 Aug 2011 07:43
Picon
Picon
Favicon

Re: [PATCH] ARM: fix build error

Dear Lei Wen,

In message <1312171520-24430-1-git-send-email-leiwen <at> marvell.com> you wrote:
> error message:
> /home/leiwen/reps/clones/uboot/include/asm/u-boot-arm.h:66: error:
> conflicting types for 'setenv'
> /home/leiwen/reps/clones/uboot/include/common.h:271: note: previous
> declaration of 'setenv' was here
> 
> Since common code has change the setenv declaration method, follow
> the common code to do the same change.
> 
> Signed-off-by: Lei Wen <leiwen <at> marvell.com>
> ---
>  arch/arm/include/asm/u-boot-arm.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/include/asm/u-boot-arm.h b/arch/arm/include/asm/u-boot-arm.h
> index 3904027..b01a0e9 100644
> --- a/arch/arm/include/asm/u-boot-arm.h
> +++ b/arch/arm/include/asm/u-boot-arm.h
>  <at>  <at>  -63,7 +63,7  <at>  <at>  void	setup_revision_tag (struct tag **params);
>  /* To be fixed!							*/
>  /* ------------------------------------------------------------ */
>  /* common/cmd_nvedit.c */
> -int	setenv		(char *, char *);
> +int	setenv		(const char *, const char *);

No, this is the wrong approach.  Instead of maintaining several
duplicated versions of the prototype (and even with a bogus comment
(Continue reading)

Kumar Gala | 1 Aug 2011 08:20

[PATCH] powerpc/85xx: Fix compile warnings/errors if CONFIG_SYS_DPAA_FMAN isn't set

Add ifdef protection around fman specific code related to device tree
clock setup.  If we dont have CONFIG_SYS_DPAA_FMAN defined we shouldn't
be executing this code.

Signed-off-by: Kumar Gala <galak <at> kernel.crashing.org>
---
 arch/powerpc/cpu/mpc85xx/fdt.c     |    4 ++++
 arch/powerpc/cpu/mpc85xx/portals.c |    5 ++++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/cpu/mpc85xx/fdt.c b/arch/powerpc/cpu/mpc85xx/fdt.c
index 8f13cd8..d20c94c 100644
--- a/arch/powerpc/cpu/mpc85xx/fdt.c
+++ b/arch/powerpc/cpu/mpc85xx/fdt.c
 <at>  <at>  -361,6 +361,7  <at>  <at>  void fdt_add_enet_stashing(void *fdt)
 }

 #if defined(CONFIG_SYS_DPAA_FMAN) || defined(CONFIG_SYS_DPAA_PME)
+#ifdef CONFIG_SYS_DPAA_FMAN
 static void ft_fixup_clks(void *blob, const char *compat, u32 offset,
 			  unsigned long freq)
 {
 <at>  <at>  -374,12 +375,14  <at>  <at>  static void ft_fixup_clks(void *blob, const char *compat, u32 offset,
 				"for %s: %s\n", compat, fdt_strerror(off));
 	}
 }
+#endif

 static void ft_fixup_dpaa_clks(void *blob)
 {
(Continue reading)

Kumar Gala | 1 Aug 2011 08:22

[PATCH 0/2] fdt helper cleanup related to phandle support.

Jerry,

Please review and Ack.  I would like this to go via 85xx tree as the
fman ethernet driver code depends on these changes.

thanks

- k
Kumar Gala | 1 Aug 2011 08:23

[PATCH 2/2] fdt: Add new fdt_create_phandle helper

Add a helper function that will return a phandle value for the given
node.  If the node doesn't have a phandle already one will be created.

Signed-off-by: Kumar Gala <galak <at> kernel.crashing.org>
---
 common/fdt_support.c  |   20 ++++++++++++++++++++
 include/fdt_support.h |    1 +
 2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/common/fdt_support.c b/common/fdt_support.c
index 8f7323d..46aa842 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
 <at>  <at>  -1235,6 +1235,26  <at>  <at>  int fdt_set_phandle(void *fdt, int nodeoffset, uint32_t phandle)
 	return ret;
 }

+/*
+ * fdt_create_phandle: Create a phandle property for the given node
+ *
+ *  <at> fdt: ptr to device tree
+ *  <at> nodeoffset: node to update
+ */
+int fdt_create_phandle(void *fdt, int nodeoffset)
+{
+	/* see if there is a phandle already */
+	int phandle = fdt_get_phandle(fdt, nodeoffset);
+
+	/* if we got 0, means no phandle so create one */
+	if (phandle == 0) {
(Continue reading)


Gmane