From patchwork Wed Sep 25 10:42:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 277787 X-Patchwork-Delegate: promsoft@gmail.com 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 3CA6F2C00C5 for ; Wed, 25 Sep 2013 20:44:57 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B19834A06E; Wed, 25 Sep 2013 12:44:55 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 ilWFKdaMzIB4; Wed, 25 Sep 2013 12:44:55 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 38E124A095; Wed, 25 Sep 2013 12:44:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 488584A08E for ; Wed, 25 Sep 2013 12:44:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 rvLx065XzkJD for ; Wed, 25 Sep 2013 12:44:14 +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-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by theia.denx.de (Postfix) with ESMTPS id 1BCA24A07F for ; Wed, 25 Sep 2013 12:44:08 +0200 (CEST) Received: by mail-bk0-f54.google.com with SMTP id mz12so2208619bkb.13 for ; Wed, 25 Sep 2013 03:44:08 -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=/GbLGSWA5m9dA/WkH8RF+iYfvN8yP2Ka5NpNSVCJrRE=; b=MQUfLqV+p5JlrEEe3l1VADQq9kMytqILcK5z/YYSFGegHkuJSb12L0wC78eRRrB+0A qmqBeOODf356YDtOBg5hNtK7lpO7x6/AGmkeF9hLmPW6Hshas4fQoLyB7uexI4rwb16+ zy2yvvlfHIWbyOiGr9AohIXLTmKK5PMtTN5TT4w/peF4nlziyPnOyrKVFN2YnXg/3/Az MAVets8St5efCNY4ZDmLiHFYrrowvYUVuGo5o9SQX8w3gZLzITFDadnjyqMTHIg1r8L5 Z/Z1P6OHhmkWSTJ7Jo6OgfY5T0LXULQ6XoB+tFwhzV6xLjclQPc0gPG0zjauctCdZk4W y5IQ== X-Gm-Message-State: ALoCoQnXNQHVzuUVzAhQP7vDO0F7dGv+/1zC8kwKvtF/lInfWfYV8jJ/tOQ+dnX7zklyMrD5ZkmV X-Received: by 10.204.247.71 with SMTP id mb7mr27322722bkb.7.1380105848575; Wed, 25 Sep 2013 03:44:08 -0700 (PDT) Received: from slackpad.drs.calxeda.com (g224194040.adsl.alicedsl.de. [92.224.194.40]) by mx.google.com with ESMTPSA id pk7sm13866293bkb.2.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 25 Sep 2013 03:44:07 -0700 (PDT) From: Andre Przywara To: Rajeshwari Shinde , Simon Glass , Hatim RV , Chander Kashyap Date: Wed, 25 Sep 2013 12:42:38 +0200 Message-Id: <1380105759-9687-5-git-send-email-andre.przywara@linaro.org> X-Mailer: git-send-email 1.7.12.1 In-Reply-To: <1380105759-9687-1-git-send-email-andre.przywara@linaro.org> References: <1380105759-9687-1-git-send-email-andre.przywara@linaro.org> Cc: trini@ti.com, patches@linaro.org, u-boot@lists.denx.de Subject: [U-Boot] [PATCH 4/5] ARM: snow: move defines for Chromebook embedded controller X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 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 AFAIK the CROS_EC is only available on the Chromebook. So move the corresponding define to the snow config file and include the keyboard only in this case. Also the LCD should be protected in the same way, though this seems to be also valid for the SMDK5250 board. Unfortunately compilation breaks for the SMDK5250 without the CROS_EC define, so pull it in for this board too for the time being. Signed-off-by: Andre Przywara --- include/configs/exynos5250-dt.h | 22 +++++++++++++++++----- include/configs/smdk5250.h | 1 + include/configs/snow.h | 1 + 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/include/configs/exynos5250-dt.h b/include/configs/exynos5250-dt.h index e855745..5f44684 100644 --- a/include/configs/exynos5250-dt.h +++ b/include/configs/exynos5250-dt.h @@ -74,23 +74,35 @@ #define CONFIG_SILENT_CONSOLE /* Enable keyboard */ -#define CONFIG_CROS_EC /* CROS_EC protocol */ +#ifdef CONFIG_CROS_EC /* ChromeOS embedded controller */ #define CONFIG_CROS_EC_SPI /* Support CROS_EC over SPI */ #define CONFIG_CROS_EC_I2C /* Support CROS_EC over I2C */ #define CONFIG_CROS_EC_KEYB /* CROS_EC keyboard input */ #define CONFIG_CMD_CROS_EC #define CONFIG_KEYBOARD +#endif /* Console configuration */ #define CONFIG_CONSOLE_MUX #define CONFIG_SYS_CONSOLE_IS_IN_ENV -#define EXYNOS_DEVICE_SETTINGS \ - "stdin=serial,cros-ec-keyb\0" \ - "stdout=serial,lcd\0" \ + +#ifdef CONFIG_KEYBOARD +#define EXYNOS_DEVICE_INPUT "stdin=serial,cros-ec-keyb\0" +#else +#define EXYNOS_DEVICE_INPUT "stdin=serial\0" +#endif + +#ifdef CONFIG_LCD +#define EXYNOS_DEVICE_OUTPUT "stdout=serial,lcd\0" \ "stderr=serial,lcd\0" +#else +#define EXYNOS_DEVICE_OUTPUT "stdout=serial\0" \ + "stderr=serial\0" +#endif #define CONFIG_EXTRA_ENV_SETTINGS \ - EXYNOS_DEVICE_SETTINGS + EXYNOS_DEVICE_INPUT \ + EXYNOS_DEVICE_OUTPUT /* SD/MMC configuration */ #define CONFIG_GENERIC_MMC diff --git a/include/configs/smdk5250.h b/include/configs/smdk5250.h index b1bb783..b8150e9 100644 --- a/include/configs/smdk5250.h +++ b/include/configs/smdk5250.h @@ -13,6 +13,7 @@ #define CONFIG_SPI_FLASH #define CONFIG_LCD #define CONFIG_CMD_SOUND +#define CONFIG_CROS_EC #include diff --git a/include/configs/snow.h b/include/configs/snow.h index 4d34c48..0cf7322 100644 --- a/include/configs/snow.h +++ b/include/configs/snow.h @@ -13,6 +13,7 @@ #define CONFIG_SPI_FLASH #define CONFIG_LCD #define CONFIG_CMD_SOUND +#define CONFIG_CROS_EC #include