From patchwork Tue Jul 31 13:31:31 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 10404 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 3DF4F23E56 for ; Tue, 31 Jul 2012 13:32:06 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 0EC1FA18880 for ; Tue, 31 Jul 2012 13:32:05 +0000 (UTC) Received: by mail-gg0-f180.google.com with SMTP id f1so5919110ggn.11 for ; Tue, 31 Jul 2012 06:32:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=gt3+CcpAAngTtaTzLhrylrsZJA6XlOOXzPpYuNEBkX4=; b=JRF++EbLiaSyzXRLF2Vbu1ImnzMYFh81G/qoiPlkw2x9U6SQ9J2OP4TIM8IQpFidCg R15Pd2Hy6dRXRZKhCA4WxXHxrhNzgPuDOaeFcwAPJhx8wTzFNtN2/0IsUtvygOosNViP oodYvi5qeNR59WX+ou3FEXqURg/OMnllwwSJvcww+PK3WpFVjeByT0TOBrqT0DhczI4y 3Ay4Wb1fzfNDdedCEecnfiErR2+jEqeE8QHsxMT2HsjevLpkC086bi5hWXl+fpniEWFU Ohr7P6v9+pHJg66rHtUIJf+mWjiWBNqzrFggmMw754sYfyB8vilayZkgqyN6o8fO1G+V DPGw== Received: by 10.50.47.161 with SMTP id e1mr2030198ign.11.1343741525583; Tue, 31 Jul 2012 06:32:05 -0700 (PDT) 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.50.87.40 with SMTP id u8csp143111igz; Tue, 31 Jul 2012 06:32:04 -0700 (PDT) Received: by 10.216.23.202 with SMTP id v52mr7410812wev.32.1343741519668; Tue, 31 Jul 2012 06:31:59 -0700 (PDT) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id g6si88867wee.105.2012.07.31.06.31.59 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 Jul 2012 06:31:59 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.178 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-we0-f178.google.com with SMTP id u7so5226281wey.37 for ; Tue, 31 Jul 2012 06:31:59 -0700 (PDT) Received: by 10.180.90.195 with SMTP id by3mr1381370wib.7.1343741518922; Tue, 31 Jul 2012 06:31:58 -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 ex20sm263310wid.7.2012.07.31.06.31.56 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 Jul 2012 06:31:58 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: STEricsson_nomadik_linux@list.st.com, linus.walleij@stericsson.com, arnd@arndb.de, olalilja@yahoo.se, ola.o.lilja@stericsson.com, alsa-devel@alsa-project.org, broonie@opensource.wolfsonmicro.com, lrg@ti.com, Lee Jones Subject: [PATCH 5/6] ARM: ux500: Ensure probing of Audio devices when Device Tree is enabled Date: Tue, 31 Jul 2012 14:31:31 +0100 Message-Id: <1343741493-17671-11-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1343741493-17671-1-git-send-email-lee.jones@linaro.org> References: <1343741493-17671-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQlklP/ZONKmm+mJvNakn0XEVy2UCIocjvZAG+tSeIH46feYNYKEuFn+vFp/5buccMffKV/C Previous attempts to add platform probing of the Audio related devices only call from non-DT initialisation functions. This patch extends that functionality to the Device Tree related ones too. Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index e641003..87a5cd7 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c @@ -794,6 +794,7 @@ static void __init u8500_init_machine(void) ARRAY_SIZE(mop500_platform_devs)); mop500_sdi_init(parent); + mop500_msp_init(parent); i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices); i2c_register_board_info(0, mop500_i2c0_devices, i2c0_devs); i2c_register_board_info(2, mop500_i2c2_devices, @@ -801,6 +802,8 @@ static void __init u8500_init_machine(void) mop500_uib_init(); + } else if (of_machine_is_compatible("calaosystems,snowball-a9500")) { + mop500_of_msp_init(parent); } else if (of_machine_is_compatible("st-ericsson,hrefv60+")) { /* * The HREFv60 board removed a GPIO expander and routed @@ -812,6 +815,7 @@ static void __init u8500_init_machine(void) ARRAY_SIZE(mop500_platform_devs)); hrefv60_sdi_init(parent); + mop500_msp_init(parent); i2c0_devs = ARRAY_SIZE(mop500_i2c0_devices); i2c0_devs -= NUM_PRE_V60_I2C0_DEVICES;