From patchwork Fri Feb 15 12:57:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 2147881 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id 22EEE3FCF6 for ; Fri, 15 Feb 2013 13:26:49 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U6LGx-0000cg-UC; Fri, 15 Feb 2013 13:24:16 +0000 Received: from mail-wg0-f52.google.com ([74.125.82.52]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1U6Ks2-0008RW-Ig for linux-arm-kernel@lists.infradead.org; Fri, 15 Feb 2013 12:58:31 +0000 Received: by mail-wg0-f52.google.com with SMTP id 12so2772507wgh.19 for ; Fri, 15 Feb 2013 04:58:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=Vf4z6/tfDjYi06MPjCec5lyIomVf2J8KvUfgw2vJARM=; b=fLYvM7gOesDrzmu78Kdk8EZHVtHC4QlodPHWnlksto+mFLR628wsfwTBTVzl4IoXBh YNfZretvtwLV9KKEQcJqdXJHjWzjrkznlt8vIWvtU0BLw4jL4Cfnkx85TYl5w7hl6q7a nKKORdwRf/wx+pnr25KrAqedgsXVLdwoGkmUo8ESAaTutB7PAyKg880JoUq7kIh/nA3K ehdMPSncyBohXOPDdqrJdQSbC7yXBjl1rQMnjbhJODU2gdY1pvvUWVQqU5MQdUn8cnQQ kh/PtzfrFnbsnzCp9I+4bsbRrftfKFH/+rTcEQEY0XhU0gycwKh9Lfz/0K+C52nhbF6K sg/Q== X-Received: by 10.180.78.135 with SMTP id b7mr3981335wix.7.1360933105548; Fri, 15 Feb 2013 04:58:25 -0800 (PST) Received: from localhost.localdomain (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPS id j4sm2852410wiz.10.2013.02.15.04.58.22 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Feb 2013 04:58:23 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, sameo@linux.intel.com Subject: [PATCH 32/35] mfd: ab8500-core: Add abx500-clk as an mfd child device Date: Fri, 15 Feb 2013 12:57:03 +0000 Message-Id: <1360933026-30325-33-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1360933026-30325-1-git-send-email-lee.jones@linaro.org> References: <1360933026-30325-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQkOqnx1utdbQs3RZdNrO5FQR1tHF4SlsxoHdFbgU4Iy0E0unrxa2YJOgZwccgpiSOcxbj0S X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130215_075830_839999_E6FDE25A X-CRM114-Status: GOOD ( 10.88 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.52 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Lee Jones , linus.walleij@stericsson.com, arnd@arndb.de, Ulf Hansson 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 From: Ulf Hansson Hierarchically, the abx500-clk shall be considered as a child of the ab8500 core. The abx500-clk is intiated at arch init and thus the clks will be available when clients needs them. Signed-off-by: Ulf Hansson Signed-off-by: Lee Jones Reviewed-by: Philippe LANGLAIS Reviewed-by: Patrice CHOTARD Reviewed-by: Gabriel FERNANDEZ Reviewed-by: Philippe BEGNIC --- drivers/mfd/ab8500-core.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c index 153e71e..2716c6c 100644 --- a/drivers/mfd/ab8500-core.c +++ b/drivers/mfd/ab8500-core.c @@ -1144,6 +1144,10 @@ static struct mfd_cell ab9540_devs[] = { .name = "ab8500-regulator", }, { + .name = "abx500-clk", + .of_compatible = "stericsson,abx500-clk", + }, + { .name = "ab8500-gpadc", .of_compatible = "stericsson,ab8500-gpadc", .num_resources = ARRAY_SIZE(ab8500_gpadc_resources), @@ -1210,6 +1214,10 @@ static struct mfd_cell ab8505_devs[] = { .name = "ab8500-regulator", }, { + .name = "abx500-clk", + .of_compatible = "stericsson,abx500-clk", + }, + { .name = "ab8500-gpadc", .num_resources = ARRAY_SIZE(ab8505_gpadc_resources), .resources = ab8505_gpadc_resources, @@ -1269,6 +1277,10 @@ static struct mfd_cell ab8540_devs[] = { .name = "ab8500-regulator", }, { + .name = "abx500-clk", + .of_compatible = "stericsson,abx500-clk", + }, + { .name = "ab8500-gpadc", .num_resources = ARRAY_SIZE(ab8505_gpadc_resources), .resources = ab8505_gpadc_resources,