diff options
Diffstat (limited to 'board')
-rw-r--r-- | board/freescale/mx6q_arm2/mx6q_arm2.c | 5 | ||||
-rw-r--r-- | board/freescale/mx6q_sabresd/mx6q_sabresd.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/board/freescale/mx6q_arm2/mx6q_arm2.c b/board/freescale/mx6q_arm2/mx6q_arm2.c index 731feed..ba0d6c1 100644 --- a/board/freescale/mx6q_arm2/mx6q_arm2.c +++ b/board/freescale/mx6q_arm2/mx6q_arm2.c @@ -27,7 +27,9 @@ #include <asm/arch/mx6dl_pins.h> #include <asm/arch/iomux-v3.h> #include <asm/errno.h> +#ifdef CONFIG_MXC_FEC #include <miiphy.h> +#endif #if defined(CONFIG_VIDEO_MX5) #include <linux/list.h> #include <linux/fb.h> @@ -893,6 +895,7 @@ int board_late_init(void) return 0; } +#ifdef CONFIG_MXC_FEC static int phy_read(char *devname, unsigned char addr, unsigned char reg, unsigned short *pdata) { @@ -935,6 +938,7 @@ int mx6_rgmii_rework(char *devname, int phy_addr) return 0; } + #if defined CONFIG_MX6Q iomux_v3_cfg_t enet_pads[] = { MX6Q_PAD_KEY_COL1__ENET_MDIO, @@ -1010,6 +1014,7 @@ void enet_board_init(void) reg |= 0x8000; writel(reg, GPIO4_BASE_ADDR + 0x0); } +#endif int checkboard(void) { diff --git a/board/freescale/mx6q_sabresd/mx6q_sabresd.c b/board/freescale/mx6q_sabresd/mx6q_sabresd.c index 3307b92..db325ed 100644 --- a/board/freescale/mx6q_sabresd/mx6q_sabresd.c +++ b/board/freescale/mx6q_sabresd/mx6q_sabresd.c @@ -26,7 +26,9 @@ #include <asm/arch/mx6_pins.h> #include <asm/arch/iomux-v3.h> #include <asm/errno.h> +#ifdef CONFIG_MXC_FEC #include <miiphy.h> +#endif #if defined(CONFIG_VIDEO_MX5) #include <linux/list.h> #include <linux/fb.h> @@ -746,6 +748,7 @@ int board_late_init(void) return 0; } +#ifdef CONFIG_MXC_FEC static int phy_read(char *devname, unsigned char addr, unsigned char reg, unsigned short *pdata) { @@ -837,6 +840,7 @@ void enet_board_init(void) reg |= 0x2000000; writel(reg, GPIO1_BASE_ADDR + 0x0); } +#endif int checkboard(void) { |