3d49a2ffb6c83f550397e99108e77a1086f2ac35
[openwrt/staging/svanheule.git] /
1 From d99349711fa42b3e401bf9a71e315440b8ed2c17 Mon Sep 17 00:00:00 2001
2 From: Abhimanyu Saini <abhimanyu.saini@nxp.com>
3 Date: Tue, 10 May 2016 09:21:35 +0530
4 Subject: [PATCH 26/93] fsl, qixis: conditionally compile IFC based qixis
5 functions
6
7 Check if qixis supports memory-mapped read/write
8 before compiling IFC based qixis read/write functions.
9
10 Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
11 Signed-off-by: Abhimanyu Saini <abhimanyu.saini@nxp.com>
12 ---
13 board/freescale/common/qixis.c | 2 ++
14 1 file changed, 2 insertions(+)
15
16 diff --git a/board/freescale/common/qixis.c b/board/freescale/common/qixis.c
17 index 113295f..2e35d41 100644
18 --- a/board/freescale/common/qixis.c
19 +++ b/board/freescale/common/qixis.c
20 @@ -27,6 +27,7 @@ void qixis_write_i2c(unsigned int reg, u8 value)
21 }
22 #endif
23
24 +#ifdef QIXIS_BASE
25 u8 qixis_read(unsigned int reg)
26 {
27 void *p = (void *)QIXIS_BASE;
28 @@ -40,6 +41,7 @@ void qixis_write(unsigned int reg, u8 value)
29
30 out_8(p + reg, value);
31 }
32 +#endif
33
34 u16 qixis_read_minor(void)
35 {
36 --
37 1.7.9.5
38