From patchwork Tue Jan 15 12:55:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 14065 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id E29CC23E2E for ; Tue, 15 Jan 2013 12:56:55 +0000 (UTC) Received: from mail-vb0-f45.google.com (mail-vb0-f45.google.com [209.85.212.45]) by fiordland.canonical.com (Postfix) with ESMTP id 99C86A192C6 for ; Tue, 15 Jan 2013 12:56:55 +0000 (UTC) Received: by mail-vb0-f45.google.com with SMTP id p1so54168vbi.32 for ; Tue, 15 Jan 2013 04:56:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=gtQ0l3RYAo+eb1obik2A3RulwicZ6VpB22tYDEoIhlA=; b=ZwVsSDTLAZ8QjEJh12XnptV3F+5w+tmYjmsC0L1rO4KfFqX3CxrGB4AsFlGFAIc31d MEZ9+GFwCHDZOOyq/2KgiaG7yIUk6yQNL8XkIo2TkPGUvHRRDSEo/pn60fWn/ifkWXAL Xy4IJygSQa6AN+EEcNSXw8+Six1UfPp2gf49Anw56Znc0/GMU6xlscGf1jWHoGA/B0XO XPd6bVHNXOIb4wPlkgykakxZCY5DlHF05emmaOJZDquaB7s4GaPtHO52RAwJ9xxa1tI/ oMYlCMvTayuNcBQIgw1tCfZH3H4yRC1beARS5c41jLc07jcedoXM6w6gr0GAaP+4aplJ wfyA== X-Received: by 10.52.18.147 with SMTP id w19mr92362616vdd.94.1358254615097; Tue, 15 Jan 2013 04:56:55 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.145.101 with SMTP id st5csp110613veb; Tue, 15 Jan 2013 04:56:54 -0800 (PST) X-Received: by 10.180.82.170 with SMTP id j10mr3620251wiy.2.1358254613946; Tue, 15 Jan 2013 04:56:53 -0800 (PST) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by mx.google.com with ESMTPS id cp11si27416551wjb.49.2013.01.15.04.56.53 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Jan 2013 04:56:53 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.177 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.177; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.177 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wi0-f177.google.com with SMTP id hm2so63546wib.4 for ; Tue, 15 Jan 2013 04:56:53 -0800 (PST) X-Received: by 10.180.109.10 with SMTP id ho10mr3654465wib.9.1358254613559; Tue, 15 Jan 2013 04:56:53 -0800 (PST) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id eo10sm3672833wib.9.2013.01.15.04.56.51 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Jan 2013 04:56:52 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, sameo@linux.intel.com, Philippe Langlais , Lee Jones , Subject: [PATCH 16/26] mfd: ab8500-debugfs: Set the USB charging current to 300mA for ABV3 Date: Tue, 15 Jan 2013 12:55:56 +0000 Message-Id: <1358254566-12419-17-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1358254566-12419-1-git-send-email-lee.jones@linaro.org> References: <1358254566-12419-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQkcYc/0yOa+oNwheaDYONK+iPoTKtEKIy5SU1A7f1pn2OVOAHn4zDG7vEzawDheQUw2idW5 From: Philippe Langlais In case of AB-V3, the eye diagram related issues are resolved. So, set the device charging current to 300mA when connected to standard host. Also, add the USB PHY tuning values to improve the USB eye diagram Signed-off-by: Lee Jones Signed-off-by: --- drivers/mfd/ab8500-debugfs.c | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c index aedbcb0..a231faf 100644 --- a/drivers/mfd/ab8500-debugfs.c +++ b/drivers/mfd/ab8500-debugfs.c @@ -144,7 +144,7 @@ static struct hwreg_cfg hwreg_cfg = { #define AB8500_NAME_STRING "ab8500" #define AB8500_ADC_NAME_STRING "gpadc" -#define AB8500_NUM_BANKS 22 +#define AB8500_NUM_BANKS 24 #define AB8500_REV_REG 0x80 @@ -316,7 +316,7 @@ static struct ab8500_prcmu_ranges debug_ranges[AB8500_NUM_BANKS] = { }, }, [AB8500_CHARGER] = { - .num_ranges = 8, + .num_ranges = 9, .range = (struct ab8500_reg_range[]) { { .first = 0x00, @@ -350,6 +350,10 @@ static struct ab8500_prcmu_ranges debug_ranges[AB8500_NUM_BANKS] = { .first = 0xC0, .last = 0xC2, }, + { + .first = 0xf5, + .last = 0xf6, + }, }, }, [AB8500_GAS_GAUGE] = { @@ -369,6 +373,24 @@ static struct ab8500_prcmu_ranges debug_ranges[AB8500_NUM_BANKS] = { }, }, }, + [AB8500_DEVELOPMENT] = { + .num_ranges = 1, + .range = (struct ab8500_reg_range[]) { + { + .first = 0x00, + .last = 0x00, + }, + }, + }, + [AB8500_DEBUG] = { + .num_ranges = 1, + .range = (struct ab8500_reg_range[]) { + { + .first = 0x05, + .last = 0x07, + }, + }, + }, [AB8500_AUDIO] = { .num_ranges = 1, .range = (struct ab8500_reg_range[]) {