From patchwork Fri Dec 12 14:06:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 420496 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 1345D140082 for ; Sat, 13 Dec 2014 01:07:58 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DF82F4BAD3; Fri, 12 Dec 2014 15:07:21 +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 Fvb-alSQV9P8; Fri, 12 Dec 2014 15:07:21 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CEE344BAD4; Fri, 12 Dec 2014 15:07:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 700AA4BAAA for ; Fri, 12 Dec 2014 15:06:55 +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 JOgQn5fGpQhd for ; Fri, 12 Dec 2014 15:06:55 +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-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by theia.denx.de (Postfix) with ESMTPS id 116A34BAA3 for ; Fri, 12 Dec 2014 15:06:46 +0100 (CET) Received: by mail-pd0-f171.google.com with SMTP id y13so7263144pdi.2 for ; Fri, 12 Dec 2014 06:06:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZCMvrleMymi4vdY/kJdb8bYYYLyIxjivBOH7Hg4wCdg=; b=wZGKcE5bYViceQPf5vhpqWrCc/WHLh0s6/OxrEUzcg4P0STlDd6WKXwLDzkk+bGVQP xAodvCgazEGDsL1xKCtZ2pdnUYxbuss2ECh1fje9AQWS+Lk6yWeenqPOkXRdG63SkRHa jaMdZPWwLDnG5ZYtxj1aggoYNDOxTEPgvrUdjXnFrT06y5fAjZ2srYTlARMYUCRcOjAT WPD8/WGiugLka9KCy7prIDQpYJRM0GiraF+w+35WdfuDbElFUFqRHO6cdpjl3D8BEZWa /TykcikngmmbdI8Wbq4494zJiBz30OO81eJYRuhuSPwlqwLz2vt3W6tQjb0qJlEzv+sP Fq5g== X-Received: by 10.68.102.5 with SMTP id fk5mr26783982pbb.136.1418393204482; Fri, 12 Dec 2014 06:06:44 -0800 (PST) Received: from localhost.localdomain ([49.248.59.149]) by mx.google.com with ESMTPSA id py1sm1672015pdb.74.2014.12.12.06.06.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Dec 2014 06:06:43 -0800 (PST) From: Jagannadha Sutradharudu Teki To: u-boot@lists.denx.de Date: Fri, 12 Dec 2014 19:36:15 +0530 Message-Id: <1418393176-16002-6-git-send-email-jagannadh.teki@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418393176-16002-1-git-send-email-jagannadh.teki@gmail.com> References: <1418393176-16002-1-git-send-email-jagannadh.teki@gmail.com> Subject: [U-Boot] [PATCH v2 5/6] 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 From: Bin Meng 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 Reviewed-by: Jagannadha Sutradharudu Teki --- drivers/spi/ich.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c index f5c6f3e..0ef8bd4 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; }