From patchwork Sat Aug 3 05:22:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Heiko Schocher X-Patchwork-Id: 264387 X-Patchwork-Delegate: agust@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 CD0432C008C for ; Sat, 3 Aug 2013 15:23:30 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D38F64A096; Sat, 3 Aug 2013 07:23:21 +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 z5sVa4Ij2a02; Sat, 3 Aug 2013 07:23:21 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8C27E4A021; Sat, 3 Aug 2013 07:23:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7553F4A01B for ; Sat, 3 Aug 2013 07:23:06 +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 Z2xeMFU2ZkGm for ; Sat, 3 Aug 2013 07:23:06 +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 455F74A01F for ; Sat, 3 Aug 2013 07:22:56 +0200 (CEST) Received: by pollux.denx.de (Postfix, from userid 515) id 741C4224C; Sat, 3 Aug 2013 07:22:56 +0200 (CEST) From: Heiko Schocher To: u-boot@lists.denx.de Date: Sat, 3 Aug 2013 07:22:48 +0200 Message-Id: <1375507373-13785-3-git-send-email-hs@denx.de> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1375507373-13785-1-git-send-email-hs@denx.de> References: <1375507373-13785-1-git-send-email-hs@denx.de> MIME-Version: 1.0 Cc: Tom Rini , Heiko Schocher Subject: [U-Boot] =?utf-8?q?=5BPATCH_2/7=5D_video=2C_da8xx=3A_move_da8xx-f?= =?utf-8?q?b=2Eh_to_drivers/video?= 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: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de the da8xx-fb driver works also on am335x boards. So move the da8xx-fb.h file from arch/arm/include/asm/arch-davinci to drivers/video, so this driver can used from am335x based boards. Also add WVGA panel_type. Signed-off-by: Heiko Schocher Cc: Stefano Babic Cc: Anatolij Gustschin Cc: Tom Rini Acked-by: Tom Rini --- board/davinci/ea20/ea20.c | 2 +- drivers/video/da8xx-fb.c | 2 +- {arch/arm/include/asm/arch-davinci => drivers/video}/da8xx-fb.h | 3 ++- 3 Dateien geändert, 4 Zeilen hinzugefügt(+), 3 Zeilen entfernt(-) rename {arch/arm/include/asm/arch-davinci => drivers/video}/da8xx-fb.h (99%) diff --git a/board/davinci/ea20/ea20.c b/board/davinci/ea20/ea20.c index c786997..89ee079 100644 --- a/board/davinci/ea20/ea20.c +++ b/board/davinci/ea20/ea20.c @@ -24,7 +24,7 @@ #include #include #include -#include +#include "../../../drivers/video/da8xx-fb.h" DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index 373991d..dd7ce36 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video/da8xx-fb.c @@ -24,7 +24,7 @@ #include #include "videomodes.h" -#include +#include "da8xx-fb.h" #define DRIVER_NAME "da8xx_lcdc" diff --git a/arch/arm/include/asm/arch-davinci/da8xx-fb.h b/drivers/video/da8xx-fb.h similarity index 99% rename from arch/arm/include/asm/arch-davinci/da8xx-fb.h rename to drivers/video/da8xx-fb.h index c115034..f48fdfd 100644 --- a/arch/arm/include/asm/arch-davinci/da8xx-fb.h +++ b/drivers/video/da8xx-fb.h @@ -17,7 +17,8 @@ #define DA8XX_FB_H enum panel_type { - QVGA = 0 + QVGA = 0, + WVGA }; enum panel_shade {