All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] 85xx: enable FDT support for STX SSA board
@ 2011-07-25 13:15 Wolfgang Denk
  2011-07-26 11:49 ` Sergei Shtylyov
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2011-07-25 13:15 UTC (permalink / raw)
  To: u-boot

We also have to shift TEXT_BASE to accomodate for the additional
code size.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Kumar Gala <galak@kernel.crashing.org>

---
 board/stx/stxssa/stxssa.c |    8 ++++++++
 include/configs/stxssa.h  |    7 ++++++-
 2 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/board/stx/stxssa/stxssa.c b/board/stx/stxssa/stxssa.c
index 83ffcd2..c78538d 100644
--- a/board/stx/stxssa/stxssa.c
+++ b/board/stx/stxssa/stxssa.c
@@ -34,6 +34,7 @@
 #include <asm/processor.h>
 #include <asm/mmu.h>
 #include <asm/immap_85xx.h>
+#include <asm/fsl_pci.h>
 #include <asm/fsl_ddr_sdram.h>
 #include <ioports.h>
 #include <asm/io.h>
@@ -247,6 +248,13 @@ reset_phy(void)
 #endif
 }
 
+#ifdef CONFIG_OF_BOARD_SETUP
+void ft_board_setup (void *blob, bd_t *bd)
+{
+	ft_cpu_setup (blob, bd);
+}
+#endif /* CONFIG_OF_BOARD_SETUP */
+
 int
 board_early_init_f(void)
 {
diff --git a/include/configs/stxssa.h b/include/configs/stxssa.h
index d5dd94f..141da26 100644
--- a/include/configs/stxssa.h
+++ b/include/configs/stxssa.h
@@ -43,7 +43,7 @@
 #define CONFIG_STXSSA		1	/* Silicon Tx GPPP SSA board specific*/
 #define CONFIG_MPC8560		1
 
-#define	CONFIG_SYS_TEXT_BASE	0xFFFC0000
+#define	CONFIG_SYS_TEXT_BASE	0xFFF80000
 
 #define CONFIG_PCI			/* PCI ethernet support	*/
 #define CONFIG_TSEC_ENET		/* tsec ethernet support*/
@@ -194,6 +194,11 @@
 #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
 #endif
 
+/* pass open firmware flat tree */
+#define CONFIG_OF_LIBFDT		1
+#define CONFIG_OF_BOARD_SETUP		1
+#define CONFIG_OF_STDOUT_VIA_ALIAS	1
+
 /*
  * I2C
  */
-- 
1.7.6

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

* [U-Boot] [PATCH] 85xx: enable FDT support for STX SSA board
  2011-07-25 13:15 [U-Boot] [PATCH] 85xx: enable FDT support for STX SSA board Wolfgang Denk
@ 2011-07-26 11:49 ` Sergei Shtylyov
  2011-07-27  2:45   ` Kumar Gala
  2011-07-27 19:46   ` Wolfgang Denk
  0 siblings, 2 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2011-07-26 11:49 UTC (permalink / raw)
  To: u-boot

Hello.

On 25-07-2011 17:15, Wolfgang Denk wrote:

> We also have to shift TEXT_BASE to accomodate for the additional
> code size.

> Signed-off-by: Wolfgang Denk<wd@denx.de>
> Cc: Kumar Gala<galak@kernel.crashing.org>

> ---
>   board/stx/stxssa/stxssa.c |    8 ++++++++
>   include/configs/stxssa.h  |    7 ++++++-
>   2 files changed, 14 insertions(+), 1 deletions(-)

> diff --git a/board/stx/stxssa/stxssa.c b/board/stx/stxssa/stxssa.c
> index 83ffcd2..c78538d 100644
> --- a/board/stx/stxssa/stxssa.c
> +++ b/board/stx/stxssa/stxssa.c
[...]
> @@ -247,6 +248,13 @@ reset_phy(void)
>   #endif
>   }
>
> +#ifdef CONFIG_OF_BOARD_SETUP
> +void ft_board_setup (void *blob, bd_t *bd)
> +{
> +	ft_cpu_setup (blob, bd);

    I guess this won't pass checkpatch.pl (spaces before paren).

WBR, Sergei

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

* [U-Boot] [PATCH] 85xx: enable FDT support for STX SSA board
  2011-07-26 11:49 ` Sergei Shtylyov
@ 2011-07-27  2:45   ` Kumar Gala
  2011-07-27 19:46   ` Wolfgang Denk
  1 sibling, 0 replies; 4+ messages in thread
From: Kumar Gala @ 2011-07-27  2:45 UTC (permalink / raw)
  To: u-boot


On Jul 26, 2011, at 6:49 AM, Sergei Shtylyov wrote:

> Hello.
> 
> On 25-07-2011 17:15, Wolfgang Denk wrote:
> 
>> We also have to shift TEXT_BASE to accomodate for the additional
>> code size.
> 
>> Signed-off-by: Wolfgang Denk<wd@denx.de>
>> Cc: Kumar Gala<galak@kernel.crashing.org>
> 
>> ---
>>  board/stx/stxssa/stxssa.c |    8 ++++++++
>>  include/configs/stxssa.h  |    7 ++++++-
>>  2 files changed, 14 insertions(+), 1 deletions(-)
> 
>> diff --git a/board/stx/stxssa/stxssa.c b/board/stx/stxssa/stxssa.c
>> index 83ffcd2..c78538d 100644
>> --- a/board/stx/stxssa/stxssa.c
>> +++ b/board/stx/stxssa/stxssa.c
> [...]
>> @@ -247,6 +248,13 @@ reset_phy(void)
>>  #endif
>>  }
>> 
>> +#ifdef CONFIG_OF_BOARD_SETUP
>> +void ft_board_setup (void *blob, bd_t *bd)
>> +{
>> +	ft_cpu_setup (blob, bd);
> 
>   I guess this won't pass checkpatch.pl (spaces before paren).
> 
> WBR, Sergei

applied to 85xx & fixed whitespace issue.

- k

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

* [U-Boot] [PATCH] 85xx: enable FDT support for STX SSA board
  2011-07-26 11:49 ` Sergei Shtylyov
  2011-07-27  2:45   ` Kumar Gala
@ 2011-07-27 19:46   ` Wolfgang Denk
  1 sibling, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2011-07-27 19:46 UTC (permalink / raw)
  To: u-boot

Dear Sergei Shtylyov,

In message <4E2EA9DD.8060505@mvista.com> you wrote:
> 
> > +	ft_cpu_setup (blob, bd);
> 
>     I guess this won't pass checkpatch.pl (spaces before paren).

You are right.  Bad me.  I apologize.

Thanks to Kumar for cleaning this up.

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
There's a way out of any cage.
	-- Captain Christopher Pike, "The Menagerie" ("The Cage"),
	   stardate unknown.

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

end of thread, other threads:[~2011-07-27 19:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-25 13:15 [U-Boot] [PATCH] 85xx: enable FDT support for STX SSA board Wolfgang Denk
2011-07-26 11:49 ` Sergei Shtylyov
2011-07-27  2:45   ` Kumar Gala
2011-07-27 19:46   ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.