public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] board: ls2080ardb: qds: Fix compiling issue when FSL_MC_ENET not defined
@ 2016-05-26 20:59 York Sun
  2016-06-04  5:06 ` York Sun
  0 siblings, 1 reply; 2+ messages in thread
From: York Sun @ 2016-05-26 20:59 UTC (permalink / raw)
  To: u-boot

U-Boot should continue to work without management complex (MC).
Fix compiling errors and warnings.

Signed-off-by: York Sun <york.sun@nxp.com>

---

 board/freescale/ls2080aqds/ls2080aqds.c |    2 ++
 board/freescale/ls2080ardb/ls2080ardb.c |    6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/board/freescale/ls2080aqds/ls2080aqds.c b/board/freescale/ls2080aqds/ls2080aqds.c
index b3bd40a..897793d 100644
--- a/board/freescale/ls2080aqds/ls2080aqds.c
+++ b/board/freescale/ls2080aqds/ls2080aqds.c
@@ -282,7 +282,9 @@ void fdt_fixup_board_enet(void *fdt)
 #ifdef CONFIG_OF_BOARD_SETUP
 int ft_board_setup(void *blob, bd_t *bd)
 {
+#ifdef CONFIG_FSL_MC_ENET
 	int err;
+#endif
 	u64 base[CONFIG_NR_DRAM_BANKS];
 	u64 size[CONFIG_NR_DRAM_BANKS];
 
diff --git a/board/freescale/ls2080ardb/ls2080ardb.c b/board/freescale/ls2080ardb/ls2080ardb.c
index fb39af6..52e5e3f 100644
--- a/board/freescale/ls2080ardb/ls2080ardb.c
+++ b/board/freescale/ls2080ardb/ls2080ardb.c
@@ -156,7 +156,9 @@ int board_init(void)
 {
 	char *env_hwconfig;
 	u32 __iomem *dcfg_ccsr = (u32 __iomem *)DCFG_BASE;
+#ifdef CONFIG_FSL_MC_ENET
 	u32 __iomem *irq_ccsr = (u32 __iomem *)ISC_BASE;
+#endif
 	u32 val;
 
 	init_final_memctl_regs();
@@ -178,8 +180,10 @@ int board_init(void)
 
 	QIXIS_WRITE(rst_ctl, QIXIS_RST_CTL_RESET_EN);
 
+#ifdef CONFIG_FSL_MC_ENET
 	/* invert AQR405 IRQ pins polarity */
 	out_le32(irq_ccsr + IRQCR_OFFSET / 4, AQR405_IRQ_MASK);
+#endif
 
 	return 0;
 }
@@ -261,7 +265,9 @@ void fdt_fixup_board_enet(void *fdt)
 #ifdef CONFIG_OF_BOARD_SETUP
 int ft_board_setup(void *blob, bd_t *bd)
 {
+#ifdef CONFIG_FSL_MC_ENET
 	int err;
+#endif
 	u64 base[CONFIG_NR_DRAM_BANKS];
 	u64 size[CONFIG_NR_DRAM_BANKS];
 
-- 
1.7.9.5

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

* [U-Boot] [PATCH] board: ls2080ardb: qds: Fix compiling issue when FSL_MC_ENET not defined
  2016-05-26 20:59 [U-Boot] [PATCH] board: ls2080ardb: qds: Fix compiling issue when FSL_MC_ENET not defined York Sun
@ 2016-06-04  5:06 ` York Sun
  0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2016-06-04  5:06 UTC (permalink / raw)
  To: u-boot

On 05/26/2016 01:59 PM, york sun wrote:
> U-Boot should continue to work without management complex (MC).
> Fix compiling errors and warnings.
> 
> Signed-off-by: York Sun <york.sun@nxp.com>
> 
> ---
> 
>  board/freescale/ls2080aqds/ls2080aqds.c |    2 ++
>  board/freescale/ls2080ardb/ls2080ardb.c |    6 ++++++
>  2 files changed, 8 insertions(+)
> 

Applied to fsl-qoriq master branch. Awaiting upstream.

York

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

end of thread, other threads:[~2016-06-04  5:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-26 20:59 [U-Boot] [PATCH] board: ls2080ardb: qds: Fix compiling issue when FSL_MC_ENET not defined York Sun
2016-06-04  5:06 ` York Sun

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