From patchwork Tue Aug 14 05:45:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 10719 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 454DB23E02 for ; Tue, 14 Aug 2012 05:41:27 +0000 (UTC) Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by fiordland.canonical.com (Postfix) with ESMTP id E6042A18960 for ; Tue, 14 Aug 2012 05:41:26 +0000 (UTC) Received: by mail-ob0-f180.google.com with SMTP id eq6so12503obc.11 for ; Mon, 13 Aug 2012 22:41: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=syg6AqzLP9gI6VqZyjqlhfUdQDum0r8NPVtAO79q+uY=; b=jIzu0lVFYnruEnNF/vj/ndV6Amd9YeOZ2/RPVN6fi9B/5++2RWWnb3h1+PkJIx8Vhg IHQoU6q2fEqTkRfYL7jGKsyJzOZDsRjwI8VgFqQNWMuDzsX8rM3gsamqS48BzLVtqlbu JM0CaHyD7RlqOLhD5JbM1tYyi+OfvTCTWVBFMFFOBUDTjddiPN5ly10CwiuBMEB3Rnog bcGhYkXAvmJmnUO7Z0x2WW3vPQcvpoTeH64RB2RvjcEtXimu1Ky1rpFEsPXSOZgeEVJs q6I59XxSLE0MCoLOqHqMGUHCAloPnfaTXqEGKa22RkAG7HDHuMofo9cxhJzY4NYiOw0X EyXw== Received: by 10.50.159.135 with SMTP id xc7mr9679680igb.9.1344922886544; Mon, 13 Aug 2012 22:41: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.200 with SMTP id ew8csp214473igc; Mon, 13 Aug 2012 22:41:26 -0700 (PDT) Received: by 10.68.217.38 with SMTP id ov6mr9293523pbc.94.1344922885952; Mon, 13 Aug 2012 22:41:25 -0700 (PDT) Received: from mailout1.samsung.com (mailout1.samsung.com. [203.254.224.24]) by mx.google.com with ESMTP id qp4si2465781pbc.98.2012.08.13.22.41.25; Mon, 13 Aug 2012 22:41:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.24 as permitted sender) client-ip=203.254.224.24; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.24 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm1.samsung.com (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0M8Q00KAND2KXGO0@mailout1.samsung.com>; Tue, 14 Aug 2012 14:41:24 +0900 (KST) X-AuditID: cbfee61a-b7fc66d0000043b7-d5-5029e504d9d7 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 66.C6.17335.405E9205; Tue, 14 Aug 2012 14:41:24 +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 <0M8Q00064D2QKU20@mmp1.samsung.com>; Tue, 14 Aug 2012 14:41:24 +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 Subject: [PATCH 5/9] EXYNOS: Add parameters required by I2S Date: Tue, 14 Aug 2012 11:15:28 +0530 Message-id: <1344923132-31803-6-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1344923132-31803-1-git-send-email-rajeshwari.s@samsung.com> References: <1344923132-31803-1-git-send-email-rajeshwari.s@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrCJMWRmVeSWpSXmKPExsVy+t9jAV2Wp5oBBufnG1k8XH+TxWLK4S8s Dkwed67tYQtgjOKySUnNySxLLdK3S+DKmNtlU7Cav2LdoynsDYx7eLoYOTgkBEwkuj6WdTFy ApliEhfurWcDsYUEFjFKzF0n1MXIBWRPZJJ4cHA3O0iCTcBIYuvJaYwgtoiAhMSv/quMIHOY BUolpkzMAwkLC1hLfOv5xgpiswioSnRe38sEYvMKeEi8Wf2OCWKXgsSxqV/BajgFPCVuXV/G CLHXQ2L9uzOMExh5FzAyrGIUTS1ILihOSs811CtOzC0uzUvXS87P3cQI9vszqR2MKxssDjEK cDAq8fAqpGkGCLEmlhVX5h5ilOBgVhLhvd8DFOJNSaysSi3Kjy8qzUktPsQozcGiJM5r7P3V X0ggPbEkNTs1tSC1CCbLxMEp1cB43v7wurp5uxq9lnw+VHnPN/O1iN+m2P0KewKjG6//WM3S 9Kr2u3tC0uzGrzMmMUQtKl2msziL5XTthaRf3JZ3JbPM17K8nhYYkd64r5Qpycf9n0tPQj/H zPiMp4Y2tQkHA1m33lAzeuscu6drw5zJVZZ8+c5ujKkKV10U09c2nt934j4bR4sSS3FGoqEW c1FxIgBFgLdA9wEAAA== X-TM-AS-MML: No X-Gm-Message-State: ALoCoQlS/7qUaSnJU8KGvHFKPS0YnVs3tkPLtpFYCWRaAVbp3asYsUoijuB0v4N7TWSgvcAfU3E5 This patch adds the audio parameters required by the I2S to play the predefined audio data. Signed-off-by: Rajeshwari Shinde --- 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