From patchwork Tue Oct 23 06:57:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rajeshwari Shinde X-Patchwork-Id: 12423 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 E5D5A23EF8 for ; Tue, 23 Oct 2012 06:47:24 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 8026DA182D5 for ; Tue, 23 Oct 2012 06:47:24 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id f6so2635706iag.11 for ; Mon, 22 Oct 2012 23:47:24 -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=7RCjeRgnZI7q2xCyvjjU7Id50JVi4TbMxOPkDME/Dng=; b=bMYkhsy3L6K6WtRq/MBNPollHd8G+YNNCIoZ21UbpPl3pD1Tj4MD80xXYRrXks3JcB r2gFocArC24Celkz+vHxxtk0EGOldy7EKEPJ1LYKqbZgTwFlJjHauHWHkD/RlaTyW8dQ ftDz7e+FxSBBkUFS24m0UdR9HktG4WgBHhbYgNKp6f6ua+O66nKLqcO1zFNpYAipaZs0 trSyTBhCBju82ft3xNM71sDzGWDnhupci7T7BNFL2EnDT58ZlbVYo8ZwEo8ixYr02clF qLtj938qwYJGJfVz6Y4z1+hM6GFZRYE347kLVzBXjjIYAqsErcFEbOhxzqyLTSPv8/MJ E7vg== Received: by 10.50.168.37 with SMTP id zt5mr11678442igb.57.1350974843867; Mon, 22 Oct 2012 23:47:23 -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 n20csp372207igt; Mon, 22 Oct 2012 23:47:23 -0700 (PDT) Received: by 10.68.230.234 with SMTP id tb10mr37092763pbc.71.1350974843240; Mon, 22 Oct 2012 23:47:23 -0700 (PDT) Received: from mailout4.samsung.com (mailout4.samsung.com. [203.254.224.34]) by mx.google.com with ESMTP id o4si15997322paw.286.2012.10.22.23.47.22; Mon, 22 Oct 2012 23:47:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) client-ip=203.254.224.34; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of rajeshwari.s@samsung.com designates 203.254.224.34 as permitted sender) smtp.mail=rajeshwari.s@samsung.com Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MCC00L8G2UKAMT0@mailout4.samsung.com>; Tue, 23 Oct 2012 15:47:22 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.126]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 04.86.01231.A7D36805; Tue, 23 Oct 2012 15:47:22 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-b0-50863d7a06f0 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id A3.86.01231.97D36805; Tue, 23 Oct 2012 15:47:22 +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 <0MCC00CQ52Q0V720@mmp1.samsung.com>; Tue, 23 Oct 2012 15:47:21 +0900 (KST) From: Rajeshwari Shinde To: u-boot@lists.denx.de Cc: patches@linaro.org, sjg@chromium.org, mk7.kang@samsung.com, chander.kashyap@linaro.org Subject: [PATCH 5/9 V3] EXYNOS: Add parameters required by I2S Date: Tue, 23 Oct 2012 12:27:25 +0530 Message-id: <1350975449-27816-6-git-send-email-rajeshwari.s@samsung.com> X-Mailer: git-send-email 1.7.4.4 In-reply-to: <1350975449-27816-1-git-send-email-rajeshwari.s@samsung.com> References: <1350975449-27816-1-git-send-email-rajeshwari.s@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDLMWRmVeSWpSXmKPExsWyRsSkTrfKti3A4M1OHouH62+yWEw5/IXF gcnjzrU9bAGMUVw2Kak5mWWpRfp2CVwZLx+uZSpYLFDR0XWBtYFxDm8XIweHhICJRNPJui5G TiBTTOLCvfVsILaQwFJGiddfOGFK+qdXdjFyAYUXMUpMbXvMDuFMZJI4eXAdO0gDm4CRxNaT 0xhBbBEBCYlf/VfBbGaBGInX+38ADWXnEBawk3hfBRJlEVCVuLF2HzOIzSvgIfGj5y4jxAkK EsemfmUFsTkFPCXWHjrPAnKCEFDNvpOlEK0CEt8mH2KBuExWYtMBZpBjJATus0n0vL3FBjFG UuLgihssExiFFzAyrGIUTS1ILihOSs811CtOzC0uzUvXS87P3cQIDMLT/55J7WBc2WBxiFGA g1GJh9fiSGuAEGtiWXFl7iFGCQ5mJRHeBqu2ACHelMTKqtSi/Pii0pzU4kOMPkCXTGSWEk3O B0ZIXkm8obGJuamxqaWRkZmpKQ5hJXHeZo+UACGB9MSS1OzU1ILUIphxTBycUg2MExR93wU8 +HusY5evnBXXlq/tKR03wk8sEApRXb3JbM/VDs8yWY1M3efnsr8fbG19fKyrVsTIWCrxdOMZ 196UG+F68+e+tj15OCqg96HxlP2fxI4k6PmwanI4zj//cH/UgbUPPhisX9x81FNBUTPjjsW3 u5MW8qWqFMmeeqmWcvpD+k3vzdmLlViKMxINtZiLihMBn7a9TG8CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuphkeLIzCtJLcpLzFFi42I5/e+xgG6VbVuAwWZ1i4frb7JYTDn8hcWB yePOtT1sAYxRDYw2GamJKalFCql5yfkpmXnptkrewfHO8aZmBoa6hpYW5koKeYm5qbZKLj4B um6ZOUCjlRTKEnNKgUIBicXFSvp2mCaEhrjpWsA0Ruj6hgTB9RgZoIGENYwZLx+uZSpYLFDR 0XWBtYFxDm8XIweHhICJRP/0yi5GTiBTTOLCvfVsXYxcHEICixglprY9ZodwJjJJnDy4jh2k ik3ASGLryWmMILaIgITEr/6rYDazQIzE6/0/gLrZOYQF7CTeV4FEWQRUJW6s3ccMYvMKeEj8 6LnLCLFLQeLY1K+sIDangKfE2kPnWUDOEQKq2XeydAIj7wJGhlWMoqkFyQXFSem5hnrFibnF pXnpesn5uZsYwUH+TGoH48oGi0OMAhyMSjy8FkdaA4RYE8uKK3MPMUpwMCuJ8DZYtQUI8aYk VlalFuXHF5XmpBYfYvQBOmois5Rocj4wAvNK4g2NTcxNjU0tTSxMzCxxCCuJ8zZ7pAQICaQn lqRmp6YWpBbBjGPi4JRqYDyndTnRwTjl+qvdz049e/HF0cBSer6A1Avr32vUV+ns1lw9bVXT Efd3Jt9n9G+pZQ/d0xeQPNvl2OXm6DkFU29vlTLjVQ7iWeLfvKtZplZLSvpBXsMul7dlvoxZ 3rKOB1U3veHWdj91b861qFdiD54+uH3J4Jzv69WWDzg3FU7fc+nbg033FVOUWIozEg21mIuK EwHamo7snwIAAA== X-CFilter-Loop: Reflected X-Gm-Message-State: ALoCoQlUhjftUTqSvRnSwceLQ/BBwEsQcQ6mQI2mJgGwesfHA8nQQ3wu6joPXqSPqJNe6hwd5Lw7 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. 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