From patchwork Thu Oct 27 15:32:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 79724 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp688428qge; Thu, 27 Oct 2016 08:33:46 -0700 (PDT) X-Received: by 10.36.22.85 with SMTP id a82mr11015211ita.69.1477582379097; Thu, 27 Oct 2016 08:32:59 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xq3si7069895pac.194.2016.10.27.08.32.58; Thu, 27 Oct 2016 08:32:59 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.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 S1030444AbcJ0Pcy (ORCPT + 27 others); Thu, 27 Oct 2016 11:32:54 -0400 Received: from mail-wm0-f53.google.com ([74.125.82.53]:35908 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S942011AbcJ0Pcw (ORCPT ); Thu, 27 Oct 2016 11:32:52 -0400 Received: by mail-wm0-f53.google.com with SMTP id b80so41254907wme.1 for ; Thu, 27 Oct 2016 08:32: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=70UN0pwPKCZCqkXyFkWORzalGcy7cCQWOB0kcvUUg+0=; b=ha3pzHfy1czDzYXjidmZm4vQuYyqNed7LZ5lwXfG3HgIBcsXq7gLfhHeVTo1bfH9CM hrrKbdl7d+qoNOhbfyB6vcbx+aiuPLA4dzjPf4f80Mi6IYf1y+qG5yAtNyGlmBPlslqx Lx7BmJqrGV7eXYNd//UgW4X6QmI0oFwqU3qIwaDF1QE/R/NuSdZFx+NP2G4Nanqimpqc aP4MOgLzn/mWNtaSbLoVGE1J2a3yd9+66jrgM3Ek3RTE+y1yjc6ECd9vwXN4ohml0F3S 5Wgrve8RzTJhtVDXwop2gJ8Eyp6PTUyA2jEKIITjPHLrewQ55rXw4XYkVk2w7e7ENHvZ Cqmg== 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=70UN0pwPKCZCqkXyFkWORzalGcy7cCQWOB0kcvUUg+0=; b=L52lGgmKwIjOJs6oNA7dQWY9oJnm9RA7COTRJ7C7HEiUbxglT7zxRcfgs1jbjKNjDi 0i5GGiTZZ4penmNrOZr5DSMBSzR77WqxBzTfTLvrknADY653a349gzXElWAZ3r7XNTxy T8gK8ELR5HtCwODNMaTRQ9Pk1W9TB8Lt8FUCxW9IUgtVnnGNbUz5IhUVw65m6eRWvPAH wrl8U4QElCer7XQeUPeS6v+w43jrD0B4Tss7egKguuCcTc2tmFnOqMDXh6+EnpO8SM2Y iAO7POGSaPg520IW7GkYPg7naXbq4i/ZTh0AQp6LB3i9kmBVweeMfF2/Ek85Iy2w+kem UKGg== X-Gm-Message-State: ABUngve6BblZ8jH2IJrWwdy9CZxR98uCnQE5t8uVg6mvTaWwR0tsgZqlOxv1Q1Sf/O6zghWB X-Received: by 10.28.196.70 with SMTP id u67mr14695699wmf.25.1477582370684; Thu, 27 Oct 2016 08:32:50 -0700 (PDT) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id 18sm3886382wmr.5.2016.10.27.08.32.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Oct 2016 08:32:50 -0700 (PDT) From: Alexandre Bailon To: nsekhar@ti.com, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alexandre Bailon Subject: [PATCH v4] ARM: davinci: da8xx: Remove duplicated defines Date: Thu, 27 Oct 2016 17:32:36 +0200 Message-Id: <1477582356-28156-2-git-send-email-abailon@baylibre.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1477582356-28156-1-git-send-email-abailon@baylibre.com> References: <1477582356-28156-1-git-send-email-abailon@baylibre.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some macro for DA8xx CFGCHIP are defined in usb-davinci.h, but da8xx-cfgchip.h intend to replace them. Remove duplicated defines between da8xx-cfgchip.h and usb-davinci.h Signed-off-by: Alexandre Bailon --- arch/arm/mach-davinci/board-da830-evm.c | 5 +++-- arch/arm/mach-davinci/board-omapl138-hawk.c | 3 ++- include/linux/platform_data/usb-davinci.h | 23 ----------------------- 3 files changed, 5 insertions(+), 26 deletions(-) -- 2.7.3 diff --git a/arch/arm/mach-davinci/board-da830-evm.c b/arch/arm/mach-davinci/board-da830-evm.c index 3d8cf8c..df1f409 100644 --- a/arch/arm/mach-davinci/board-da830-evm.c +++ b/arch/arm/mach-davinci/board-da830-evm.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -116,7 +117,7 @@ static __init void da830_evm_usb_init(void) cfgchip2 = __raw_readl(DA8XX_SYSCFG0_VIRT(DA8XX_CFGCHIP2_REG)); /* USB2.0 PHY reference clock is 24 MHz */ - cfgchip2 &= ~CFGCHIP2_REFFREQ; + cfgchip2 &= ~CFGCHIP2_REFFREQ_MASK; cfgchip2 |= CFGCHIP2_REFFREQ_24MHZ; /* @@ -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/arch/arm/mach-davinci/board-omapl138-hawk.c b/arch/arm/mach-davinci/board-omapl138-hawk.c index ee62486..e1efa10 100644 --- a/arch/arm/mach-davinci/board-omapl138-hawk.c +++ b/arch/arm/mach-davinci/board-omapl138-hawk.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -254,7 +255,7 @@ static __init void omapl138_hawk_usb_init(void) /* Setup the Ref. clock frequency for the HAWK at 24 MHz. */ cfgchip2 = __raw_readl(DA8XX_SYSCFG0_VIRT(DA8XX_CFGCHIP2_REG)); - cfgchip2 &= ~CFGCHIP2_REFFREQ; + cfgchip2 &= ~CFGCHIP2_REFFREQ_MASK; cfgchip2 |= CFGCHIP2_REFFREQ_24MHZ; __raw_writel(cfgchip2, DA8XX_SYSCFG0_VIRT(DA8XX_CFGCHIP2_REG)); 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,