[U-Boot] [PATCH 5/5] ARM: mx6: Enable PCIe on Sabrelite
Marek Vasut
marex at denx.de
Mon Nov 11 17:22:46 CET 2013
Enable PCI express on MX6 Sabrelite.
Signed-off-by: Marek Vasut <marex at denx.de>
Cc: Albert Aribaud <albert.u.boot at aribaud.net>
Cc: Eric Nelson <eric.nelson at boundarydevices.com>
Cc: Fabio Estevam <fabio.estevam at freescale.com>
Cc: Stefano Babic <sbabic at denx.de>
---
board/boundary/nitrogen6x/nitrogen6x.c | 7 ++++++-
include/configs/nitrogen6x.h | 11 +++++++++++
2 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/board/boundary/nitrogen6x/nitrogen6x.c b/board/boundary/nitrogen6x/nitrogen6x.c
index 1712908..46be51e 100644
--- a/board/boundary/nitrogen6x/nitrogen6x.c
+++ b/board/boundary/nitrogen6x/nitrogen6x.c
@@ -369,7 +369,12 @@ int board_eth_init(bd_t *bis)
free(bus);
}
#endif
- return 0;
+
+#ifdef CONFIG_PCI
+ ret = pci_eth_init(bis);
+#endif
+
+ return ret;
}
static void setup_buttons(void)
diff --git a/include/configs/nitrogen6x.h b/include/configs/nitrogen6x.h
index 3454b86..ccde896 100644
--- a/include/configs/nitrogen6x.h
+++ b/include/configs/nitrogen6x.h
@@ -355,4 +355,15 @@
#define CONFIG_SUPPORT_RAW_INITRD
#define CONFIG_CMD_FS_GENERIC
+/*
+ * PCI express
+ */
+#define CONFIG_CMD_PCI
+#ifdef CONFIG_CMD_PCI
+#define CONFIG_PCI
+#define CONFIG_PCI_PNP
+#define CONFIG_PCI_SCAN_SHOW
+#define CONFIG_PCIE_IMX
+#endif
+
#endif /* __CONFIG_H */
--
1.8.4.rc3
More information about the U-Boot
mailing list