From patchwork Tue Feb 11 17:10:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pawel Moll X-Patchwork-Id: 24482 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f200.google.com (mail-ob0-f200.google.com [209.85.214.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D9D37203F3 for ; Tue, 11 Feb 2014 17:12:59 +0000 (UTC) Received: by mail-ob0-f200.google.com with SMTP id wo20sf31789552obc.7 for ; Tue, 11 Feb 2014 09:12:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=DvWb1Ccz/5mLgXo5DtDa4zpaVGc/NnrKoRUBXMOZu44=; b=FArKqc7k6T+wmIajbkRnpDceM3cWsy0BXGn2M92KqH5Y3XxGAgQiw7oUCpkI0nzAWe neLQOHDPK7Sb9zcXujz9yVPgpGauEe6c/nTDerFkQAmJ8zX1PJ1rB0p/rChWTxUQf1AQ mvykbXaGSboLwVr59PAJuktmMFe6F8UP7nWZPIM4k2tWxcHb8VPFEbx58dO0YE8sn8fM y2xyYQCyaBjcehjPmI8FNFX2mGTs0MeTo9hUnEtwmyFMHTMtoul9vaTxWLohv/L5Dkw0 nGtkotQvC+WwCzoCSqEua1qCxbB54+TBPKtQmC+iRldyJXcCRuuSk7P8X9l1Em4CW4+b 7XWw== X-Gm-Message-State: ALoCoQkV7F+1h4J6QW8npvpCdFBLCyBuQUVR8VkIu6ucJLtRr1hjtmnYg+mnCv6PVO6IUQMekUZJ X-Received: by 10.43.4.4 with SMTP id oa4mr192102icb.2.1392138778705; Tue, 11 Feb 2014 09:12:58 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.92.65 with SMTP id a59ls2502802qge.72.gmail; Tue, 11 Feb 2014 09:12:58 -0800 (PST) X-Received: by 10.221.55.199 with SMTP id vz7mr212043vcb.40.1392138778541; Tue, 11 Feb 2014 09:12:58 -0800 (PST) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by mx.google.com with ESMTPS id od9si6140282vcb.65.2014.02.11.09.12.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Feb 2014 09:12:58 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.182; Received: by mail-ve0-f182.google.com with SMTP id jy13so6523131veb.27 for ; Tue, 11 Feb 2014 09:12:58 -0800 (PST) X-Received: by 10.52.25.135 with SMTP id c7mr160473vdg.62.1392138778442; Tue, 11 Feb 2014 09:12:58 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp262358vcz; Tue, 11 Feb 2014 09:12:57 -0800 (PST) X-Received: by 10.66.221.199 with SMTP id qg7mr34118144pac.88.1392138776421; Tue, 11 Feb 2014 09:12:56 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i8si19644864pav.132.2014.02.11.09.12.54; Tue, 11 Feb 2014 09:12:54 -0800 (PST) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752831AbaBKRMq (ORCPT + 27 others); Tue, 11 Feb 2014 12:12:46 -0500 Received: from fw-tnat.austin.arm.com ([217.140.110.23]:25558 "EHLO collaborate-mta1.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752226AbaBKRKx (ORCPT ); Tue, 11 Feb 2014 12:10:53 -0500 Received: from hornet.Cambridge.Arm.com (hornet.cambridge.arm.com [10.2.201.45]) by collaborate-mta1.arm.com (Postfix) with ESMTP id B1A611401C6; Tue, 11 Feb 2014 11:10:52 -0600 (CST) From: Pawel Moll To: arm@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Pawel Moll , Samuel Ortiz , Lee Jones Subject: [PATCH 08/12] mfd: vexpress-sysreg: Add syscon labels as platform data Date: Tue, 11 Feb 2014 17:10:32 +0000 Message-Id: <1392138636-29240-9-git-send-email-pawel.moll@arm.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1392138636-29240-1-git-send-email-pawel.moll@arm.com> References: <1392138636-29240-1-git-send-email-pawel.moll@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: pawel.moll@arm.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.182 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch adds label names for syscon registers as platform data for the relevant MFD cells. Cc: Samuel Ortiz Cc: Lee Jones Signed-off-by: Pawel Moll --- drivers/mfd/vexpress-sysreg.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/mfd/vexpress-sysreg.c b/drivers/mfd/vexpress-sysreg.c index ece5ac8..57c21a0 100644 --- a/drivers/mfd/vexpress-sysreg.c +++ b/drivers/mfd/vexpress-sysreg.c @@ -132,6 +132,8 @@ void __init vexpress_sysreg_early_init(void __iomem *base) /* The sysreg block is just a random collection of various functions... */ +static const char vexpress_sysreg_sys_id_pdata[] = "sys_id"; + static struct bgpio_pdata vexpress_sysreg_sys_led_pdata = { .label = "sys_led", .base = -1, @@ -150,6 +152,10 @@ static struct bgpio_pdata vexpress_sysreg_sys_flash_pdata = { .ngpio = 1, }; +static const char vexpress_sysreg_sys_misc_pdata[] = "sys_misc"; + +static const char vexpress_sysreg_sys_procid_pdata[] = "sys_procid"; + static struct mfd_cell vexpress_sysreg_cells[] = { { .name = "syscon", @@ -157,6 +163,8 @@ static struct mfd_cell vexpress_sysreg_cells[] = { .resources = (struct resource []) { DEFINE_RES_MEM(SYS_ID, 0x4), }, + .platform_data = &vexpress_sysreg_sys_id_pdata, + .pdata_size = sizeof(vexpress_sysreg_sys_id_pdata), }, { .name = "basic-mmio-gpio", .of_compatible = "arm,vexpress-sysreg,sys_led", @@ -190,12 +198,16 @@ static struct mfd_cell vexpress_sysreg_cells[] = { .resources = (struct resource []) { DEFINE_RES_MEM(SYS_MISC, 0x4), }, + .platform_data = &vexpress_sysreg_sys_misc_pdata, + .pdata_size = sizeof(vexpress_sysreg_sys_misc_pdata), }, { .name = "syscon", .num_resources = 1, .resources = (struct resource []) { DEFINE_RES_MEM(SYS_PROCID0, 0x8), }, + .platform_data = &vexpress_sysreg_sys_procid_pdata, + .pdata_size = sizeof(vexpress_sysreg_sys_procid_pdata), }, { .name = "vexpress-syscfg", .num_resources = 1,