summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhao Qiang <qiang.zhao@nxp.com>2016-02-05 10:04:16 +0800
committerYork Sun <york.sun@nxp.com>2016-02-24 08:51:14 -0800
commit3bf46e6a6de71a31be05545d59819ca73e367ddc (patch)
tree736085ec86cc294fb387ba6c1288fbf3c9530924
parent5a7c40bea618dfa50c6ae5f171782b49fd8250a6 (diff)
downloadu-boot-imx-3bf46e6a6de71a31be05545d59819ca73e367ddc.zip
u-boot-imx-3bf46e6a6de71a31be05545d59819ca73e367ddc.tar.gz
u-boot-imx-3bf46e6a6de71a31be05545d59819ca73e367ddc.tar.bz2
driver: qe: Mask the codes not used for micro QE
there are some code in qe.c not used for micro QE, use "#ifdef CONFIG_QE" to mask them. Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
-rw-r--r--drivers/qe/qe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c
index 8f00817..31e0e3b 100644
--- a/drivers/qe/qe.c
+++ b/drivers/qe/qe.c
@@ -20,7 +20,9 @@
#define MPC85xx_DEVDISR_QE_DISABLE 0x1
qe_map_t *qe_immr = NULL;
+#ifdef CONFIG_QE
static qe_snum_t snums[QE_NUM_OF_SNUM];
+#endif
DECLARE_GLOBAL_DATA_PTR;
@@ -81,6 +83,7 @@ void *qe_muram_addr(uint offset)
return (void *)&qe_immr->muram[offset];
}
+#ifdef CONFIG_QE
static void qe_sdma_init(void)
{
volatile sdma_t *p;
@@ -184,6 +187,7 @@ void qe_init(uint qe_base)
qe_sdma_init();
qe_snums_init();
}
+#endif
#ifdef CONFIG_U_QE
void u_qe_init(void)
@@ -214,6 +218,7 @@ void qe_reset(void)
(u8) QE_CR_PROTOCOL_UNSPECIFIED, 0);
}
+#ifdef CONFIG_QE
void qe_assign_page(uint snum, uint para_ram_base)
{
u32 cecr;
@@ -229,6 +234,7 @@ void qe_assign_page(uint snum, uint para_ram_base)
return;
}
+#endif
/*
* brg: 0~15 as BRG1~BRG16