From patchwork Sun Oct 28 15:35:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasily Khoruzhick X-Patchwork-Id: 1657821 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id D14BEDFABE for ; Sun, 28 Oct 2012 15:38:51 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TSUuW-0004B8-Aw; Sun, 28 Oct 2012 15:36:24 +0000 Received: from mail-la0-f49.google.com ([209.85.215.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TSUuR-0004AX-LL for linux-arm-kernel@lists.infradead.org; Sun, 28 Oct 2012 15:36:20 +0000 Received: by mail-la0-f49.google.com with SMTP id z14so3189650lag.36 for ; Sun, 28 Oct 2012 08:36:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=pyrUQL7qdiwmxR59rmL1c4X4Rc2r62Vt6I7MlZAtIRg=; b=nF2X5duwZg1c7QCxc1AXBfihfq7flgG0/7j6DKZ1ektIYwSlNpzkmvmMS2QNJUbjaW MbZb805CFehIi2EcIfmaiROR9muCQetTODbI4ya+44WRlVJ41GvFcr8BXWFTE7w97chQ JmApWPzp+GIp9xihELZgJFhkjfO/nodE/FQkadLaYfiH+4hMfO+dxyJe7A5vFo1GFcUb afPI9fw49k+m+1pIirXciIHx9lt/2zoVqvEH/jXZJpToLEZcPoS8XExFbP6220rJWVdS J45LM3wZ/o8mwkd25KzYKH/ARJWH/0h22hzWWaQsrVXfZknrohmnTXSWNA1WC4tUU7KO 3Olg== Received: by 10.152.48.102 with SMTP id k6mr24453585lan.12.1351438574525; Sun, 28 Oct 2012 08:36:14 -0700 (PDT) Received: from localhost.localdomain ([80.249.90.60]) by mx.google.com with ESMTPS id ft3sm2276824lbb.1.2012.10.28.08.36.12 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 28 Oct 2012 08:36:13 -0700 (PDT) From: Vasily Khoruzhick To: Eric Miao , Russell King , Haojian Zhuang , Marek Vasut , linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/5] ARM: PXA: Add z2-usb-switch driver Date: Sun, 28 Oct 2012 18:35:51 +0300 Message-Id: <1351438555-4668-1-git-send-email-anarsoul@gmail.com> X-Mailer: git-send-email 1.7.12.4 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (anarsoul[at]gmail.com) -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.49 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Cc: Vasily Khoruzhick X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This driver controls mode of USB port #2 pins - device or host. Signed-off-by: Vasily Khoruzhick --- arch/arm/mach-pxa/Kconfig | 7 +++++++ arch/arm/mach-pxa/Makefile | 1 + 2 files changed, 8 insertions(+) diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index 11aa739..5fffc4b 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig @@ -630,6 +630,13 @@ config MACH_ZIPIT2 bool "Zipit Z2 Handheld" select HAVE_PWM select PXA27x + +config Z2_USB_SWITCH + tristate "Control the state of USB port on Zipit Z2" + depends on MACH_ZIPIT2 + help + This is a simple driver that is able to control + usb mode of Zipit Z2 endif endmenu diff --git a/arch/arm/mach-pxa/Makefile b/arch/arm/mach-pxa/Makefile index ee88d6e..86a032f 100644 --- a/arch/arm/mach-pxa/Makefile +++ b/arch/arm/mach-pxa/Makefile @@ -99,3 +99,4 @@ obj-$(CONFIG_MACH_RAUMFELD_SPEAKER) += raumfeld.o obj-$(CONFIG_MACH_ZIPIT2) += z2.o obj-$(CONFIG_TOSA_BT) += tosa-bt.o +obj-$(CONFIG_Z2_USB_SWITCH) += z2-usb-switch.o