Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7140694imu; Thu, 27 Dec 2018 13:10:48 -0800 (PST) X-Google-Smtp-Source: ALg8bN5rQH9qsRR6d6j03R7BPCLaB+yfHjYOvMkJfcR9JokBlfa5TCkiaKqtlhZf9OU9Fe1Se6dt X-Received: by 2002:a17:902:4081:: with SMTP id c1mr25559545pld.87.1545945048378; Thu, 27 Dec 2018 13:10:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545945048; cv=none; d=google.com; s=arc-20160816; b=Y4PeQeSd/nKXpXn54wyu/ANCGU0ayHPhUXSvG8aC2CWricG58AGzgTgCum6KA2l+Wv NS0S27W/FSnCvxm7mop+0qDiuxz7M5ItmBbMTSwsUo80VTrjGfToHmDyQg0cSdwlO3u0 TWDCKdHa+SnUlDRE4QYsQojR8SRwpWTsSWPV8BAk9BZgMGXzJN7Dw12RWA143UkKXzoi sMKFBGA2M+EIhdLCcRxvgrvZKlZt+NdT6XSaXur0IBSPI0+IprJvKgLiuFgZ05aH4t02 D5FQcIjC/i1sAYdOWVKF1or0kQYGR/3mIyNh+C5kke8MlAf3F/x51QGK86X/qzr+Tans HVtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=VCA0dcxpIUyzuC7jLEPsgwbAuBInMRAG+3bH9BEMxjY=; b=bft9Cw3f8BbAgiR2QE5LlZL6DULcQaZDu0u7pAUNnBHOV/0aeWmMfsPmtpVuQP9Nw0 wrY24Y3TO2jaLuPYtr2EvQPP73hnv/FEDKnh2AhbFId2PaYRkGjd7gNH6nMXmP2knaTY vJQLVscFJUwfe7X8CrX1YE7hGxMd2UGq/QFqPIkHaWpY9TV1hYve4Zq7hi2uUWPf+7+f avDSZiHH8f6csSnO4b1yiRsl9LrJKewW88PiMUGRQSevVAxPynGxqpDN6SjcXFLGnBKT +FVn4wS34oqX+M/dKb0bdlCqM36XJaw5AGJxfVM4lvamycvBH0y1b36qLJE71BrXHpJr kN3w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si41166plk.77.2018.12.27.13.10.30; Thu, 27 Dec 2018 13:10:48 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727975AbeL0HfY (ORCPT + 99 others); Thu, 27 Dec 2018 02:35:24 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:61038 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728900AbeL0HfX (ORCPT ); Thu, 27 Dec 2018 02:35:23 -0500 X-UUID: ce4a430f9fce4327b15afbcec40d852c-20181227 X-UUID: ce4a430f9fce4327b15afbcec40d852c-20181227 Received: from mtkcas36.mediatek.inc [(172.27.4.250)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLS) with ESMTP id 829140371; Thu, 27 Dec 2018 15:34:50 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by MTKMBS31DR.mediatek.inc (172.27.6.102) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Thu, 27 Dec 2018 15:34:48 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Thu, 27 Dec 2018 15:34:47 +0800 From: To: Bin Liu , Rob Herring CC: Greg Kroah-Hartman , Mark Rutland , Matthias Brugger , Alan Stern , , , , , , , Min Guo Subject: [PATCH 3/4] usb: musb: Move musbhsdma macro definition to musb_dma.h Date: Thu, 27 Dec 2018 15:34:25 +0800 Message-ID: <1545896066-897-4-git-send-email-min.guo@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1545896066-897-1-git-send-email-min.guo@mediatek.com> References: <1545896066-897-1-git-send-email-min.guo@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Min Guo Because the MediaTek musb controller dose not have a separate DMA interrupt, these macros are required to access the dma registers Signed-off-by: Min Guo --- drivers/usb/musb/musb_dma.h | 6 ++++++ drivers/usb/musb/musbhsdma.c | 7 +------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/usb/musb/musb_dma.h b/drivers/usb/musb/musb_dma.h index 8f60271..281e75d3 100644 --- a/drivers/usb/musb/musb_dma.h +++ b/drivers/usb/musb/musb_dma.h @@ -35,6 +35,12 @@ * whether shared with the Inventra core or separate. */ +#define MUSB_HSDMA_BASE 0x200 +#define MUSB_HSDMA_INTR (MUSB_HSDMA_BASE + 0) +#define MUSB_HSDMA_CONTROL 0x4 +#define MUSB_HSDMA_ADDRESS 0x8 +#define MUSB_HSDMA_COUNT 0xc + #define DMA_ADDR_INVALID (~(dma_addr_t)0) #ifdef CONFIG_MUSB_PIO_ONLY diff --git a/drivers/usb/musb/musbhsdma.c b/drivers/usb/musb/musbhsdma.c index a688f7f..824adcb 100644 --- a/drivers/usb/musb/musbhsdma.c +++ b/drivers/usb/musb/musbhsdma.c @@ -10,12 +10,7 @@ #include #include #include "musb_core.h" - -#define MUSB_HSDMA_BASE 0x200 -#define MUSB_HSDMA_INTR (MUSB_HSDMA_BASE + 0) -#define MUSB_HSDMA_CONTROL 0x4 -#define MUSB_HSDMA_ADDRESS 0x8 -#define MUSB_HSDMA_COUNT 0xc +#include "musb_dma.h" #define MUSB_HSDMA_CHANNEL_OFFSET(_bchannel, _offset) \ (MUSB_HSDMA_BASE + (_bchannel << 4) + _offset) -- 1.9.1