[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20181016091915.19909-12-songjun.wu@linux.intel.com>
Date: Tue, 16 Oct 2018 17:19:12 +0800
From: Songjun Wu <songjun.wu@...ux.intel.com>
To: yixin.zhu@...ux.intel.com, chuanhua.lei@...ux.intel.com,
hauke.mehrtens@...el.com
Cc: gregkh@...uxfoundation.org, paul.burton@...s.com, jslaby@...e.com,
Songjun Wu <songjun.wu@...ux.intel.com>,
linux-kernel@...r.kernel.org
Subject: [RESEND PATCH 11/14] include: Add lantiq.h in include/linux/
In some existing lantiq driver, the C codes include lantiq_soc.h
header file directly.
./arch/mips/include/asm/mach-lantiq/falcon/lantiq_soc.h
./arch/mips/include/asm/mach-lantiq/xway/lantiq_soc.h
Those drivers need to be extended to support more platform.
lantiq.h is added in include/linux/ to make it
globally available and provides some wrapper codes.
Signed-off-by: Songjun Wu <songjun.wu@...ux.intel.com>
---
include/linux/lantiq.h | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 include/linux/lantiq.h
diff --git a/include/linux/lantiq.h b/include/linux/lantiq.h
new file mode 100644
index 000000000000..67921169d84d
--- /dev/null
+++ b/include/linux/lantiq.h
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#ifndef __LINUX_LANTIQ_H
+#define __LINUX_LANTIQ_H
+
+#ifdef CONFIG_LANTIQ
+#include <lantiq_soc.h>
+#else
+
+#ifndef LTQ_EARLY_ASC
+#define LTQ_EARLY_ASC 0
+#endif
+
+#ifndef CPHYSADDR
+#define CPHYSADDR(a) 0
+#endif
+
+static inline struct clk *clk_get_fpi(void)
+{
+ return NULL;
+}
+#endif /* CONFIG_LANTIQ */
+#endif /* __LINUX_LANTIQ_H */
--
2.11.0
Powered by blists - more mailing lists