From patchwork Mon Jun 13 07:37:24 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 1833 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.47.109) by localhost6.localdomain6 with IMAP4-SSL; 14 Jun 2011 16:45:51 -0000 Delivered-To: patches@linaro.org Received: by 10.52.181.10 with SMTP id ds10cs438814vdc; Mon, 13 Jun 2011 00:29:08 -0700 (PDT) Received: by 10.42.29.200 with SMTP id s8mr5554298icc.266.1307950148084; Mon, 13 Jun 2011 00:29:08 -0700 (PDT) Received: from mail-pv0-f178.google.com (mail-pv0-f178.google.com [74.125.83.178]) by mx.google.com with ESMTPS id r12si15236894iba.129.2011.06.13.00.29.07 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Jun 2011 00:29:08 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.83.178 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) client-ip=74.125.83.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.83.178 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) smtp.mail=shawn.guo@linaro.org Received: by mail-pv0-f178.google.com with SMTP id 7so2269413pvg.37 for ; Mon, 13 Jun 2011 00:29:07 -0700 (PDT) Received: by 10.68.37.65 with SMTP id w1mr1856264pbj.341.1307950147594; Mon, 13 Jun 2011 00:29:07 -0700 (PDT) Received: from localhost.localdomain ([114.216.159.33]) by mx.google.com with ESMTPS id y2sm4431178pbi.83.2011.06.13.00.29.00 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 13 Jun 2011 00:29:06 -0700 (PDT) From: Shawn Guo To: linux-arm-kernel@lists.infradead.org Cc: kernel@pengutronix.de, Fabio Estevam , patches@linaro.org, Shawn Guo Subject: [PATCH 5/6] ARM: mxc: all three imx51 TOs use TO1 version of sdma script Date: Mon, 13 Jun 2011 15:37:24 +0800 Message-Id: <1307950645-26529-6-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1307950645-26529-1-git-send-email-shawn.guo@linaro.org> References: <1307950645-26529-1-git-send-email-shawn.guo@linaro.org> Though there are three TOs of imx51 soc, the sdma script never changes since TO1, which means all three TOs of imx51 uses TO1 version of sdma script. The current code passes TO number to imx-sdma driver to load different firmware for different TO. That means we have to prepare 3 identical firmwares, sdma-imx25-to1.bin sdma-imx25-to2.bin and sdma-imx25-to3.bin, to have the kernel capable of running on all three TOs. This just makes no sense. The patch removes the TO number passing and get the default TO1 version of sdma firmware work for all TOs. Signed-off-by: Shawn Guo --- arch/arm/plat-mxc/devices/platform-imx-dma.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-mxc/devices/platform-imx-dma.c b/arch/arm/plat-mxc/devices/platform-imx-dma.c index c64f015..2091540 100644 --- a/arch/arm/plat-mxc/devices/platform-imx-dma.c +++ b/arch/arm/plat-mxc/devices/platform-imx-dma.c @@ -196,8 +196,6 @@ static int __init imxXX_add_imx_dma(void) #if defined(CONFIG_SOC_IMX51) if (cpu_is_mx51()) { - int to_version = mx51_revision() >> 4; - imx51_imx_sdma_data.pdata.to_version = to_version; imx51_imx_sdma_data.pdata.script_addrs = &addr_imx51; ret = imx_add_imx_sdma(&imx51_imx_sdma_data); } else