From patchwork Fri Jul 27 12:45:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1249571 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 A063FDFFBF for ; Fri, 27 Jul 2012 13:09:06 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SukDH-0005gj-M9; Fri, 27 Jul 2012 13:04:15 +0000 Received: from mail-we0-f177.google.com ([74.125.82.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Sujvz-0001wz-Ml for linux-arm-kernel@lists.infradead.org; Fri, 27 Jul 2012 12:46:28 +0000 Received: by mail-we0-f177.google.com with SMTP id r3so2254266wey.36 for ; Fri, 27 Jul 2012 05:46:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=Z6lhVw8vN+sZ7e7AvVMyqY9W5+VuepujFCeoqw8VaBs=; b=GVm0z86/vE8EbNS3ZE2ldsXnbL/FLfJf9duKi6SC7Dk7DQRq5337eK/Z3X3qDyAmaU GHIRBbfHakI/NXeSyEUug5WiRyp95XBDK/qlk0KofGSwF13BFRwHvh6MblSLCEKbHsMv 2L9QFnhcrX2H0oVp7vgBSfIzkBEWjFCdaczBQnRcWrKPEIXqXmkjHHItdrDL4eY5EHtl WFrlAE/FlR+UkiiUXwjlvyMlqPQ/Yv7E5btfi+A9NCqKgjYMt1WUJDkuf15SbEv7RCYG Yt0VhOTptzcP2ACjXXce7YA2+hX6e1ZnCqhadFYFsoNYgK4UWWJToftV/wAufy14j8Bg owRg== Received: by 10.180.14.8 with SMTP id l8mr5980187wic.6.1343393182283; Fri, 27 Jul 2012 05:46:22 -0700 (PDT) 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 dc3sm12342025wib.7.2012.07.27.05.46.20 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 27 Jul 2012 05:46:21 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/18] ARM: ux500: Fork MSP platform registration for step-by-step DT enablement Date: Fri, 27 Jul 2012 13:45:53 +0100 Message-Id: <1343393162-11938-10-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1343393162-11938-1-git-send-email-lee.jones@linaro.org> References: <1343393162-11938-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQl+Pj6zxP19Du8h2pBY4I0AfIpg4WLUbNr/38rs4qFK2hweQ+ZwY09ezff1jfvRftE6wqIs X-Spam-Note: CRM114 invocation failed X-Spam-Note: SpamAssassin invocation failed Cc: ola.o.lilja@stericsson.com, alsa-devel@alsa-project.org, linus.walleij@stericsson.com, arnd@arndb.de, broonie@opensource.wolfsonmicro.com, olalilja@yahoo.se, STEricsson_nomadik_linux@list.st.com, Lee Jones , lrg@ti.com 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 We've done this before and it worked well last time. Here we're duplicating a complex registration function to ease the process of enabling it for Device Tree. As there are quite a few steps taken during the registration process, it makes sense to break them up into more manageable chunks. This patch will aid us. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500-msp.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/mach-ux500/board-mop500-msp.c b/arch/arm/mach-ux500/board-mop500-msp.c index 719db15..ec5857b 100644 --- a/arch/arm/mach-ux500/board-mop500-msp.c +++ b/arch/arm/mach-ux500/board-mop500-msp.c @@ -174,6 +174,26 @@ static struct msp_i2s_platform_data msp3_platform_data = { .use_pinctrl = true, }; +/* Due for removal once the MSP driver has been fully DT:ed. */ +void mop500_of_msp_init(struct device *parent) +{ + pr_info("%s: Register platform-device 'snd-soc-u8500'.\n", __func__); + platform_device_register(&snd_soc_mop500); + + pr_info("Initialize MSP I2S-devices.\n"); + db8500_add_msp_i2s(parent, 0, U8500_MSP0_BASE, IRQ_DB8500_MSP0, + &msp0_platform_data); + db8500_add_msp_i2s(parent, 1, U8500_MSP1_BASE, IRQ_DB8500_MSP1, + &msp1_platform_data); + db8500_add_msp_i2s(parent, 2, U8500_MSP2_BASE, IRQ_DB8500_MSP2, + &msp2_platform_data); + db8500_add_msp_i2s(parent, 3, U8500_MSP3_BASE, IRQ_DB8500_MSP1, + &msp3_platform_data); + + pr_info("%s: Register platform-device 'ux500-pcm'\n", __func__); + platform_device_register(&ux500_pcm); +} + void mop500_msp_init(struct device *parent) { pr_info("%s: Register platform-device 'snd-soc-u8500'.\n", __func__);