public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH RFC] add CONFIG_BOOTCOUNT_LIMIT for MCF5445x
@ 2010-04-23 12:38 Wolfgang Wegner
  2010-04-23 19:25 ` Wolfgang Denk
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Wegner @ 2010-04-23 12:38 UTC (permalink / raw)
  To: u-boot

This patch adds bootcount for Freescale MCF5445x. Two registers of
eDMA transfer control descriptors (TCD[1]) are used because these
are unused by linux kernel (freescale LTIB linux-2.6.25) and were
tested to keep their contents across resets.

Signed-off-by: Wolfgang Wegner <w.wegner@astro-kom.de>
---
I implemented and tested this bootcount on a custom MCF54455 board.
According to the data sheet, the internal SRAM is not supposed to be
useful for data storage across resets. There is no explicit statement
concerning the TCD registers, but in tests on our board the values
did always survive reset. TCD[1] is currently unused by the linux
drivers, so using its registers should be safe up to application start,
where re-setting the bootcount would probably be done anyways.

 arch/m68k/cpu/mcf5445x/cpu.c        |   29 +++++++++++++++++++++++++++++
 arch/m68k/include/asm/immap_5445x.h |    1 +
 2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/arch/m68k/cpu/mcf5445x/cpu.c b/arch/m68k/cpu/mcf5445x/cpu.c
index 6238bc0..70007c1 100644
--- a/arch/m68k/cpu/mcf5445x/cpu.c
+++ b/arch/m68k/cpu/mcf5445x/cpu.c
@@ -110,3 +110,32 @@ int cpu_eth_init(bd_t *bis)
 	return mcffec_initialize(bis);
 }
 #endif
+
+#ifdef CONFIG_BOOTCOUNT_LIMIT
+/*
+ * We use transfer descriptor registers as a persistent storage
+ * across resets. This was tested on a MCF54455.
+ * Neither U-Boot nor the stock LTIB kernel seem to use
+ * TCD[1], so it should be safe at least until application
+ * start.
+ */
+#include <asm/io.h>
+
+void bootcount_store(ulong a)
+{
+	tcd_st *tcd = (tcd_st *)MMAP_TCD;
+
+	__raw_writel(a, &(tcd[1].saddr));
+	__raw_writel(BOOTCOUNT_MAGIC, &(tcd[1].daddr));
+}
+
+ulong bootcount_load(void)
+{
+	tcd_st *tcd = (tcd_st *)MMAP_TCD;
+
+	if (__raw_readl(&(tcd[1].daddr)) != BOOTCOUNT_MAGIC)
+		return 0;
+	else
+		return __raw_readl(&(tcd[1].saddr));
+}
+#endif /* CONFIG_BOOTCOUNT_LIMIT */
diff --git a/arch/m68k/include/asm/immap_5445x.h b/arch/m68k/include/asm/immap_5445x.h
index 57cf3ec..d6e416a 100644
--- a/arch/m68k/include/asm/immap_5445x.h
+++ b/arch/m68k/include/asm/immap_5445x.h
@@ -37,6 +37,7 @@
 #define MMAP_EDMA	0xFC044000
 #define MMAP_INTC0	0xFC048000
 #define MMAP_INTC1	0xFC04C000
+#define MMAP_TCD	0xFC045000
 #define MMAP_IACK	0xFC054000
 #define MMAP_I2C	0xFC058000
 #define MMAP_DSPI	0xFC05C000
-- 
1.5.6.5

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RFC] add CONFIG_BOOTCOUNT_LIMIT for MCF5445x
  2010-04-23 12:38 [U-Boot] [PATCH RFC] add CONFIG_BOOTCOUNT_LIMIT for MCF5445x Wolfgang Wegner
@ 2010-04-23 19:25 ` Wolfgang Denk
  2010-04-23 19:43   ` Wolfgang Wegner
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Denk @ 2010-04-23 19:25 UTC (permalink / raw)
  To: u-boot

Dear Wolfgang Wegner,

In message <1272026324-18566-1-git-send-email-w.wegner@astro-kom.de> you wrote:
> This patch adds bootcount for Freescale MCF5445x. Two registers of
> eDMA transfer control descriptors (TCD[1]) are used because these
> are unused by linux kernel (freescale LTIB linux-2.6.25) and were
> tested to keep their contents across resets.
...
> +#ifdef CONFIG_BOOTCOUNT_LIMIT
> +/*
> + * We use transfer descriptor registers as a persistent storage
> + * across resets. This was tested on a MCF54455.
> + * Neither U-Boot nor the stock LTIB kernel seem to use
> + * TCD[1], so it should be safe at least until application
> + * start.

This is not sufficent, then. The bootcounter requires to be reset from
User Space, i. e. _after_ the application has been succesfully
started. If application start messes with the value, this fails to
work.

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
"The combination of a number of things to make existence worthwhile."
"Yes, the philosophy of 'none,' meaning 'all.'"
	-- Spock and Lincoln, "The Savage Curtain", stardate 5906.4

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RFC] add CONFIG_BOOTCOUNT_LIMIT for MCF5445x
  2010-04-23 19:25 ` Wolfgang Denk
@ 2010-04-23 19:43   ` Wolfgang Wegner
  2010-04-23 20:03     ` Wolfgang Denk
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Wegner @ 2010-04-23 19:43 UTC (permalink / raw)
  To: u-boot

Dear Wolfgang Denk,

On Fri, Apr 23, 2010 at 09:25:35PM +0200, Wolfgang Denk wrote:
> Dear Wolfgang Wegner,
> 
> In message <1272026324-18566-1-git-send-email-w.wegner@astro-kom.de> you wrote:
> > This patch adds bootcount for Freescale MCF5445x. Two registers of
> > eDMA transfer control descriptors (TCD[1]) are used because these
> > are unused by linux kernel (freescale LTIB linux-2.6.25) and were
> > tested to keep their contents across resets.
> ...
> > +#ifdef CONFIG_BOOTCOUNT_LIMIT
> > +/*
> > + * We use transfer descriptor registers as a persistent storage
> > + * across resets. This was tested on a MCF54455.
> > + * Neither U-Boot nor the stock LTIB kernel seem to use
> > + * TCD[1], so it should be safe at least until application
> > + * start.
> 
> This is not sufficent, then. The bootcounter requires to be reset from
> User Space, i. e. _after_ the application has been succesfully
> started. If application start messes with the value, this fails to
> work.

sorry, my wording was not correct.
What I meant was that no device driver in stock kernel uses these
registers, so the only possibility for them to get used is if the
init system or application loads some non-standard drivers.

Regards,
Wolfgang

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RFC] add CONFIG_BOOTCOUNT_LIMIT for MCF5445x
  2010-04-23 19:43   ` Wolfgang Wegner
@ 2010-04-23 20:03     ` Wolfgang Denk
  2010-04-23 20:26       ` [U-Boot] [PATCH RFC v2] " Wolfgang Wegner
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Denk @ 2010-04-23 20:03 UTC (permalink / raw)
  To: u-boot

Dear Wolfgang Wegner,

In message <20100423194341.GS20047@leila.ping.de> you wrote:
> 
> > > + * We use transfer descriptor registers as a persistent storage
> > > + * across resets. This was tested on a MCF54455.
> > > + * Neither U-Boot nor the stock LTIB kernel seem to use
> > > + * TCD[1], so it should be safe at least until application
> > > + * start.
> > 
> > This is not sufficent, then. The bootcounter requires to be reset from
> > User Space, i. e. _after_ the application has been succesfully
> > started. If application start messes with the value, this fails to
> > work.
> 
> sorry, my wording was not correct.
> What I meant was that no device driver in stock kernel uses these
> registers, so the only possibility for them to get used is if the
> init system or application loads some non-standard drivers.

I see. I guess the comment should be updated, then.

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
If I can have honesty, it's easier to overlook mistakes.
	-- Kirk, "Space Seed", stardate 3141.9

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RFC v2] add CONFIG_BOOTCOUNT_LIMIT for MCF5445x
  2010-04-23 20:03     ` Wolfgang Denk
@ 2010-04-23 20:26       ` Wolfgang Wegner
  2010-04-23 20:47         ` Wolfgang Denk
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Wegner @ 2010-04-23 20:26 UTC (permalink / raw)
  To: u-boot

This patch adds bootcount for Freescale MCF5445x. Two registers of
eDMA transfer control descriptors (TCD[1]) are used because these
are unused by linux kernel (freescale LTIB linux-2.6.25) and were
tested to keep their contents across resets.

Signed-off-by: Wolfgang Wegner <w.wegner@astro-kom.de>
---
I implemented and tested this bootcount on a custom MCF54455 board.
According to the data sheet, the internal SRAM is not supposed to be
useful for data storage across resets. There is no explicit statement
concerning the TCD registers, but in tests on our board the values
did always survive reset. TCD[1] is currently unused by the linux
drivers, so using its registers should be safe as long as no non-
standard driver is loaded.
v2: fixed comment

 arch/m68k/cpu/mcf5445x/cpu.c        |   29 +++++++++++++++++++++++++++++
 arch/m68k/include/asm/immap_5445x.h |    1 +
 2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/arch/m68k/cpu/mcf5445x/cpu.c b/arch/m68k/cpu/mcf5445x/cpu.c
index 6238bc0..70007c1 100644
--- a/arch/m68k/cpu/mcf5445x/cpu.c
+++ b/arch/m68k/cpu/mcf5445x/cpu.c
@@ -110,3 +110,32 @@ int cpu_eth_init(bd_t *bis)
 	return mcffec_initialize(bis);
 }
 #endif
+
+#ifdef CONFIG_BOOTCOUNT_LIMIT
+/*
+ * We use transfer descriptor registers as a persistent storage
+ * across resets. This was tested on a MCF54455.
+ * Neither U-Boot nor the stock LTIB kernel seem to use
+ * TCD[1], so it should be safe at least until application
+ * start.
+ */
+#include <asm/io.h>
+
+void bootcount_store(ulong a)
+{
+	tcd_st *tcd = (tcd_st *)MMAP_TCD;
+
+	__raw_writel(a, &(tcd[1].saddr));
+	__raw_writel(BOOTCOUNT_MAGIC, &(tcd[1].daddr));
+}
+
+ulong bootcount_load(void)
+{
+	tcd_st *tcd = (tcd_st *)MMAP_TCD;
+
+	if (__raw_readl(&(tcd[1].daddr)) != BOOTCOUNT_MAGIC)
+		return 0;
+	else
+		return __raw_readl(&(tcd[1].saddr));
+}
+#endif /* CONFIG_BOOTCOUNT_LIMIT */
diff --git a/arch/m68k/include/asm/immap_5445x.h b/arch/m68k/include/asm/immap_5445x.h
index 57cf3ec..d6e416a 100644
--- a/arch/m68k/include/asm/immap_5445x.h
+++ b/arch/m68k/include/asm/immap_5445x.h
@@ -37,6 +37,7 @@
 #define MMAP_EDMA	0xFC044000
 #define MMAP_INTC0	0xFC048000
 #define MMAP_INTC1	0xFC04C000
+#define MMAP_TCD	0xFC045000
 #define MMAP_IACK	0xFC054000
 #define MMAP_I2C	0xFC058000
 #define MMAP_DSPI	0xFC05C000
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RFC v2] add CONFIG_BOOTCOUNT_LIMIT for MCF5445x
  2010-04-23 20:26       ` [U-Boot] [PATCH RFC v2] " Wolfgang Wegner
@ 2010-04-23 20:47         ` Wolfgang Denk
  2010-04-23 20:59           ` [U-Boot] [PATCH RFC v3] " Wolfgang Wegner
  2010-04-23 21:00           ` [U-Boot] [PATCH RFC v2] " Wolfgang Wegner
  0 siblings, 2 replies; 10+ messages in thread
From: Wolfgang Denk @ 2010-04-23 20:47 UTC (permalink / raw)
  To: u-boot

Dear Wolfgang Wegner,

In message <20100423202642.GT20047@leila.ping.de> you wrote:
> This patch adds bootcount for Freescale MCF5445x. Two registers of
> eDMA transfer control descriptors (TCD[1]) are used because these
> are unused by linux kernel (freescale LTIB linux-2.6.25) and were
> tested to keep their contents across resets.
> 
> Signed-off-by: Wolfgang Wegner <w.wegner@astro-kom.de>
> ---
> I implemented and tested this bootcount on a custom MCF54455 board.
> According to the data sheet, the internal SRAM is not supposed to be
> useful for data storage across resets. There is no explicit statement
> concerning the TCD registers, but in tests on our board the values
> did always survive reset. TCD[1] is currently unused by the linux
> drivers, so using its registers should be safe as long as no non-
> standard driver is loaded.
> v2: fixed comment

Um... I think this was a misunderstanding. This comment here is lost
in the git repository.

>  arch/m68k/cpu/mcf5445x/cpu.c        |   29 +++++++++++++++++++++++++++++
>  arch/m68k/include/asm/immap_5445x.h |    1 +
>  2 files changed, 30 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/m68k/cpu/mcf5445x/cpu.c b/arch/m68k/cpu/mcf5445x/cpu.c
> index 6238bc0..70007c1 100644
> --- a/arch/m68k/cpu/mcf5445x/cpu.c
> +++ b/arch/m68k/cpu/mcf5445x/cpu.c
> @@ -110,3 +110,32 @@ int cpu_eth_init(bd_t *bis)
>  	return mcffec_initialize(bis);
>  }
>  #endif
> +
> +#ifdef CONFIG_BOOTCOUNT_LIMIT
> +/*
> + * We use transfer descriptor registers as a persistent storage
> + * across resets. This was tested on a MCF54455.
> + * Neither U-Boot nor the stock LTIB kernel seem to use
> + * TCD[1], so it should be safe at least until application
> + * start.
> + */

It was this comment here that IMHO should be changed as the "until
application start" is misleading.

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
All your people must learn before you can reach for the stars.
	-- Kirk, "The Gamesters of Triskelion", stardate 3259.2

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RFC v3] add CONFIG_BOOTCOUNT_LIMIT for MCF5445x
  2010-04-23 20:47         ` Wolfgang Denk
@ 2010-04-23 20:59           ` Wolfgang Wegner
  2010-04-23 22:27             ` Wolfgang Denk
  2010-04-23 21:00           ` [U-Boot] [PATCH RFC v2] " Wolfgang Wegner
  1 sibling, 1 reply; 10+ messages in thread
From: Wolfgang Wegner @ 2010-04-23 20:59 UTC (permalink / raw)
  To: u-boot

This patch adds bootcount for Freescale MCF5445x. Two registers of
eDMA transfer control descriptors (TCD[1]) are used because these
are unused by linux kernel (freescale LTIB linux-2.6.25) and were
tested to keep their contents across resets.
TCD[1] is currently unused by the linux drivers, so using its registers
should be safe as long as no non-standard driver is loaded.

Signed-off-by: Wolfgang Wegner <w.wegner@astro-kom.de>
---
I implemented and tested this bootcount on a custom MCF54455 board.
According to the data sheet, the internal SRAM is not supposed to be
useful for data storage across resets. There is no explicit statement
concerning the TCD registers, but in tests on our board the values
did always survive reset.
v2: updated comment
v3: moved updated comment to the right place :-)

 arch/m68k/cpu/mcf5445x/cpu.c        |   29 +++++++++++++++++++++++++++++
 arch/m68k/include/asm/immap_5445x.h |    1 +
 2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/arch/m68k/cpu/mcf5445x/cpu.c b/arch/m68k/cpu/mcf5445x/cpu.c
index 6238bc0..70007c1 100644
--- a/arch/m68k/cpu/mcf5445x/cpu.c
+++ b/arch/m68k/cpu/mcf5445x/cpu.c
@@ -110,3 +110,32 @@ int cpu_eth_init(bd_t *bis)
 	return mcffec_initialize(bis);
 }
 #endif
+
+#ifdef CONFIG_BOOTCOUNT_LIMIT
+/*
+ * We use transfer descriptor registers as a persistent storage
+ * across resets. This was tested on a MCF54455.
+ * Neither U-Boot nor the stock LTIB kernel seem to use
+ * TCD[1], so it should be safe at least until application
+ * start.
+ */
+#include <asm/io.h>
+
+void bootcount_store(ulong a)
+{
+	tcd_st *tcd = (tcd_st *)MMAP_TCD;
+
+	__raw_writel(a, &(tcd[1].saddr));
+	__raw_writel(BOOTCOUNT_MAGIC, &(tcd[1].daddr));
+}
+
+ulong bootcount_load(void)
+{
+	tcd_st *tcd = (tcd_st *)MMAP_TCD;
+
+	if (__raw_readl(&(tcd[1].daddr)) != BOOTCOUNT_MAGIC)
+		return 0;
+	else
+		return __raw_readl(&(tcd[1].saddr));
+}
+#endif /* CONFIG_BOOTCOUNT_LIMIT */
diff --git a/arch/m68k/include/asm/immap_5445x.h b/arch/m68k/include/asm/immap_5445x.h
index 57cf3ec..d6e416a 100644
--- a/arch/m68k/include/asm/immap_5445x.h
+++ b/arch/m68k/include/asm/immap_5445x.h
@@ -37,6 +37,7 @@
 #define MMAP_EDMA	0xFC044000
 #define MMAP_INTC0	0xFC048000
 #define MMAP_INTC1	0xFC04C000
+#define MMAP_TCD	0xFC045000
 #define MMAP_IACK	0xFC054000
 #define MMAP_I2C	0xFC058000
 #define MMAP_DSPI	0xFC05C000
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RFC v2] add CONFIG_BOOTCOUNT_LIMIT for MCF5445x
  2010-04-23 20:47         ` Wolfgang Denk
  2010-04-23 20:59           ` [U-Boot] [PATCH RFC v3] " Wolfgang Wegner
@ 2010-04-23 21:00           ` Wolfgang Wegner
  1 sibling, 0 replies; 10+ messages in thread
From: Wolfgang Wegner @ 2010-04-23 21:00 UTC (permalink / raw)
  To: u-boot

Dear Wolfgang Denk,

On Fri, Apr 23, 2010 at 10:47:53PM +0200, Wolfgang Denk wrote:
[...]
> Um... I think this was a misunderstanding. This comment here is lost
> in the git repository.

only half misunderstanding and half too late for me today... Sorry!

Best regards,
Wolfgang

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RFC v3] add CONFIG_BOOTCOUNT_LIMIT for MCF5445x
  2010-04-23 20:59           ` [U-Boot] [PATCH RFC v3] " Wolfgang Wegner
@ 2010-04-23 22:27             ` Wolfgang Denk
  2010-04-24  9:45               ` Wolfgang Wegner
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Denk @ 2010-04-23 22:27 UTC (permalink / raw)
  To: u-boot

Dear Wolfgang Wegner,

In message <20100423205938.GU20047@leila.ping.de> you wrote:
> This patch adds bootcount for Freescale MCF5445x. Two registers of
> eDMA transfer control descriptors (TCD[1]) are used because these
> are unused by linux kernel (freescale LTIB linux-2.6.25) and were
> tested to keep their contents across resets.
> TCD[1] is currently unused by the linux drivers, so using its registers
> should be safe as long as no non-standard driver is loaded.
> 
> Signed-off-by: Wolfgang Wegner <w.wegner@astro-kom.de>
> ---
> I implemented and tested this bootcount on a custom MCF54455 board.
> According to the data sheet, the internal SRAM is not supposed to be
> useful for data storage across resets. There is no explicit statement
> concerning the TCD registers, but in tests on our board the values
> did always survive reset.
> v2: updated comment
> v3: moved updated comment to the right place :-)

Did you???

>  arch/m68k/cpu/mcf5445x/cpu.c        |   29 +++++++++++++++++++++++++++++
>  arch/m68k/include/asm/immap_5445x.h |    1 +
>  2 files changed, 30 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/m68k/cpu/mcf5445x/cpu.c b/arch/m68k/cpu/mcf5445x/cpu.c
> index 6238bc0..70007c1 100644
> --- a/arch/m68k/cpu/mcf5445x/cpu.c
> +++ b/arch/m68k/cpu/mcf5445x/cpu.c
> @@ -110,3 +110,32 @@ int cpu_eth_init(bd_t *bis)
>  	return mcffec_initialize(bis);
>  }
>  #endif
> +
> +#ifdef CONFIG_BOOTCOUNT_LIMIT
> +/*
> + * We use transfer descriptor registers as a persistent storage
> + * across resets. This was tested on a MCF54455.
> + * Neither U-Boot nor the stock LTIB kernel seem to use
> + * TCD[1], so it should be safe at least until application
> + * start.
> + */

This still reads the same...

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
The biggest difference between time and space is that you can't reuse
time.                                                 - Merrick Furst

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [U-Boot] [PATCH RFC v3] add CONFIG_BOOTCOUNT_LIMIT for MCF5445x
  2010-04-23 22:27             ` Wolfgang Denk
@ 2010-04-24  9:45               ` Wolfgang Wegner
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Wegner @ 2010-04-24  9:45 UTC (permalink / raw)
  To: u-boot

Dear Wolfgang Denk,

On Sat, Apr 24, 2010 at 12:27:42AM +0200, Wolfgang Denk wrote:
> Dear Wolfgang Wegner,
> 
> In message <20100423205938.GU20047@leila.ping.de> you wrote:
> > This patch adds bootcount for Freescale MCF5445x. Two registers of
> > eDMA transfer control descriptors (TCD[1]) are used because these
> > are unused by linux kernel (freescale LTIB linux-2.6.25) and were
> > tested to keep their contents across resets.
> > TCD[1] is currently unused by the linux drivers, so using its registers
> > should be safe as long as no non-standard driver is loaded.
> > 
> > Signed-off-by: Wolfgang Wegner <w.wegner@astro-kom.de>
> > ---
> > I implemented and tested this bootcount on a custom MCF54455 board.
> > According to the data sheet, the internal SRAM is not supposed to be
> > useful for data storage across resets. There is no explicit statement
> > concerning the TCD registers, but in tests on our board the values
> > did always survive reset.
> > v2: updated comment
> > v3: moved updated comment to the right place :-)
> 
> Did you???

The part about how long the registers are untouched by other drivers -
yes. The other part not.
Originally the other part of the comment was more or less meant to be a
hint for others (probably having more experience with coldfire than me)
reviewing the patch, so that I could afterwards provide a completely
revised version.
Looking at it today, I should simply have moved everything up to the
commit message, but as it is now, I should probably simply wait to let
others comment before sending another patch?

Best regards,
Wolfgang

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-04-24  9:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-23 12:38 [U-Boot] [PATCH RFC] add CONFIG_BOOTCOUNT_LIMIT for MCF5445x Wolfgang Wegner
2010-04-23 19:25 ` Wolfgang Denk
2010-04-23 19:43   ` Wolfgang Wegner
2010-04-23 20:03     ` Wolfgang Denk
2010-04-23 20:26       ` [U-Boot] [PATCH RFC v2] " Wolfgang Wegner
2010-04-23 20:47         ` Wolfgang Denk
2010-04-23 20:59           ` [U-Boot] [PATCH RFC v3] " Wolfgang Wegner
2010-04-23 22:27             ` Wolfgang Denk
2010-04-24  9:45               ` Wolfgang Wegner
2010-04-23 21:00           ` [U-Boot] [PATCH RFC v2] " Wolfgang Wegner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox