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: 14917 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 51D5E23E01 for ; Fri, 15 Feb 2013 12:58:28 +0000 (UTC) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by fiordland.canonical.com (Postfix) with ESMTP id 0352FA18742 for ; Fri, 15 Feb 2013 12:58:27 +0000 (UTC) Received: by mail-vc0-f172.google.com with SMTP id l6so2197286vcl.3 for ; Fri, 15 Feb 2013 04:58:27 -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=Vf4z6/tfDjYi06MPjCec5lyIomVf2J8KvUfgw2vJARM=; b=MlGpmdHjMU9NI5GtMLqLodHxgwg8zC70ng5/QVZ1DHQ2ejSK0RXgIvagxrucSY7uj2 HkkgxYfdvzWsXSeTc8vVbKdmvbord0QQDQwjntlRa3pu0Na6/yub45dhSJoqwu+sloKU XrLvD787Y3KW94mIBKdIK+bHSdmeRe50mck5RueOzR3VpCKrhvKkTGZfScOoCxX6uEf0 iaTfzfkUkrze5VSYhZ9ceNUzmV8mMSMpCkpDZNcqtpDmpxiVuvQwoYE4cxhmXgEiWtF0 4nb5S0uX21Sn9ia9ModarrDU8+8ABjmnfWAeFjgznXRhIs0WLD1Bz8x/QVsno6mZWA62 g0kg== X-Received: by 10.52.33.167 with SMTP id s7mr2546687vdi.52.1360933107387; Fri, 15 Feb 2013 04:58:27 -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.221.4.5 with SMTP id oa5csp11437vcb; Fri, 15 Feb 2013 04:58:26 -0800 (PST) X-Received: by 10.180.73.238 with SMTP id o14mr2496756wiv.32.1360933106096; Fri, 15 Feb 2013 04:58:26 -0800 (PST) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx.google.com with ESMTPS id n1si1042213wiw.105.2013.02.15.04.58.25 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Feb 2013 04:58:26 -0800 (PST) Received-SPF: neutral (google.com: 74.125.82.50 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.50 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-wg0-f50.google.com with SMTP id es5so2794453wgb.5 for ; Fri, 15 Feb 2013 04:58:25 -0800 (PST) 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 Cc: arnd@arndb.de, linus.walleij@stericsson.com, Ulf Hansson , Lee Jones 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: ALoCoQkvwQrMHg6RcAXC1uC1zfqdm2f+/MkJcTPZoAg6GqXTviXiTq169E4i1ocFAyh4tlXGdWBh 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,