From patchwork Wed Aug 22 06:44:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 10852 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 5D9BD23F46 for ; Wed, 22 Aug 2012 06:39:27 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 6B46DA18D73 for ; Wed, 22 Aug 2012 06:39:16 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id j38so558687iad.11 for ; Tue, 21 Aug 2012 23:39:26 -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:x-auditid :from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-brightmail-tracker:x-tm-as-mml:x-gm-message-state; bh=c6hrDQpBztYHtSnYQIgFT7htoqF2P+seKRktuYT1mTY=; b=fyCMAzSiXNIeN2gB5q6Fw4jbYOkiDsql6sALJvK3+ZA/dntVjviTTlY2z82aPNxZZY 9r/NMjtA3JxpwVfBftPas6daOhmd8SChrsh/okwoFei0X6EQ6OWoluh8qoOiDFsbcHYy toFYWE6v9dUeBMJcCP8c+bjoxCYks2zlfyAMDgofnizLgm30NbHv4ZeyG9g7VOZtIu/P g3DdprKS4eVGEaUcnub6Q3fcKNupHktjGDzrBilI05kgYRX+JOo2omWOdTjH/T8VNsk5 W3anHeROuK1+cKfaSw8S3BSa2qHASIuvOG257z7yAUrbXKFUAgmlkHuNmjc41ijriu0K a4nA== Received: by 10.50.217.227 with SMTP id pb3mr1031591igc.28.1345617566864; Tue, 21 Aug 2012 23:39:26 -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.184.232 with SMTP id ex8csp185548igc; Tue, 21 Aug 2012 23:39:26 -0700 (PDT) Received: by 10.68.218.101 with SMTP id pf5mr49769707pbc.60.1345617566361; Tue, 21 Aug 2012 23:39:26 -0700 (PDT) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by mx.google.com with ESMTP id kc9si6542242pbc.325.2012.08.21.23.39.26; Tue, 21 Aug 2012 23:39:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.33 as permitted sender) client-ip=203.254.224.33; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.33 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm1.samsung.com (mailout3.samsung.com [203.254.224.33]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M9500GX993NXL40@mailout3.samsung.com>; Wed, 22 Aug 2012 15:39:25 +0900 (KST) X-AuditID: cbfee61a-b7fc66d0000043b7-e1-50347e9d10e9 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 4B.77.17335.D9E74305; Wed, 22 Aug 2012 15:39:25 +0900 (KST) Received: from rajeshwari-linux.sisodomain.com ([107.108.215.115]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0M95002KV954XC70@mmp1.samsung.com>; Wed, 22 Aug 2012 15:39:25 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, alim.akhtar@samsung.com, sjg@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org, vapier@gentoo.org, amdyer@gmail.com Subject: [PATCH 5/9 V2] EXYNOS: Add parameters required by I2S Date: Wed, 22 Aug 2012 12:14:21 +0530 Message-id: <1345617865-14199-6-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1345617865-14199-1-git-send-email-rajeshwari.s@samsung.com> References: <1345617865-14199-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOJMWRmVeSWpSXmKPExsVy+t9jAd25dSYBBkfmCFo8XH+TxWLK4S8s Dkwed67tYQtgjOKySUnNySxLLdK3S+DKmPL4HEvBYf6KXcc3MzYwnuXpYuTkkBAwkWjbfJcN whaTuHBvPZDNxSEksIhR4tmfPSwgCSGBiUwSV86bgdhsAkYSW09OYwSxRQQkJH71XwWzmQXm MEqceCkCYgsL2Eks620Gi7MIqEr075sJtoBXwEPiw+wLzBDLFCSOTf3KCmJzCnhKfH4+hwli l4fE4x9nmCcw8i5gZFjFKJpakFxQnJSea6hXnJhbXJqXrpecn7uJEez9Z1I7GFc2WBxiFOBg VOLh9UgwCRBiTSwrrsw9xCjBwawkwnu9FijEm5JYWZValB9fVJqTWnyIUZqDRUmcl7/PMEBI ID2xJDU7NbUgtQgmy8TBKdXAqDsxKfvB6dQtMTr/XO98ODy922GSQPmZQ2qrBf5GC9ZPOXvn 2t5DWtotfsdCvKrZ5xT51WW8mH4k5Hgf+wFhXT9lE1OGqgp2saNGq5bfLJh5SuHypdYKOQ2h N/Y3fHeXvFo837CsdmsZQ+rr7Aw7th8CwmeLmKUaWJrCdRJ/Cy+OfrtLo2KlEktxRqKhFnNR cSIA8353l/oBAAA= X-TM-AS-MML: No X-Gm-Message-State: ALoCoQnulEnjAXEt6qxlabZkI3Jv62ibSDo/heMnmKKzEuO+BFTcFyTVdU9PBGWjec4wVIYClj1I This patch adds the audio parameters required by the I2S to play the predefined audio data. Signed-off-by: Rajeshwari Shinde Acked-by: Simon Glass --- Changes in V2: - None arch/arm/include/asm/arch-exynos/sound.h | 44 ++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) create mode 100644 arch/arm/include/asm/arch-exynos/sound.h diff --git a/arch/arm/include/asm/arch-exynos/sound.h b/arch/arm/include/asm/arch-exynos/sound.h new file mode 100644 index 0000000..d25d4f2 --- /dev/null +++ b/arch/arm/include/asm/arch-exynos/sound.h @@ -0,0 +1,44 @@ +/* + * Copyright (C) 2012 Samsung Electronics + * Rajeshwari Shinde + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + + +#ifndef __SOUND_ARCH_H__ +#define __SOUND_ARCH_H__ + +/* I2S values */ +#define I2S_PLL_CLK 192000000 +#define I2S_SAMPLING_RATE 48000 +#define I2S_BITS_PER_SAMPLE 16 +#define I2S_CHANNELS 2 +#define I2S_RFS 256 +#define I2S_BFS 32 + +/* I2C values */ +#define AUDIO_I2C_BUS 1 +#define AUDIO_I2C_REG 0x34 + +/* Audio Codec */ +#define AUDIO_CODEC "wm8994" + +#define AUDIO_COMPAT 1 +#endif