From patchwork Fri Jan 9 03:30:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 426900 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 E212314012F for ; Fri, 9 Jan 2015 14:32:01 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 60B334B67D; Fri, 9 Jan 2015 04:31:54 +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 NyJYvymp6vWT; Fri, 9 Jan 2015 04:31:54 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 2ADCD4B624; Fri, 9 Jan 2015 04:31:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F14ED4B5E9 for ; Fri, 9 Jan 2015 04:31:33 +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 wNfk3V8XqQFd for ; Fri, 9 Jan 2015 04:31:33 +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-f73.google.com (mail-pa0-f73.google.com [209.85.220.73]) by theia.denx.de (Postfix) with ESMTPS id 3FFD74B604 for ; Fri, 9 Jan 2015 04:31:29 +0100 (CET) Received: by mail-pa0-f73.google.com with SMTP id rd3so2310690pab.0 for ; Thu, 08 Jan 2015 19:31:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=PF90m0+7HLDeGfB60AL2KWhQish+lr+LqhEttqOHNWM=; b=ZEf9eLHcNIH6gp4OmrYf/2ad3sCicyUNVAu+4WF9BZsXK3Tj1Me8k+Dx2Myst85bbp Lz5dxvFwCCjbKmdpmtxxq6UmvLkTup2JUCUwRImThTXO0B5WQmviXk1goCfyDBon4041 jsEWmS5TK/S4tpH0NA/DML0fYwNRHWYnYULW2Im92kvQ8jmGHBDl5CP3cIHN3vzwvs48 W24nvXB9hoNCElI6shRwAuOLmQe+X1yGafB1ti9m5x0euyknTfv3MoUJXV1d/9kkUqUW Up0wPCpNeQdY+1mwi2d+hmmUFVCV+RGxKnVtgnCKnrLv2I/U4/F7GD+X9newJc9nMHod L93A== X-Gm-Message-State: ALoCoQktqRIXgNoB+MVsk69+j8i1tfDSiJph8IeGaR1V91dzp9X/5bMwg3C2g3yVwd5k9fOIJhXE X-Received: by 10.66.152.8 with SMTP id uu8mr9551008pab.24.1420774287751; Thu, 08 Jan 2015 19:31:27 -0800 (PST) Received: from corpmail-nozzle1-2.hot.corp.google.com ([100.108.1.103]) by gmr-mx.google.com with ESMTPS id v41si281263yha.7.2015.01.08.19.31.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jan 2015 19:31:27 -0800 (PST) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by corpmail-nozzle1-2.hot.corp.google.com with ESMTP id jnl39qiU.1; Thu, 08 Jan 2015 19:31:27 -0800 Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 1DC8E220325; Thu, 8 Jan 2015 20:31:27 -0700 (MST) From: Simon Glass To: U-Boot Mailing List Date: Thu, 8 Jan 2015 20:30:45 -0700 Message-Id: <1420774255-702-2-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.2.0.rc0.207.ga3a616c In-Reply-To: <1420774255-702-1-git-send-email-sjg@chromium.org> References: <1420774255-702-1-git-send-email-sjg@chromium.org> Cc: Graeme Russ Subject: [U-Boot] [PATCH v2 01/11] x86: dts: Add compatible string for Intel ICH9 SPI controller 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 this to the enum so that we can use the various fdtdec functions. A later commit will move this driver to driver model. Signed-off-by: Simon Glass --- Changes in v2: - Use intel,ich-spi as the compatible string include/fdtdec.h | 1 + lib/fdtdec.c | 1 + 2 files changed, 2 insertions(+) diff --git a/include/fdtdec.h b/include/fdtdec.h index 4901c0d..de46562 100644 --- a/include/fdtdec.h +++ b/include/fdtdec.h @@ -172,6 +172,7 @@ enum fdt_compat_id { COMPAT_INTEL_MODEL_206AX, /* Intel Model 206AX CPU */ COMPAT_INTEL_GMA, /* Intel Graphics Media Accelerator */ COMPAT_AMS_AS3722, /* AMS AS3722 PMIC */ + COMPAT_INTEL_ICH_SPI, /* Intel ICH7/9 SPI controller */ COMPAT_COUNT, }; diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 487122e..e989241 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -83,6 +83,7 @@ static const char * const compat_names[COMPAT_COUNT] = { COMPAT(INTEL_MODEL_206AX, "intel,model-206ax"), COMPAT(INTEL_GMA, "intel,gma"), COMPAT(AMS_AS3722, "ams,as3722"), + COMPAT(INTEL_ICH_SPI, "intel,ich-spi"), }; const char *fdtdec_get_compatible(enum fdt_compat_id id)