summaryrefslogtreecommitdiffstats
path: root/board/toradex
diff options
context:
space:
mode:
authorBreno Lima <breno.lima@nxp.com>2017-08-24 10:00:16 -0300
committerStefano Babic <sbabic@denx.de>2017-08-28 09:48:53 +0200
commit3aa4b703b483f165dd2eb5c3324b44b60fbb1672 (patch)
treebe47799cc857c58710a5e6bac7a76e116240a636 /board/toradex
parent962c78b1dfa6cd69333cad52c9298a3e1f85f606 (diff)
downloadu-boot-3aa4b703b483f165dd2eb5c3324b44b60fbb1672.tar.gz
u-boot-3aa4b703b483f165dd2eb5c3324b44b60fbb1672.tar.xz
u-boot-3aa4b703b483f165dd2eb5c3324b44b60fbb1672.zip
imx: imx6: Move gpr_init() function to soc.c
Since the gpr_init() function is common for boards using MX6S, MX6DL, MX6D, MX6Q and MX6QP processors move it to the soc.c file. Signed-off-by: Breno Lima <breno.lima@nxp.com> Acked-by: Stefano Babic <sbabic@denx.de> Reviewed-by: Lukasz Majewski <lukma@denx.de> Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Diffstat (limited to 'board/toradex')
-rw-r--r--board/toradex/apalis_imx6/apalis_imx6.c11
-rw-r--r--board/toradex/colibri_imx6/colibri_imx6.c11
2 files changed, 0 insertions, 22 deletions
diff --git a/board/toradex/apalis_imx6/apalis_imx6.c b/board/toradex/apalis_imx6/apalis_imx6.c
index 2fd96232bd..ebc6c12cbc 100644
--- a/board/toradex/apalis_imx6/apalis_imx6.c
+++ b/board/toradex/apalis_imx6/apalis_imx6.c
@@ -1160,17 +1160,6 @@ static void ccgr_init(void)
writel(0x000000FB, &ccm->ccosr);
}
-static void gpr_init(void)
-{
- struct iomuxc *iomux = (struct iomuxc *)IOMUXC_BASE_ADDR;
-
- /* enable AXI cache for VDOA/VPU/IPU */
- writel(0xF00000CF, &iomux->gpr[4]);
- /* set IPU AXI-id0 Qos=0xf(bypass) AXI-id1 Qos=0x7 */
- writel(0x007F007F, &iomux->gpr[6]);
- writel(0x007F007F, &iomux->gpr[7]);
-}
-
static void ddr_init(int *table, int size)
{
int i;
diff --git a/board/toradex/colibri_imx6/colibri_imx6.c b/board/toradex/colibri_imx6/colibri_imx6.c
index d30391fa63..669d9123ca 100644
--- a/board/toradex/colibri_imx6/colibri_imx6.c
+++ b/board/toradex/colibri_imx6/colibri_imx6.c
@@ -1037,17 +1037,6 @@ static void ccgr_init(void)
writel(0x000000FB, &ccm->ccosr);
}
-static void gpr_init(void)
-{
- struct iomuxc *iomux = (struct iomuxc *)IOMUXC_BASE_ADDR;
-
- /* enable AXI cache for VDOA/VPU/IPU */
- writel(0xF00000CF, &iomux->gpr[4]);
- /* set IPU AXI-id0 Qos=0xf(bypass) AXI-id1 Qos=0x7 */
- writel(0x007F007F, &iomux->gpr[6]);
- writel(0x007F007F, &iomux->gpr[7]);
-}
-
static void ddr_init(int *table, int size)
{
int i;