* [U-Boot] [PATCH] nios2: use common sequence for reserve_uboot
@ 2015-10-27 3:24 Thomas Chou
2015-10-27 9:07 ` Marek Vasut
2015-11-03 5:16 ` Thomas Chou
0 siblings, 2 replies; 5+ messages in thread
From: Thomas Chou @ 2015-10-27 3:24 UTC (permalink / raw)
To: u-boot
Use common sequence for reserve_uboot, as the result is
the same.
Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
---
common/board_f.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/board_f.c b/common/board_f.c
index d88ada3..64c33b3 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -894,7 +894,7 @@ static init_fnc_t init_sequence_f[] = {
* - board info struct
*/
setup_dest_addr,
-#if defined(CONFIG_BLACKFIN) || defined(CONFIG_NIOS2)
+#if defined(CONFIG_BLACKFIN)
/* Blackfin u-boot monitor should be on top of the ram */
reserve_uboot,
#endif
@@ -919,7 +919,7 @@ static init_fnc_t init_sequence_f[] = {
!defined(CONFIG_BLACKFIN) && !defined(CONFIG_M68K)
reserve_video,
#endif
-#if !defined(CONFIG_BLACKFIN) && !defined(CONFIG_NIOS2)
+#if !defined(CONFIG_BLACKFIN)
reserve_uboot,
#endif
#ifndef CONFIG_SPL_BUILD
--
2.1.4
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] nios2: use common sequence for reserve_uboot
2015-10-27 3:24 [U-Boot] [PATCH] nios2: use common sequence for reserve_uboot Thomas Chou
@ 2015-10-27 9:07 ` Marek Vasut
2015-10-27 13:15 ` Thomas Chou
2015-11-03 5:16 ` Thomas Chou
1 sibling, 1 reply; 5+ messages in thread
From: Marek Vasut @ 2015-10-27 9:07 UTC (permalink / raw)
To: u-boot
On Tuesday, October 27, 2015 at 04:24:10 AM, Thomas Chou wrote:
> Use common sequence for reserve_uboot, as the result is
> the same.
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Shouldn't we just implement relocation properly ?
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] nios2: use common sequence for reserve_uboot
2015-10-27 9:07 ` Marek Vasut
@ 2015-10-27 13:15 ` Thomas Chou
2015-10-27 13:28 ` Marek Vasut
0 siblings, 1 reply; 5+ messages in thread
From: Thomas Chou @ 2015-10-27 13:15 UTC (permalink / raw)
To: u-boot
Hi Marek,
On 10/27/2015 05:07 PM, Marek Vasut wrote:
> On Tuesday, October 27, 2015 at 04:24:10 AM, Thomas Chou wrote:
>> Use common sequence for reserve_uboot, as the result is
>> the same.
>>
>> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
>
> Shouldn't we just implement relocation properly ?
This patch is not quite related to relocation. It just says that nios2
can use the same order (early or late) of init sequence about the
reserve_uboot() call as most other archs. Only blackfin is special in this.
I did look into the relocation of nios2 a little. And realized that
nios2 does not have the relative call instruction like ARM's "bl". It
will be almost impossible to do relocation without support from
compiler, eg, emulate the relative call. ><
Best regards,
Thomas
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] nios2: use common sequence for reserve_uboot
2015-10-27 13:15 ` Thomas Chou
@ 2015-10-27 13:28 ` Marek Vasut
0 siblings, 0 replies; 5+ messages in thread
From: Marek Vasut @ 2015-10-27 13:28 UTC (permalink / raw)
To: u-boot
On Tuesday, October 27, 2015 at 02:15:24 PM, Thomas Chou wrote:
> Hi Marek,
Hi,
> On 10/27/2015 05:07 PM, Marek Vasut wrote:
> > On Tuesday, October 27, 2015 at 04:24:10 AM, Thomas Chou wrote:
> >> Use common sequence for reserve_uboot, as the result is
> >> the same.
> >>
> >> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> >
> > Shouldn't we just implement relocation properly ?
>
> This patch is not quite related to relocation. It just says that nios2
> can use the same order (early or late) of init sequence about the
> reserve_uboot() call as most other archs. Only blackfin is special in this.
>
> I did look into the relocation of nios2 a little. And realized that
> nios2 does not have the relative call instruction like ARM's "bl". It
> will be almost impossible to do relocation without support from
> compiler, eg, emulate the relative call. ><
Ccing Albert, so he can comment on this.
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] [PATCH] nios2: use common sequence for reserve_uboot
2015-10-27 3:24 [U-Boot] [PATCH] nios2: use common sequence for reserve_uboot Thomas Chou
2015-10-27 9:07 ` Marek Vasut
@ 2015-11-03 5:16 ` Thomas Chou
1 sibling, 0 replies; 5+ messages in thread
From: Thomas Chou @ 2015-11-03 5:16 UTC (permalink / raw)
To: u-boot
On 2015?10?27? 11:24, Thomas Chou wrote:
> Use common sequence for reserve_uboot, as the result is
> the same.
>
> Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
> ---
> common/board_f.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
Applied to u-boot-nios.
> diff --git a/common/board_f.c b/common/board_f.c
> index d88ada3..64c33b3 100644
> --- a/common/board_f.c
> +++ b/common/board_f.c
> @@ -894,7 +894,7 @@ static init_fnc_t init_sequence_f[] = {
> * - board info struct
> */
> setup_dest_addr,
> -#if defined(CONFIG_BLACKFIN) || defined(CONFIG_NIOS2)
> +#if defined(CONFIG_BLACKFIN)
> /* Blackfin u-boot monitor should be on top of the ram */
> reserve_uboot,
> #endif
> @@ -919,7 +919,7 @@ static init_fnc_t init_sequence_f[] = {
> !defined(CONFIG_BLACKFIN) && !defined(CONFIG_M68K)
> reserve_video,
> #endif
> -#if !defined(CONFIG_BLACKFIN) && !defined(CONFIG_NIOS2)
> +#if !defined(CONFIG_BLACKFIN)
> reserve_uboot,
> #endif
> #ifndef CONFIG_SPL_BUILD
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-11-03 5:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-27 3:24 [U-Boot] [PATCH] nios2: use common sequence for reserve_uboot Thomas Chou
2015-10-27 9:07 ` Marek Vasut
2015-10-27 13:15 ` Thomas Chou
2015-10-27 13:28 ` Marek Vasut
2015-11-03 5:16 ` Thomas Chou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox