From patchwork Tue Oct 25 12:11:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 9394433 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B65EE60762 for ; Tue, 25 Oct 2016 12:14:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A7C8F2951A for ; Tue, 25 Oct 2016 12:14:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C14029572; Tue, 25 Oct 2016 12:14:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2F16E2951A for ; Tue, 25 Oct 2016 12:14:09 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bz0ai-0001fD-8J; Tue, 25 Oct 2016 12:12:28 +0000 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bz0aR-0001Vu-J5 for linux-arm-kernel@lists.infradead.org; Tue, 25 Oct 2016 12:12:13 +0000 Received: by mail-wm0-x234.google.com with SMTP id c78so20698186wme.0 for ; Tue, 25 Oct 2016 05:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2OGjcpIdUzGfdPTlN9jHbzcuzVD20EW+H+Was22BXZQ=; b=dwM4smmEN/eg3wAaNhoZ4rfY2+W+X30rDuYFsDW8+fUhWyciootP9M8++I+ZbLKVjN xGXZtJ/SQ5vVt+eGX5vYo59wgeHVhI8hlZcwq3SyiwBlMvA41QYaFQbv+Sop17jNjCLG Ow7rFgJfVZ60UkjjxLwq/FY3VJ20+YU8SEhiDnipYbIrZ0ZTX3c5FaDASSIfRNFDOz63 gosA+2AjERpYBlxC2wN05QoG7BwUU6MiPFIg8w6WegAcsJoEW8BCIh7AK7mjffPmbkRP CaWInqeE6V0fF9+muUFsUw9uYJ7+wc92n7ulSOMQqDJoy7L1u5mfclfNhng6pNuyZJKB pE7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2OGjcpIdUzGfdPTlN9jHbzcuzVD20EW+H+Was22BXZQ=; b=TR1qIqIzeB/DYyUiNZmcLmd2Ssli7CofhQMQktZR2hWs1lROtAQ4Xf4ucvzn/gRt5r AfyEzmKJx+1l8zwMmDUtMGgAg7ON1ktAlTa0i4Oo0m596MuaTVqBqK3bqMDOtH1LIbdS NkkcAslsgvMrumZbX/BXluytUYOdGeHkOWZUIf9to41AwCQWkfdKY2Um8qA/wn9/fOlM GF2GNvynVqqq7ARFiLtulyN1/jS71mzfQzXcFNXMIc1VMd0KwdqSznIs6tp8BZ77LE/4 xaFqQm17aQFSZdWjKvxN1pneqJGDpD4cSr7ufMu2hHvJEXydoF3B4ReXUo8DP6tomAC4 PKGw== X-Gm-Message-State: ABUngvde27cMgcb93ctdEYBqmLPrt16RGY2dAHo3U1f0uOUytcPGEs9GtgVj693itVtdxDON X-Received: by 10.194.51.163 with SMTP id l3mr15959181wjo.125.1477397509636; Tue, 25 Oct 2016 05:11:49 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 18sm3352056wmr.6.2016.10.25.05.11.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Oct 2016 05:11:49 -0700 (PDT) From: Alexandre Bailon To: gregkh@linuxfoundation.org, khilman@baylibre.com, nsekhar@ti.com Subject: [PATCH v2] ARM: davinci: da8xx: Fix some redefined symbol warnings Date: Tue, 25 Oct 2016 14:11:32 +0200 Message-Id: <1477397492-7925-2-git-send-email-abailon@baylibre.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1477397492-7925-1-git-send-email-abailon@baylibre.com> References: <1477397492-7925-1-git-send-email-abailon@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161025_051211_922380_5B874F7C X-CRM114-Status: GOOD ( 12.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alexandre Bailon MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Some macro for DA8xx CFGCHIP are defined in usb-davinci.h, but da8xx-cfgchip.h intend to replace them. The usb-da8xx.c is using both headers, causing redefined symbol warnings. Remove the macro and update the da830-evm board file to use da8xx-cfgchip.h Signed-off-by: Alexandre Bailon --- arch/arm/mach-davinci/board-da830-evm.c | 3 ++- include/linux/platform_data/usb-davinci.h | 23 ----------------------- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/arch/arm/mach-davinci/board-da830-evm.c b/arch/arm/mach-davinci/board-da830-evm.c index 3d8cf8c..9817316 100644 --- a/arch/arm/mach-davinci/board-da830-evm.c +++ b/arch/arm/mach-davinci/board-da830-evm.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -133,7 +134,7 @@ static __init void da830_evm_usb_init(void) * controller won't be able to drive VBUS thinking that it's a B-device. * Otherwise, we want to use the OTG mode and enable VBUS comparators. */ - cfgchip2 &= ~CFGCHIP2_OTGMODE; + cfgchip2 &= ~CFGCHIP2_OTGMODE_MASK; #ifdef CONFIG_USB_MUSB_HOST cfgchip2 |= CFGCHIP2_FORCE_HOST; #else diff --git a/include/linux/platform_data/usb-davinci.h b/include/linux/platform_data/usb-davinci.h index e0bc4ab..0926e99 100644 --- a/include/linux/platform_data/usb-davinci.h +++ b/include/linux/platform_data/usb-davinci.h @@ -11,29 +11,6 @@ #ifndef __ASM_ARCH_USB_H #define __ASM_ARCH_USB_H -/* DA8xx CFGCHIP2 (USB 2.0 PHY Control) register bits */ -#define CFGCHIP2_PHYCLKGD (1 << 17) -#define CFGCHIP2_VBUSSENSE (1 << 16) -#define CFGCHIP2_RESET (1 << 15) -#define CFGCHIP2_OTGMODE (3 << 13) -#define CFGCHIP2_NO_OVERRIDE (0 << 13) -#define CFGCHIP2_FORCE_HOST (1 << 13) -#define CFGCHIP2_FORCE_DEVICE (2 << 13) -#define CFGCHIP2_FORCE_HOST_VBUS_LOW (3 << 13) -#define CFGCHIP2_USB1PHYCLKMUX (1 << 12) -#define CFGCHIP2_USB2PHYCLKMUX (1 << 11) -#define CFGCHIP2_PHYPWRDN (1 << 10) -#define CFGCHIP2_OTGPWRDN (1 << 9) -#define CFGCHIP2_DATPOL (1 << 8) -#define CFGCHIP2_USB1SUSPENDM (1 << 7) -#define CFGCHIP2_PHY_PLLON (1 << 6) /* override PLL suspend */ -#define CFGCHIP2_SESENDEN (1 << 5) /* Vsess_end comparator */ -#define CFGCHIP2_VBDTCTEN (1 << 4) /* Vbus comparator */ -#define CFGCHIP2_REFFREQ (0xf << 0) -#define CFGCHIP2_REFFREQ_12MHZ (1 << 0) -#define CFGCHIP2_REFFREQ_24MHZ (2 << 0) -#define CFGCHIP2_REFFREQ_48MHZ (3 << 0) - struct da8xx_ohci_root_hub; typedef void (*da8xx_ocic_handler_t)(struct da8xx_ohci_root_hub *hub,