* [U-Boot-Users] [PATCH] Update 5121 fdt support to match latest kernel work.
@ 2008-01-16 22:52 John Rigby
2008-01-17 9:00 ` Grzegorz Bernacki
0 siblings, 1 reply; 3+ messages in thread
From: John Rigby @ 2008-01-16 22:52 UTC (permalink / raw)
To: u-boot
Based on reviews on the linuxppc-dev mailing list
some changes have been made to the device tree.
This patch updates u-boot to be in sync with those
changes.
Signed-off-by: John Rigby <jrigby@freescale.com>
---
cpu/mpc512x/cpu.c | 2 --
include/configs/ads5121.h | 6 +++---
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/cpu/mpc512x/cpu.c b/cpu/mpc512x/cpu.c
index 6421a51..793b62a 100644
--- a/cpu/mpc512x/cpu.c
+++ b/cpu/mpc512x/cpu.c
@@ -138,10 +138,8 @@ void ft_cpu_setup(void *blob, bd_t *bd)
do_fixup_by_path_u32(blob, cpu_path, "timebase-frequency", OF_TBCLK, 1);
do_fixup_by_path_u32(blob, cpu_path, "bus-frequency", bd->bi_busfreq, 1);
- do_fixup_by_path_u32(blob, cpu_path, "ref-frequency", CFG_MPC512X_CLKIN, 1);
do_fixup_by_path_u32(blob, cpu_path, "clock-frequency", bd->bi_intfreq, 1);
do_fixup_by_path_u32(blob, "/" OF_SOC, "bus-frequency", bd->bi_ipsfreq, 1);
- do_fixup_by_path_u32(blob, "/" OF_SOC, "ref-frequency", CFG_MPC512X_CLKIN, 1);
do_fixup_by_path(blob, eth_path, "address", bd->bi_enetaddr, 6, 0);
do_fixup_by_path(blob, eth_path, "local-mac-address", bd->bi_enetaddr, 6, 0);
}
diff --git a/include/configs/ads5121.h b/include/configs/ads5121.h
index ce458ae..0a2348e 100644
--- a/include/configs/ads5121.h
+++ b/include/configs/ads5121.h
@@ -377,7 +377,7 @@
"fdt_addr=FC2C0000\0" \
"ramdisk_addr=FC300000\0" \
"ramdiskfile=ads5121/uRamdisk\0" \
- "fdtfile=ads5121/ads5121.dtb\0" \
+ "fdtfile=ads5121/mpc5121ads.dtb\0" \
"u-boot=ads5121/u-boot.bin\0" \
"netdev=eth0\0" \
"consdev=ttyPSC0\0" \
@@ -415,8 +415,8 @@
#define CONFIG_OF_BOARD_SETUP 1
#define OF_CPU "PowerPC,5121 at 0"
-#define OF_SOC "soc5121 at 80000000"
+#define OF_SOC "soc at 80000000"
#define OF_TBCLK (bd->bi_busfreq / 4)
-#define OF_STDOUT_PATH "/soc5121 at 80000000/serial at 11300"
+#define OF_STDOUT_PATH "/soc at 80000000/serial at 11300"
#endif /* __CONFIG_H */
--
1.5.3.5.726.g41a7a
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot-Users] [PATCH] Update 5121 fdt support to match latest kernel work.
2008-01-16 22:52 [U-Boot-Users] [PATCH] Update 5121 fdt support to match latest kernel work John Rigby
@ 2008-01-17 9:00 ` Grzegorz Bernacki
2008-01-17 16:01 ` John Rigby
0 siblings, 1 reply; 3+ messages in thread
From: Grzegorz Bernacki @ 2008-01-17 9:00 UTC (permalink / raw)
To: u-boot
John Rigby wrote:
> Based on reviews on the linuxppc-dev mailing list
> some changes have been made to the device tree.
> This patch updates u-boot to be in sync with those
> changes.
>
> Signed-off-by: John Rigby <jrigby@freescale.com>
> ---
> cpu/mpc512x/cpu.c | 2 --
> include/configs/ads5121.h | 6 +++---
> 2 files changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/cpu/mpc512x/cpu.c b/cpu/mpc512x/cpu.c
> index 6421a51..793b62a 100644
> --- a/cpu/mpc512x/cpu.c
> +++ b/cpu/mpc512x/cpu.c
> @@ -138,10 +138,8 @@ void ft_cpu_setup(void *blob, bd_t *bd)
>
> do_fixup_by_path_u32(blob, cpu_path, "timebase-frequency", OF_TBCLK, 1);
> do_fixup_by_path_u32(blob, cpu_path, "bus-frequency", bd->bi_busfreq, 1);
> - do_fixup_by_path_u32(blob, cpu_path, "ref-frequency", CFG_MPC512X_CLKIN, 1);
> do_fixup_by_path_u32(blob, cpu_path, "clock-frequency", bd->bi_intfreq, 1);
> do_fixup_by_path_u32(blob, "/" OF_SOC, "bus-frequency", bd->bi_ipsfreq, 1);
> - do_fixup_by_path_u32(blob, "/" OF_SOC, "ref-frequency", CFG_MPC512X_CLKIN, 1);
> do_fixup_by_path(blob, eth_path, "address", bd->bi_enetaddr, 6, 0);
> do_fixup_by_path(blob, eth_path, "local-mac-address", bd->bi_enetaddr, 6, 0);
[snip]
What about "address" and "local-mac-address"? I cannot find it in device tree, I think you should removed it also.
regards,
Grzesiek
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot-Users] [PATCH] Update 5121 fdt support to match latest kernel work.
2008-01-17 9:00 ` Grzegorz Bernacki
@ 2008-01-17 16:01 ` John Rigby
0 siblings, 0 replies; 3+ messages in thread
From: John Rigby @ 2008-01-17 16:01 UTC (permalink / raw)
To: u-boot
address should be removed
local-mac-address will be added to the device tree when
I submit an ethernet patch so it should be left in u-boot.
Grzegorz Bernacki wrote:
> John Rigby wrote:
>
>> Based on reviews on the linuxppc-dev mailing list
>> some changes have been made to the device tree.
>> This patch updates u-boot to be in sync with those
>> changes.
>>
>> Signed-off-by: John Rigby <jrigby@freescale.com>
>> ---
>> cpu/mpc512x/cpu.c | 2 --
>> include/configs/ads5121.h | 6 +++---
>> 2 files changed, 3 insertions(+), 5 deletions(-)
>>
>> diff --git a/cpu/mpc512x/cpu.c b/cpu/mpc512x/cpu.c
>> index 6421a51..793b62a 100644
>> --- a/cpu/mpc512x/cpu.c
>> +++ b/cpu/mpc512x/cpu.c
>> @@ -138,10 +138,8 @@ void ft_cpu_setup(void *blob, bd_t *bd)
>>
>> do_fixup_by_path_u32(blob, cpu_path, "timebase-frequency", OF_TBCLK, 1);
>> do_fixup_by_path_u32(blob, cpu_path, "bus-frequency", bd->bi_busfreq, 1);
>> - do_fixup_by_path_u32(blob, cpu_path, "ref-frequency", CFG_MPC512X_CLKIN, 1);
>> do_fixup_by_path_u32(blob, cpu_path, "clock-frequency", bd->bi_intfreq, 1);
>> do_fixup_by_path_u32(blob, "/" OF_SOC, "bus-frequency", bd->bi_ipsfreq, 1);
>> - do_fixup_by_path_u32(blob, "/" OF_SOC, "ref-frequency", CFG_MPC512X_CLKIN, 1);
>> do_fixup_by_path(blob, eth_path, "address", bd->bi_enetaddr, 6, 0);
>> do_fixup_by_path(blob, eth_path, "local-mac-address", bd->bi_enetaddr, 6, 0);
>>
> [snip]
>
> What about "address" and "local-mac-address"? I cannot find it in device tree, I think you should removed it also.
>
> regards,
> Grzesiek
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-17 16:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-16 22:52 [U-Boot-Users] [PATCH] Update 5121 fdt support to match latest kernel work John Rigby
2008-01-17 9:00 ` Grzegorz Bernacki
2008-01-17 16:01 ` John Rigby
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox