public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] sh: sh7753evb: Fix build error
  2016-01-25  5:45 [U-Boot] [PATCH] sh: sh7753evb: Fix build error Bin Meng
@ 2016-01-25  5:45 ` Bin Meng
  2016-01-25 21:30 ` [U-Boot] " Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Bin Meng @ 2016-01-25  5:45 UTC (permalink / raw)
  To: u-boot

On Mon, Jan 25, 2016 at 1:45 PM, Bin Meng <bmeng.cn@gmail.com> wrote:
> Currently buildman fails to build sh7753evb and reports the following:
>
>   board/renesas/sh7753evb/built-in.o: In function 'init_gether_mdio':
>   board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'PMB_ADDR_BASE'
>   board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'PMB_DATA_BASE'
>   board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'mk_pmb_addr_val'
>   board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'mk_pmb_data_val'
>   make: *** [u-boot] Error 1
>
> The fix is to wrap any codes that access these macros with CONFIG_SH_32BIT.
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
>  board/renesas/sh7753evb/sh7753evb.c | 4 ++++
>  1 file changed, 4 insertions(+)
>

While I am here, I have no idea how to fix the other 2 warnings for
sh7785lcr_32bit and sh7785lcr.

Summary of 1 commit for 23 boards (23 threads, 2 jobs per thread)
01: sh: sh7753evb: Fix build error
        sh:  +   sh7785lcr_32bit sh7785lcr
w+../drivers/net/rtl8169.c:310:2: warning: #warning cache-line size is
larger than descriptor size [-Wcpp]

The warning comes from rtl8169.c below

#if RTL8169_DESC_SIZE < ARCH_DMA_MINALIGN
#if !defined(CONFIG_SYS_NONCACHED_MEMORY) && \
!defined(CONFIG_SYS_DCACHE_OFF) && !defined(CONFIG_X86)
#warning cache-line size is larger than descriptor size
#endif
#endif

Since I don't know anything about SH, I don't know how to eliminate
the warning correctly.

Regards,
Bin

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

* [U-Boot] [PATCH] sh: sh7753evb: Fix build error
@ 2016-01-25  5:45 Bin Meng
  2016-01-25  5:45 ` Bin Meng
  2016-01-25 21:30 ` [U-Boot] " Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: Bin Meng @ 2016-01-25  5:45 UTC (permalink / raw)
  To: u-boot

Currently buildman fails to build sh7753evb and reports the following:

  board/renesas/sh7753evb/built-in.o: In function 'init_gether_mdio':
  board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'PMB_ADDR_BASE'
  board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'PMB_DATA_BASE'
  board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'mk_pmb_addr_val'
  board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'mk_pmb_data_val'
  make: *** [u-boot] Error 1

The fix is to wrap any codes that access these macros with CONFIG_SH_32BIT.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---

 board/renesas/sh7753evb/sh7753evb.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/board/renesas/sh7753evb/sh7753evb.c b/board/renesas/sh7753evb/sh7753evb.c
index 9f64945..52a1906 100644
--- a/board/renesas/sh7753evb/sh7753evb.c
+++ b/board/renesas/sh7753evb/sh7753evb.c
@@ -113,6 +113,7 @@ static void set_mac_to_sh_giga_eth_register(int channel, char *mac_string)
 	writel(val, &ether->malr);
 }
 
+#if defined(CONFIG_SH_32BIT)
 /*****************************************************************
  * This PMB must be set on this timing. The lowlevel_init is run on
  * Area 0(phys 0x00000000), so we have to map it.
@@ -154,13 +155,16 @@ static void set_pmb_on_board_init(void)
 	writel(mk_pmb_addr_val(0x98), PMB_ADDR_BASE(7));
 	writel(mk_pmb_data_val(0x58, 0, 1, 1, 0, 1, 1), PMB_DATA_BASE(7));
 }
+#endif
 
 int board_init(void)
 {
 	struct gether_control_regs *gether = GETHER_CONTROL_BASE;
 
 	init_gpio();
+#if defined(CONFIG_SH_32BIT)
 	set_pmb_on_board_init();
+#endif
 
 	/* Sets TXnDLY to B'010 */
 	writel(0x00000202, &gether->gbecont);
-- 
1.8.2.1

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

* [U-Boot] sh: sh7753evb: Fix build error
  2016-01-25  5:45 [U-Boot] [PATCH] sh: sh7753evb: Fix build error Bin Meng
  2016-01-25  5:45 ` Bin Meng
@ 2016-01-25 21:30 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2016-01-25 21:30 UTC (permalink / raw)
  To: u-boot

On Sun, Jan 24, 2016 at 09:45:46PM -0800, Bin Meng wrote:

> Currently buildman fails to build sh7753evb and reports the following:
> 
>   board/renesas/sh7753evb/built-in.o: In function 'init_gether_mdio':
>   board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'PMB_ADDR_BASE'
>   board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'PMB_DATA_BASE'
>   board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'mk_pmb_addr_val'
>   board/renesas/sh7753evb/sh7753evb.c:94: undefined reference to 'mk_pmb_data_val'
>   make: *** [u-boot] Error 1
> 
> The fix is to wrap any codes that access these macros with CONFIG_SH_32BIT.
> 
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160125/6217b618/attachment.sig>

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

end of thread, other threads:[~2016-01-25 21:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-25  5:45 [U-Boot] [PATCH] sh: sh7753evb: Fix build error Bin Meng
2016-01-25  5:45 ` Bin Meng
2016-01-25 21:30 ` [U-Boot] " Tom Rini

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