From patchwork Thu Dec 4 15:01:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 417809 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 062051400DD for ; Fri, 5 Dec 2014 02:01:55 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5F3404B657; Thu, 4 Dec 2014 16:01:53 +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 iHmvYTDBVaLC; Thu, 4 Dec 2014 16:01:53 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 039904B610; Thu, 4 Dec 2014 16:01:53 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7BD604B605 for ; Thu, 4 Dec 2014 16:01:50 +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 38r+-+SgQBzU for ; Thu, 4 Dec 2014 16:01:50 +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-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by theia.denx.de (Postfix) with ESMTPS id 08B034B657 for ; Thu, 4 Dec 2014 16:01:44 +0100 (CET) Received: by mail-pa0-f41.google.com with SMTP id rd3so18171393pab.28 for ; Thu, 04 Dec 2014 07:01:43 -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=vzOLWw2vZzICQQ7ibTW9L0sC+U37hMLoq3sAmfMQtZs=; b=ZvyII8cILGsEsxf+vkHkxPo1UwdTRI3UL3OseRpl1UyTOE7xFqfFyaLUhe7VBkXJzu ycmZs0BTVcB1SW6FOicHY4ydqcN7ScFl3esdAUYMwTMl61vpG3KjBZQJ+iWpLCE+W48C G4xSu8WpEa4rML/ug1T/6Wgziuf1Wrd55tyZ3GIAdjyWzwtF9U8pU2+K4/0Gffz6qwdL f9ozUHNPA1Ch2FI7jy7wmdRVsrEiILjPlCzmDO+CtfHxEVTBmWFnWIY34k+h5CNqX6s+ VVtmCUHGPYIphGQ4g2bv4xk70twSfYS6hRHAAXlmhzm+80vzMsnogDiTi2FaFAa2geVu SNlQ== X-Received: by 10.66.163.129 with SMTP id yi1mr18872370pab.149.1417705303067; Thu, 04 Dec 2014 07:01:43 -0800 (PST) Received: from localhost ([106.120.101.38]) by mx.google.com with ESMTPSA id e2sm16771713pdo.11.2014.12.04.07.01.41 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 04 Dec 2014 07:01:42 -0800 (PST) From: Bin Meng To: Simon Glass , U-Boot Mailing List Date: Thu, 4 Dec 2014 23:01:38 +0800 Message-Id: <1417705298-19105-1-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.8.2.1 Subject: [U-Boot] [PATCH 09/25] x86: ich-spi: Add Intel Tunnel Creek SPI controller support 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 Add Intel Tunnel Creek SPI controller support which is an ICH7 compatible device. Signed-off-by: Bin Meng Acked-by: Simon Glass --- drivers/spi/ich.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c index f5c6f3e..0e00edf 100644 --- a/drivers/spi/ich.c +++ b/drivers/spi/ich.c @@ -158,7 +158,8 @@ void spi_free_slave(struct spi_slave *slave) */ static int get_ich_version(uint16_t device_id) { - if (device_id == PCI_DEVICE_ID_INTEL_TGP_LPC) + if (device_id == PCI_DEVICE_ID_INTEL_TGP_LPC || + device_id == PCI_DEVICE_ID_INTEL_ITC_LPC) return 7; if ((device_id >= PCI_DEVICE_ID_INTEL_COUGARPOINT_LPC_MIN &&