From patchwork Thu Aug 4 13:38:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sylwester Nawrocki/Kernel \\(PLT\\) /SRPOL/Staff Engineer/Samsung Electronics" X-Patchwork-Id: 9263673 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C3CED6048F for ; Thu, 4 Aug 2016 13:41:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B670A28406 for ; Thu, 4 Aug 2016 13:41:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB4B228409; Thu, 4 Aug 2016 13:41:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1F32228406 for ; Thu, 4 Aug 2016 13:41:49 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bVIst-0006hV-2G; Thu, 04 Aug 2016 13:40:27 +0000 Received: from mailout3.samsung.com ([203.254.224.33]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bVIsB-0005ak-6l for linux-arm-kernel@lists.infradead.org; Thu, 04 Aug 2016 13:39:44 +0000 Received: from epcpsbgm1new.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OBE013KD0GKDQE0@mailout3.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 04 Aug 2016 22:39:23 +0900 (KST) X-AuditID: cbfee61a-f78ff6d000001462-75-57a3458a3de3 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id 73.E8.05218.A8543A75; Thu, 4 Aug 2016 22:39:23 +0900 (KST) Received: from AMDC1344.digital.local ([106.116.147.32]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OBE000Y20L4R530@mmp1.samsung.com>; Thu, 04 Aug 2016 22:39:22 +0900 (KST) From: Sylwester Nawrocki To: broonie@kernel.org Subject: [PATCH 2/8] ARM: S3C24XX: Specify audio codec platform_data for mini2440 board Date: Thu, 04 Aug 2016 15:38:42 +0200 Message-id: <1470317928-25365-3-git-send-email-s.nawrocki@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1470317928-25365-1-git-send-email-s.nawrocki@samsung.com> References: <1470317928-25365-1-git-send-email-s.nawrocki@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprCLMWRmVeSWpSXmKPExsVy+t9jAd1u18XhBndSLa5cPMRksXHGelaL qQ+fsFmcP7+B3WLT42usFjPO72OyOPymndWB3WPD5yY2j02rOtk8Ni+p9+jbsorR4/MmuQDW KC6blNSczLLUIn27BK6MtVd3MhYs56r4taeJqYFxA0cXIyeHhICJxIwn/YwQtpjEhXvr2boY uTiEBJYySty6f4IJwvnFKLFr/g5mkCo2AUOJ3qN9YB0iQB2353SCxZkFjjBK7F3LDmILC0RK TFm9HayGRUBVomnBbFYQm1fATWL/zjdQ2+QkTh6bDBTn4OAUcJd4scUDJCwEVPL11THWCYy8 CxgZVjFKpBYkFxQnpeca5qWW6xUn5haX5qXrJefnbmIEh9UzqR2MB3e5H2IU4GBU4uG9YLoo XIg1say4MvcQowQHs5II72+nxeFCvCmJlVWpRfnxRaU5qcWHGKU5WJTEeR//XxcmJJCeWJKa nZpakFoEk2Xi4JRqYLQ87Zu2o0VsIZ/J7HSn9C6BRYcOOVQcLf5ef07zZmPx3eWaL5scllTH 1G+505rdqvns0ZTODxa6InPTtX+/Opa/cf0XqUSfWIbAo78XZbb9XKbMzbrHmc/psHbqqp3O HF6VnZev100SexX0lEXSXU5xk3n16/WbH9ZyhE1zqYx9VDXndLHeIiWW4oxEQy3mouJEAD+e 5MEnAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160804_063943_467325_9ECC4FA8 X-CRM114-Status: GOOD ( 10.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alsa-devel@alsa-project.org, linux-samsung-soc@vger.kernel.org, b.zolnierkie@samsung.com, krzk@kernel.org, Sylwester Nawrocki , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The L3 bus GPIOs are specified in the board file rather than through the sound card's device platform_data. This allows to ensure the codec driver doesn't get probed with uninitialized platform_data field of its corresponding platform device. Signed-off-by: Sylwester Nawrocki --- arch/arm/mach-s3c24xx/mach-mini2440.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm/mach-s3c24xx/mach-mini2440.c b/arch/arm/mach-s3c24xx/mach-mini2440.c index a852168..13999c1 100644 --- a/arch/arm/mach-s3c24xx/mach-mini2440.c +++ b/arch/arm/mach-s3c24xx/mach-mini2440.c @@ -497,9 +497,28 @@ static struct i2c_board_info mini2440_i2c_devs[] __initdata = { }, }; +static struct uda134x_platform_data s3c24xx_uda134x = { + .l3 = { + .gpio_clk = S3C2410_GPB(4), + .gpio_data = S3C2410_GPB(3), + .gpio_mode = S3C2410_GPB(2), + .use_gpios = 1, + .data_hold = 1, + .data_setup = 1, + .clock_high = 1, + .mode_hold = 1, + .mode = 1, + .mode_setup = 1, + }, + .model = UDA134X_UDA1341, +}; + static struct platform_device uda1340_codec = { .name = "uda134x-codec", .id = -1, + .dev = { + .platform_data = &s3c24xx_uda134x, + }, }; static struct platform_device *mini2440_devices[] __initdata = {