From patchwork Mon Oct 13 05:39:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 399038 X-Patchwork-Delegate: hs@denx.de 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 723ED1400D5 for ; Mon, 13 Oct 2014 16:40:33 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C8099A7870; Mon, 13 Oct 2014 07:40:25 +0200 (CEST) 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 N7J2AZAyhYEh; Mon, 13 Oct 2014 07:40:25 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 66A2CA7874; Mon, 13 Oct 2014 07:40:18 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8ACF8A7851 for ; Mon, 13 Oct 2014 07:40:10 +0200 (CEST) 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 1d7qeNDR6thP for ; Mon, 13 Oct 2014 07:40:10 +0200 (CEST) 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-oi0-f73.google.com (mail-oi0-f73.google.com [209.85.218.73]) by theia.denx.de (Postfix) with ESMTPS id 25B0FA7856 for ; Mon, 13 Oct 2014 07:40:06 +0200 (CEST) Received: by mail-oi0-f73.google.com with SMTP id u20so2240863oif.4 for ; Sun, 12 Oct 2014 22:40:05 -0700 (PDT) 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=ZbCAPYvA+mGF0ASiNQZKZAfb1Q4+NqbkHcE9kZnUsgE=; b=iYw9P23NiA883Y2KoTNY4WFIBRAHqKJvGGqtp9Hs3SB2vAC2CzG2zGcGkFSr6Jts+r E+70MEDpS/bNTH6rkX6piuxjqW8zgwZ+llYNkAnKietFJvj69H6G4VmzqT02ZuQgYa6S 4igDjTgXrDCSH/MGqERJC5oUTNOxFhFUrNJJ4fUtdVX1P9fesK668WPXhkOH4bnyHpol PfGg8eE3A9U1r2bRLKO/ACloX2j4teUbQ/aQTUl7xm14fFS2WXrmeC3Qiw4EmStjQQa3 Nz0JSTQwaImNpD74p3aZueqlEuKTUwxUf/Hkw2R5Q+KYJNNtRiQpEenlky7FPyBKT8zt qYig== X-Gm-Message-State: ALoCoQlyzz0ok6aFlo3eOGmkVXCidqot8JzO4hxivoGEDGhkBpvATQQmq4UytAk2BFwcOtFxvY/u X-Received: by 10.182.97.10 with SMTP id dw10mr9994385obb.27.1413178805830; Sun, 12 Oct 2014 22:40:05 -0700 (PDT) Received: from corpmail-nozzle1-1.hot.corp.google.com ([100.108.1.104]) by gmr-mx.google.com with ESMTPS id n63si676504yho.5.2014.10.12.22.40.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Oct 2014 22:40:05 -0700 (PDT) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by corpmail-nozzle1-1.hot.corp.google.com with ESMTP id H4dScXUz.1; Sun, 12 Oct 2014 22:40:05 -0700 Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id DAB072217A8; Sun, 12 Oct 2014 23:40:04 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Sun, 12 Oct 2014 23:39:34 -0600 Message-Id: <1413178778-30846-9-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1413178778-30846-1-git-send-email-sjg@chromium.org> References: <1413178778-30846-1-git-send-email-sjg@chromium.org> Cc: u-boot-review@google.com Subject: [U-Boot] [RFC PATCH 08/12] dm: i2c: config: Enable I2C for sandbox using driver model 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 Enable the options to bring up I2C on sandbox. Also enable all the available I2C commands for testing purposes. Signed-off-by: Simon Glass --- include/configs/sandbox.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index 2fd2c64..c5b46ac 100644 --- a/include/configs/sandbox.h +++ b/include/configs/sandbox.h @@ -110,6 +110,12 @@ #define CONFIG_SPI_FLASH_STMICRO #define CONFIG_SPI_FLASH_WINBOND +#define CONFIG_DM_I2C +#define CONFIG_CMD_I2C +#define CONFIG_SYS_I2C_SANDBOX +#define CONFIG_I2C_EDID +#define CONFIG_I2C_EEPROM + /* Memory things - we don't really want a memory test */ #define CONFIG_SYS_LOAD_ADDR 0x00000000 #define CONFIG_SYS_MEMTEST_START 0x00100000