From patchwork Fri Oct 26 05:49:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 12533 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 BBCB223E01 for ; Fri, 26 Oct 2012 05:48:43 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 504F7A1917A for ; Fri, 26 Oct 2012 05:48:43 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so3197428iej.11 for ; Thu, 25 Oct 2012 22:48:42 -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 :dlp-filter:x-mtr:x-brightmail-tracker:x-brightmail-tracker :x-cfilter-loop:x-gm-message-state; bh=Imm3uBJmF4rjsBsZzR7vG4FqNoRHUxvESfPV9r40ENI=; b=nSEc/PEtsM2DD/kf3rFVXFlA8Gk6MKIiBZJbBK9fan0ju91/A2BrmJBwBvz570gQU1 42VdA8cWY2mgnwAtYWUs8JuUpbixW5fcnis5mIMg7IY2zg7Kl1Mq+S/m2Nt6RJBuET3o sCNcvmvZ9HifF6te33wrqhvT8XCsS2tGX8ZCs20EtSdeo5X/O0dn7Noxg5KvGG43Q+v7 EWdzJvUDINQe08D8zcUcYjcv7LK93GmWuwAuoyY1cmnj9leuVqn19UOGhUllqOhpUjms bflBJ8Tvb491euHY5AP+nPy6LoUI/RL77DQmREfQQbEWVVtfw8eKefreWZ2EtX7mSW66 YNWQ== Received: by 10.50.168.37 with SMTP id zt5mr979279igb.57.1351230522736; Thu, 25 Oct 2012 22:48:42 -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.67.148 with SMTP id n20csp191477igt; Thu, 25 Oct 2012 22:48:42 -0700 (PDT) Received: by 10.68.241.133 with SMTP id wi5mr66413142pbc.48.1351230522038; Thu, 25 Oct 2012 22:48:42 -0700 (PDT) Received: from mailout3.samsung.com (mailout3.samsung.com. [203.254.224.33]) by mx.google.com with ESMTP id mo5si1158331pbc.208.2012.10.25.22.48.41; Thu, 25 Oct 2012 22:48:42 -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 epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MCH00M97K4X1990@mailout3.samsung.com>; Fri, 26 Oct 2012 14:48:40 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.125]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 6A.96.12699.8342A805; Fri, 26 Oct 2012 14:48:40 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-86-508a2438ed9d Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id D8.96.12699.8342A805; Fri, 26 Oct 2012 14:48:40 +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 <0MCH0021JJY1HB30@mmp1.samsung.com>; Fri, 26 Oct 2012 14:48:40 +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 V4] EXYNOS: Add parameters required by I2S Date: Fri, 26 Oct 2012 11:19:26 +0530 Message-id: <1351230570-21597-6-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1351230570-21597-1-git-send-email-rajeshwari.s@samsung.com> References: <1351230570-21597-1-git-send-email-rajeshwari.s@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrALMWRmVeSWpSXmKPExsWyRsSkVtdCpSvAYFKflcXD9TdZLKYc/sLi wORx59oetgDGKC6blNSczLLUIn27BK6Mv0u+shTsFqh4sfUCWwPjWt4uRk4OCQETiRPHNzNC 2GISF+6tZ+ti5OIQEljKKPF+42pGmKJrP1ezg9hCAosYJbYf0IUomsgkce33HRaQBJuAkcTW k9PAGkQEJCR+9V8Fsjk4mAVKJaZMzAMJCwvYSXy89oUJxGYRUJXYsf4/mM0r4CHRtn8RO8Qu BYljU7+ygticAp4Sl/78ZILY6yGx+NxeqF4BiW+TD7GAjJcQkJXYdIAZ5BwJgdtsEh2dV5gg 5khKHFxxg2UCo/ACRoZVjKKpBckFxUnpuUZ6xYm5xaV56XrJ+bmbGIHBePrfM+kdjKsaLA4x CnAwKvHwbkjrDBBiTSwrrsw9xCjBwawkwrt7KlCINyWxsiq1KD++qDQntfgQow/QJROZpUST 84GRklcSb2hsYm5qbGppZGRmaopDWEmct9kjJUBIID2xJDU7NbUgtQhmHBMHp1QDY90ho4Kn Kj/Kz+46rKXUuKzQVVTxe/7ikH1F0V1Xu9V/9nnd/bFOqp9DcFPl0rMpvMyvzm77pKdvoP7i Tc/amwV/dvEp/oxb4nlTLmBlbeYfuVO2QVO7nlj3K2ffkgvwVl+kfGT5qV6TRwvC1WaJs9y+ 8ZRXxPcOQ/IL9+f8bxcYv02a36xfqsRSnJFoqMVcVJwIAI611VNzAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupnkeLIzCtJLcpLzFFi42I5/e+xgK6FSleAwYWz+hYP199ksZhy+AuL A5PHnWt72AIYoxoYbTJSE1NSixRS85LzUzLz0m2VvIPjneNNzQwMdQ0tLcyVFPISc1NtlVx8 AnTdMnOAZisplCXmlAKFAhKLi5X07TBNCA1x07WAaYzQ9Q0JgusxMkADCWsYM/4u+cpSsFug 4sXWC2wNjGt5uxg5OSQETCSu/VzNDmGLSVy4t54NxBYSWMQosf2AbhcjF5A9kUni2u87LCAJ NgEjia0npzGC2CICEhK/+q8C2RwczAKlElMm5oGEhQXsJD5e+8IEYrMIqErsWP8fzOYV8JBo 278IapeCxLGpX1lBbE4BT4lLf34yQez1kFh8bi/TBEbeBYwMqxhFUwuSC4qT0nON9IoTc4tL 89L1kvNzNzGCQ/2Z9A7GVQ0WhxgFOBiVeHg3pHUGCLEmlhVX5h5ilOBgVhLh3T0VKMSbklhZ lVqUH19UmpNafIjRB+iqicxSosn5wDjMK4k3NDYxNzU2tTSxMDGzxCGsJM7b7JESICSQnliS mp2aWpBaBDOOiYNTqoGRP1Hm0R2TT3eDUnVU5Suq+w6F71ruH8/1+vPkpZM21JsqehYXzz+3 /M2XQwv7l19kXiZ8ri7GodfI/MNLq0V2Ux6qmT1KXXPwp9XpdWtTSw7q3zNePadHaFeVAff9 1iW9u19pm851UO/2WvVvf69CFhvjvQ1hyjJftFXUmra6O+QeTTzpNsdMiaU4I9FQi7moOBEA s2G55KICAAA= X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQkyMU5QIQgNy7o731ZmGD+CfWifCShTZOT3a7GFARu1aGBR33zeF21RCFmsYXmXC0TSi+xC 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 Changes in V3: - Changed codec I2C address to 0x1a. Changes in V4: - 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..d1bd2f6 --- /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 0x1a + +/* Audio Codec */ +#define AUDIO_CODEC "wm8994" + +#define AUDIO_COMPAT 1 +#endif