* [U-Boot] [PATCH] spear: fix build errors for spear3xx/spear600 platforms
@ 2011-06-12 7:32 Shiraz Hashim
2011-07-16 10:45 ` Albert ARIBAUD
2011-08-04 11:52 ` Albert ARIBAUD
0 siblings, 2 replies; 5+ messages in thread
From: Shiraz Hashim @ 2011-06-12 7:32 UTC (permalink / raw)
To: u-boot
Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com>
---
Only build tested.
board/spear/common/spr_misc.c | 10 +++++++---
include/configs/spear-common.h | 12 ++++++++++++
2 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/board/spear/common/spr_misc.c b/board/spear/common/spr_misc.c
index 0562222..0812c20 100644
--- a/board/spear/common/spr_misc.c
+++ b/board/spear/common/spr_misc.c
@@ -46,9 +46,7 @@ int dram_init(void)
struct xloader_table_1_2 *table_1_2;
struct chip_data *chip = &chip_data;
- gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
- gd->bd->bi_dram[0].size = get_ram_size(PHYS_SDRAM_1,
- PHYS_SDRAM_1_MAXSIZE);
+ gd->ram_size = get_ram_size(PHYS_SDRAM_1, PHYS_SDRAM_1_MAXSIZE);
if (XLOADER_TABLE_VERSION_1_1 == xloader_tb->table_version) {
table_1_1 = &xloader_tb->table.table_1_1;
@@ -66,6 +64,12 @@ int dram_init(void)
return 0;
}
+void dram_init_banksize(void)
+{
+ gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
+ gd->bd->bi_dram[0].size = gd->ram_size;
+}
+
int misc_init_r(void)
{
#if defined(CONFIG_CMD_NET)
diff --git a/include/configs/spear-common.h b/include/configs/spear-common.h
index 4e5bdea..55d19b5 100644
--- a/include/configs/spear-common.h
+++ b/include/configs/spear-common.h
@@ -86,6 +86,8 @@
#define CONFIG_SYS_LOADS_BAUD_CHANGE
/* NAND FLASH Configuration */
+#define CONFIG_MTD_DEVICE
+#define CONFIG_MTD_PARTITIONS
#define CONFIG_NAND_SPEAR 1
#define CONFIG_SYS_MAX_NAND_DEVICE 1
#define CONFIG_MTD_NAND_VERIFY_WRITE 1
@@ -209,4 +211,14 @@
#define PHYS_SDRAM_1 0x00000000
#define PHYS_SDRAM_1_MAXSIZE 0x40000000
+#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
+#define CONFIG_SYS_INIT_RAM_ADDR 0xD2800000
+#define CONFIG_SYS_INIT_RAM_SIZE 0x2000
+
+#define CONFIG_SYS_INIT_SP_OFFSET \
+ (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
+
+#define CONFIG_SYS_INIT_SP_ADDR \
+ (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
+
#endif
--
1.7.2.2
^ permalink raw reply related [flat|nested] 5+ messages in thread* [U-Boot] [PATCH] spear: fix build errors for spear3xx/spear600 platforms
2011-06-12 7:32 [U-Boot] [PATCH] spear: fix build errors for spear3xx/spear600 platforms Shiraz Hashim
@ 2011-07-16 10:45 ` Albert ARIBAUD
2011-08-04 9:17 ` Albert ARIBAUD
2011-08-04 11:52 ` Albert ARIBAUD
1 sibling, 1 reply; 5+ messages in thread
From: Albert ARIBAUD @ 2011-07-16 10:45 UTC (permalink / raw)
To: u-boot
Hi all,
Le 12/06/2011 09:32, Shiraz Hashim a ?crit :
> Signed-off-by: Shiraz Hashim<shiraz.hashim@st.com>
> ---
> Only build tested.
>
> board/spear/common/spr_misc.c | 10 +++++++---
> include/configs/spear-common.h | 12 ++++++++++++
> 2 files changed, 19 insertions(+), 3 deletions(-)
Cc:ing the MAINTAINERS' official spear maintainer, Vipin Kumar.
Is this Ok? If so I can pull this in u-boot-arm/master.
Amicalement,
--
Albert.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] spear: fix build errors for spear3xx/spear600 platforms
2011-07-16 10:45 ` Albert ARIBAUD
@ 2011-08-04 9:17 ` Albert ARIBAUD
2011-08-04 10:50 ` Vipin Kumar
0 siblings, 1 reply; 5+ messages in thread
From: Albert ARIBAUD @ 2011-08-04 9:17 UTC (permalink / raw)
To: u-boot
On 16/07/2011 12:45, Albert ARIBAUD wrote:
> Hi all,
>
> Le 12/06/2011 09:32, Shiraz Hashim a ?crit :
>> Signed-off-by: Shiraz Hashim<shiraz.hashim@st.com>
>> ---
>> Only build tested.
>>
>> board/spear/common/spr_misc.c | 10 +++++++---
>> include/configs/spear-common.h | 12 ++++++++++++
>> 2 files changed, 19 insertions(+), 3 deletions(-)
>
> Cc:ing the MAINTAINERS' official spear maintainer, Vipin Kumar.
Hmm... I had actually not CC:ed Vipin. Doing it now.
> Is this Ok? If so I can pull this in u-boot-arm/master.
>
> Amicalement,
Amicalement,
--
Albert.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] spear: fix build errors for spear3xx/spear600 platforms
2011-08-04 9:17 ` Albert ARIBAUD
@ 2011-08-04 10:50 ` Vipin Kumar
0 siblings, 0 replies; 5+ messages in thread
From: Vipin Kumar @ 2011-08-04 10:50 UTC (permalink / raw)
To: u-boot
Hello Albert,
On 8/4/2011 2:47 PM, Albert ARIBAUD wrote:
> On 16/07/2011 12:45, Albert ARIBAUD wrote:
>> Hi all,
>>
>> Le 12/06/2011 09:32, Shiraz Hashim a ?crit :
>>> Signed-off-by: Shiraz Hashim<shiraz.hashim@st.com>
>>> ---
>>> Only build tested.
>>>
>>> board/spear/common/spr_misc.c | 10 +++++++---
>>> include/configs/spear-common.h | 12 ++++++++++++
>>> 2 files changed, 19 insertions(+), 3 deletions(-)
>>
>> Cc:ing the MAINTAINERS' official spear maintainer, Vipin Kumar.
>
> Hmm... I had actually not CC:ed Vipin. Doing it now.
>
>> Is this Ok? If so I can pull this in u-boot-arm/master.
Sorry for responding late. I have tested the patch.
Acked-by: Vipin Kumar <vipin.kumar@st.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] spear: fix build errors for spear3xx/spear600 platforms
2011-06-12 7:32 [U-Boot] [PATCH] spear: fix build errors for spear3xx/spear600 platforms Shiraz Hashim
2011-07-16 10:45 ` Albert ARIBAUD
@ 2011-08-04 11:52 ` Albert ARIBAUD
1 sibling, 0 replies; 5+ messages in thread
From: Albert ARIBAUD @ 2011-08-04 11:52 UTC (permalink / raw)
To: u-boot
Hi Shiraz,
On 12/06/2011 09:32, Shiraz Hashim wrote:
> Signed-off-by: Shiraz Hashim<shiraz.hashim@st.com>
> ---
> Only build tested.
>
> board/spear/common/spr_misc.c | 10 +++++++---
> include/configs/spear-common.h | 12 ++++++++++++
> 2 files changed, 19 insertions(+), 3 deletions(-)
>
> diff --git a/board/spear/common/spr_misc.c b/board/spear/common/spr_misc.c
> index 0562222..0812c20 100644
> --- a/board/spear/common/spr_misc.c
> +++ b/board/spear/common/spr_misc.c
> @@ -46,9 +46,7 @@ int dram_init(void)
> struct xloader_table_1_2 *table_1_2;
> struct chip_data *chip =&chip_data;
>
> - gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
> - gd->bd->bi_dram[0].size = get_ram_size(PHYS_SDRAM_1,
> - PHYS_SDRAM_1_MAXSIZE);
> + gd->ram_size = get_ram_size(PHYS_SDRAM_1, PHYS_SDRAM_1_MAXSIZE);
>
> if (XLOADER_TABLE_VERSION_1_1 == xloader_tb->table_version) {
> table_1_1 =&xloader_tb->table.table_1_1;
> @@ -66,6 +64,12 @@ int dram_init(void)
> return 0;
> }
>
> +void dram_init_banksize(void)
> +{
> + gd->bd->bi_dram[0].start = PHYS_SDRAM_1;
> + gd->bd->bi_dram[0].size = gd->ram_size;
> +}
> +
> int misc_init_r(void)
> {
> #if defined(CONFIG_CMD_NET)
> diff --git a/include/configs/spear-common.h b/include/configs/spear-common.h
> index 4e5bdea..55d19b5 100644
> --- a/include/configs/spear-common.h
> +++ b/include/configs/spear-common.h
> @@ -86,6 +86,8 @@
> #define CONFIG_SYS_LOADS_BAUD_CHANGE
>
> /* NAND FLASH Configuration */
> +#define CONFIG_MTD_DEVICE
> +#define CONFIG_MTD_PARTITIONS
> #define CONFIG_NAND_SPEAR 1
> #define CONFIG_SYS_MAX_NAND_DEVICE 1
> #define CONFIG_MTD_NAND_VERIFY_WRITE 1
> @@ -209,4 +211,14 @@
> #define PHYS_SDRAM_1 0x00000000
> #define PHYS_SDRAM_1_MAXSIZE 0x40000000
>
> +#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
> +#define CONFIG_SYS_INIT_RAM_ADDR 0xD2800000
> +#define CONFIG_SYS_INIT_RAM_SIZE 0x2000
> +
> +#define CONFIG_SYS_INIT_SP_OFFSET \
> + (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
> +
> +#define CONFIG_SYS_INIT_SP_ADDR \
> + (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
> +
> #endif
Applied to u-boot-arm/master, thanks!
Amicalement,
--
Albert.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-08-04 11:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-12 7:32 [U-Boot] [PATCH] spear: fix build errors for spear3xx/spear600 platforms Shiraz Hashim
2011-07-16 10:45 ` Albert ARIBAUD
2011-08-04 9:17 ` Albert ARIBAUD
2011-08-04 10:50 ` Vipin Kumar
2011-08-04 11:52 ` Albert ARIBAUD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox