summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2017-07-31 20:21:02 +0200
committerLucas Stach <l.stach@pengutronix.de>2017-07-31 20:21:02 +0200
commit8b8d55e3c2a1f8b3b6323f59f90da6b51196402c (patch)
tree195a0c8a4f8ab427a2cedb67c32f7c8430e8ac25 /include
parentd6d7441e90d7859c60cba8b9bc160d7d24692452 (diff)
parenta0a5a7b84ff8a4dbae93404f88aeedf1c341bc20 (diff)
downloadbarebox-8b8d55e3c2a1f8b3b6323f59f90da6b51196402c.tar.gz
barebox-8b8d55e3c2a1f8b3b6323f59f90da6b51196402c.tar.xz
Merge branch 'for-next/imx'
Diffstat (limited to 'include')
-rw-r--r--include/mfd/imx7-iomuxc-gpr.h51
-rw-r--r--include/phy-id-list.h12
2 files changed, 63 insertions, 0 deletions
diff --git a/include/mfd/imx7-iomuxc-gpr.h b/include/mfd/imx7-iomuxc-gpr.h
new file mode 100644
index 0000000000..abbd524665
--- /dev/null
+++ b/include/mfd/imx7-iomuxc-gpr.h
@@ -0,0 +1,51 @@
+/*
+ * Copyright (C) 2015 Freescale Semiconductor, Inc.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+#ifndef __LINUX_IMX7_IOMUXC_GPR_H
+#define __LINUX_IMX7_IOMUXC_GPR_H
+
+#define IOMUXC_GPR0 0x00
+#define IOMUXC_GPR1 0x04
+#define IOMUXC_GPR2 0x08
+#define IOMUXC_GPR3 0x0c
+#define IOMUXC_GPR4 0x10
+#define IOMUXC_GPR5 0x14
+#define IOMUXC_GPR6 0x18
+#define IOMUXC_GPR7 0x1c
+#define IOMUXC_GPR8 0x20
+#define IOMUXC_GPR9 0x24
+#define IOMUXC_GPR10 0x28
+#define IOMUXC_GPR11 0x2c
+#define IOMUXC_GPR12 0x30
+#define IOMUXC_GPR13 0x34
+#define IOMUXC_GPR14 0x38
+#define IOMUXC_GPR15 0x3c
+#define IOMUXC_GPR16 0x40
+#define IOMUXC_GPR17 0x44
+#define IOMUXC_GPR18 0x48
+#define IOMUXC_GPR19 0x4c
+#define IOMUXC_GPR20 0x50
+#define IOMUXC_GPR21 0x54
+#define IOMUXC_GPR22 0x58
+
+/* For imx7d iomux gpr register field define */
+#define IMX7D_GPR1_IRQ_MASK (0x1 << 12)
+#define IMX7D_GPR1_ENET1_TX_CLK_SEL_MASK (0x1 << 13)
+#define IMX7D_GPR1_ENET2_TX_CLK_SEL_MASK (0x1 << 14)
+#define IMX7D_GPR1_ENET_TX_CLK_SEL_MASK (0x3 << 13)
+#define IMX7D_GPR1_ENET1_CLK_DIR_MASK (0x1 << 17)
+#define IMX7D_GPR1_ENET2_CLK_DIR_MASK (0x1 << 18)
+#define IMX7D_GPR1_ENET_CLK_DIR_MASK (0x3 << 17)
+
+#define IMX7D_GPR5_CSI_MUX_CONTROL_MIPI (0x1 << 4)
+
+#define IMX7D_GPR12_PCIE_PHY_REFCLK_SEL BIT(5)
+
+#define IMX7D_GPR22_PCIE_PHY_PLL_LOCKED BIT(31)
+
+#endif /* __LINUX_IMX7_IOMUXC_GPR_H */
diff --git a/include/phy-id-list.h b/include/phy-id-list.h
new file mode 100644
index 0000000000..a6070a0248
--- /dev/null
+++ b/include/phy-id-list.h
@@ -0,0 +1,12 @@
+/*
+ * List of all Etherenet PHY IDs that is not found in any .h files in
+ * include/linux
+ */
+
+
+#ifndef __PHY_ID_LIST__
+#define __PHY_ID_LIST__
+
+#define PHY_ID_BCM54220 0x600d8589
+
+#endif