Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2382581imm; Mon, 24 Sep 2018 03:30:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV61K3VuJKlKnv3Fcv3d2sYBDkJyKNblD8pNg1Jc6XB4uX0YjB9T/jUSTBATlrQO0TcPd5r/D X-Received: by 2002:a63:f501:: with SMTP id w1-v6mr8966414pgh.446.1537785009755; Mon, 24 Sep 2018 03:30:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537785009; cv=none; d=google.com; s=arc-20160816; b=D3fpskW341xHTuT7Q5XOXOV73aEg5eOJdm7Bc0z3qkRSm2jcXgsBCpVAalD+8V3ngc RKjVrmsgDpZvnAh/zH2bRhr4F6EtUkv954ektFuLFnESjQ9yxccSt8scRtwyQedak6yW BjWhtjDpRnK6IjQUxE/1wwxhB0KgfGrtEUDO1lMALgGZZqAOQf9TKCTUM5yumDPQb+UT jXDYqtV5hdrN+iasYadwwVtKu+rq3V1F8zNM7ZeHLM2NQ7i7IPnC0wUakTkUd12/EXY/ Ws3xYmjbsQRlJdsf0PX0eOH4NbvEUkG6UaWbEGxSqu982/WMoe/pJdDQ8/6nAhYFabpg FcFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=11EAP3ody6o7DVMOXL3ppnyXGz3vzRenUi1+hZor400=; b=xpL8xY9JkpqVu5sVJx7H6aOlroOSv2T6i0rjzbMcTHZJ5bUTZBbJe3v8jzEn621FpX aUdF32N2wLV0/73/quzOhYJaEGkb1yOIBBtq+W20jmy2Kjmd54WTo+C/GaigDhRw93Cj OdBqDnpzVMdcQkNBeC9DeHQ6QAqtHb86fGMOHTq2LlCi2Ai0liVRRtmxbvLGvl0w3tsy utOXMv7eQ7IVE7ES3rMYux9Z6xD6KU6C2l9rN3smi6/lv7+dhPsstKmA/Uoc+JXVmbmm HU2HwzQApKxK1c4HPMwEItRWklIPr8FbTUf0g4TKeUR0rYvaRD4a48GCVFTrp5a9ngAP DX8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t7-v6si34685294pgh.307.2018.09.24.03.29.54; Mon, 24 Sep 2018 03:30:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728690AbeIXQai (ORCPT + 99 others); Mon, 24 Sep 2018 12:30:38 -0400 Received: from mga05.intel.com ([192.55.52.43]:6299 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726074AbeIXQah (ORCPT ); Mon, 24 Sep 2018 12:30:37 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Sep 2018 03:29:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,297,1534834800"; d="scan'208";a="86051574" Received: from sgsxdev001.isng.intel.com (HELO localhost) ([10.226.88.11]) by orsmga003.jf.intel.com with ESMTP; 24 Sep 2018 03:28:59 -0700 From: Songjun Wu To: yixin.zhu@linux.intel.com, chuanhua.lei@linux.intel.com, hauke.mehrtens@intel.com Cc: Songjun Wu , linux-kernel@vger.kernel.org Subject: [PATCH 11/14] include: Add lantiq.h in include/linux/ Date: Mon, 24 Sep 2018 18:28:00 +0800 Message-Id: <20180924102803.30263-12-songjun.wu@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180924102803.30263-1-songjun.wu@linux.intel.com> References: <20180924102803.30263-1-songjun.wu@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 +#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