From patchwork Wed Dec 10 08:37:52 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 419449 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 5D8EB1400B7 for ; Wed, 10 Dec 2014 19:38:09 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D552A4B748; Wed, 10 Dec 2014 09:38:07 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3a+1yJr+Q4vF; Wed, 10 Dec 2014 09:38:07 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4262E4B739; Wed, 10 Dec 2014 09:38:07 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A00AE4B739 for ; Wed, 10 Dec 2014 09:38:03 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tVcSztcj-C+Z for ; Wed, 10 Dec 2014 09:38:03 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by theia.denx.de (Postfix) with ESMTPS id 389BC4B736 for ; Wed, 10 Dec 2014 09:37:59 +0100 (CET) Received: by mail-pa0-f47.google.com with SMTP id kq14so2369955pab.34 for ; Wed, 10 Dec 2014 00:37:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=xu9TeLna5YrRszhQfAsFop4pToxiYDwDXC0mba8ZoZ4=; b=avXquPXoXWj0Nb5xkCfLpUUHH9Eqm9HafvcStJGccFyzmYP9HFSWDz+TSoiTdj5M3V a8aiave5HEGovFhJXDlRUEGFJQmGBWVMSxwqMoE3maiJZvkhpkPgjYRL+ewUdUn/I/ur Mnci/QimKs24ibKHe59p3jgR94y2FpZHK+cNlNCH0qGP6RkJUR7/xUEkOtfNiWdC2kOW 4LPMnj8RcoWSZWch5elBr04vpdt2Xj4GpO3dO0w9bQY7t+yz45Uy4DVMBXzTdQWtKoFD hicJ495LBJWynYyW3kqMqyqm+Dr34TgZDkRHw33oTMNisqydK4glKrlkducRIOi2ZouJ zmpg== X-Received: by 10.70.55.40 with SMTP id o8mr4683599pdp.87.1418200678291; Wed, 10 Dec 2014 00:37:58 -0800 (PST) Received: from localhost ([106.120.101.38]) by mx.google.com with ESMTPSA id vl1sm3492955pbc.62.2014.12.10.00.37.56 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 10 Dec 2014 00:37:57 -0800 (PST) From: Bin Meng To: Simon Glass , Jagannadha Sutradharudu Teki , U-Boot Mailing List Date: Wed, 10 Dec 2014 16:37:52 +0800 Message-Id: <1418200672-4743-1-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.8.2.1 Subject: [U-Boot] [PATCH v3 1/2] x86: ich-spi: Set the rx operation mode for ich 7 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de ICH 7 SPI controller only supports array read command (03h). Fast array read command (0Bh) is not supported. Signed-off-by: Bin Meng Acked-by: Simon Glass Tested-by: Simon Glass --- Changes in v3: None RESEND of v2 patch @ http://patchwork.ozlabs.org/patch/405752/ drivers/spi/ich.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c index 7b24981..c38df08 100644 --- a/drivers/spi/ich.c +++ b/drivers/spi/ich.c @@ -141,6 +141,10 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, ich->slave.max_write_size = ctlr.databytes; ich->speed = max_hz; + /* ICH 7 SPI controller only supports array read command */ + if (ctlr.ich_version == 7) + ich->slave.op_mode_rx = SPI_OPM_RX_AS; + return &ich->slave; }