From patchwork Tue Aug 11 06:09:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Schocher X-Patchwork-Id: 505874 X-Patchwork-Delegate: sbabic@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 EB4E51402BC for ; Tue, 11 Aug 2015 16:10:24 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C27904BBBF; Tue, 11 Aug 2015 08:10:14 +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 DQXR5a7wZtEf; Tue, 11 Aug 2015 08:10:14 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 432FE4BBAF; Tue, 11 Aug 2015 08:10:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5F1744BA59 for ; Tue, 11 Aug 2015 08:09:56 +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 71t3WlQgNEY1 for ; Tue, 11 Aug 2015 08:09:56 +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 pollux.denx.de (host-82-135-33-74.customer.m-online.net [82.135.33.74]) by theia.denx.de (Postfix) with ESMTP id 30A984BA4B for ; Tue, 11 Aug 2015 08:09:54 +0200 (CEST) Received: by pollux.denx.de (Postfix, from userid 515) id 61D86F1FF; Tue, 11 Aug 2015 08:09:54 +0200 (CEST) From: Heiko Schocher To: u-boot@lists.denx.de Date: Tue, 11 Aug 2015 08:09:46 +0200 Message-Id: <1439273386-1054-4-git-send-email-hs@denx.de> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1439273386-1054-1-git-send-email-hs@denx.de> References: <1439273386-1054-1-git-send-email-hs@denx.de> Subject: [U-Boot] [PATCH 3/3] video, lg4573: make spi bus and cs configurable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" make the spi bus and the spi chipselect configurable for the lg4573 driver. Use it on the aristainetos boards. Signed-off-by: Heiko Schocher --- drivers/video/lg4573.c | 3 ++- include/configs/aristainetos2.h | 2 ++ include/configs/aristainetos2b.h | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/video/lg4573.c b/drivers/video/lg4573.c index 43670fc..11fef27 100644 --- a/drivers/video/lg4573.c +++ b/drivers/video/lg4573.c @@ -220,7 +220,8 @@ err_claim_bus: static int do_lgset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { - lg4573_spi_startup(0, 0, 10000000, SPI_MODE_0); + lg4573_spi_startup(CONFIG_LG4573_BUS, CONFIG_LG4573_CS, 10000000, + SPI_MODE_0); return 0; } diff --git a/include/configs/aristainetos2.h b/include/configs/aristainetos2.h index cdbbcc0..152f5e9 100644 --- a/include/configs/aristainetos2.h +++ b/include/configs/aristainetos2.h @@ -49,6 +49,8 @@ /* Framebuffer */ #define CONFIG_SYS_LDB_CLOCK 33246000 #define CONFIG_LG4573 +#define CONFIG_LG4573_BUS 0 +#define CONFIG_LG4573_CS 0 #define CONFIG_CMD_BMP diff --git a/include/configs/aristainetos2b.h b/include/configs/aristainetos2b.h index e77e5c7..78791db 100644 --- a/include/configs/aristainetos2b.h +++ b/include/configs/aristainetos2b.h @@ -49,6 +49,8 @@ /* Framebuffer */ #define CONFIG_SYS_LDB_CLOCK 33246000 #define CONFIG_LG4573 +#define CONFIG_LG4573_BUS 0 +#define CONFIG_LG4573_CS 1 #define CONFIG_CMD_BMP