From patchwork Tue Jan 25 22:01:02 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Lambert X-Patchwork-Id: 507131 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0PM1UA4010918 for ; Tue, 25 Jan 2011 22:03:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753840Ab1AYWBk (ORCPT ); Tue, 25 Jan 2011 17:01:40 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:55424 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753779Ab1AYWBj (ORCPT ); Tue, 25 Jan 2011 17:01:39 -0500 Received: from dlep36.itg.ti.com ([157.170.170.91]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id p0PM1UpF017742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 25 Jan 2011 16:01:30 -0600 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id p0PM1U5T017695; Tue, 25 Jan 2011 16:01:30 -0600 (CST) Received: from localhost (dta0193948-ubuntu.am.dhcp.ti.com [128.247.75.14]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id p0PM1Tf00833; Tue, 25 Jan 2011 16:01:29 -0600 (CST) From: David Lambert To: alsa-devel@alsa-project.org, linux-omap@vger.kernel.org Cc: Tony Lindgren , Paul Walmsley , Mark Brown , Liam Girdwood , David Lambert Subject: [PATCH v3 4/4] OMAP4: DMIC: Add DMIC codec platform devices Date: Tue, 25 Jan 2011 16:01:02 -0600 Message-Id: <1295992862-6154-5-git-send-email-dlambert@ti.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1295992862-6154-1-git-send-email-dlambert@ti.com> References: <1295992862-6154-1-git-send-email-dlambert@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 25 Jan 2011 22:03:03 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index df5a425..e7745cf 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c @@ -505,6 +505,16 @@ static void __init omap_sfh7741prox_init(void) } } +static struct platform_device codec_dmic0 = { + .name = "dmic-codec", + .id = -1, +}; + +static inline void omap_dmic_init(void) +{ + platform_device_register(&codec_dmic0); +} + static void __init omap_4430sdp_init(void) { int status; @@ -528,6 +538,7 @@ static void __init omap_4430sdp_init(void) spi_register_board_info(sdp4430_spi_board_info, ARRAY_SIZE(sdp4430_spi_board_info)); } + omap_dmic_init(); } static void __init omap_4430sdp_map_io(void)