From patchwork Tue Jan 22 20:44:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeroen Hofstee X-Patchwork-Id: 214647 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 4976B2C0079 for ; Wed, 23 Jan 2013 07:45:27 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3A67B4A11D; Tue, 22 Jan 2013 21:45:25 +0100 (CET) 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 ASIK+TWjUSr3; Tue, 22 Jan 2013 21:45:24 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1B6654A11E; Tue, 22 Jan 2013 21:45:13 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1A3284A10A for ; Tue, 22 Jan 2013 21:45:11 +0100 (CET) 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 XrH1X60tR8k9 for ; Tue, 22 Jan 2013 21:45:09 +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 smtp8.versatel.nl (smtp8.versatel.nl [62.58.50.100]) by theia.denx.de (Postfix) with ESMTPS id 93D904A11E for ; Tue, 22 Jan 2013 21:45:02 +0100 (CET) Received: (qmail 21409 invoked by uid 0); 22 Jan 2013 20:45:01 -0000 Received: from ip120-12-208-87.adsl2.static.versatel.nl (HELO router.myspectrum.nl) ([87.208.12.120]) (envelope-sender ) by smtp8.versatel.nl (qmail-ldap-1.03) with SMTP for < >; 22 Jan 2013 20:45:01 -0000 Received: from laptop-xubunutu (unknown [10.0.0.119]) by router.myspectrum.nl (Postfix) with ESMTP id 91BD41BDD3; Tue, 22 Jan 2013 21:45:01 +0100 (CET) Received: by laptop-xubunutu (Postfix, from userid 1000) id D765B7F22D6; Tue, 22 Jan 2013 21:45:04 +0100 (CET) From: Jeroen Hofstee To: u-boot@lists.denx.de Date: Tue, 22 Jan 2013 21:44:08 +0100 Message-Id: <1358887454-9541-3-git-send-email-jeroen@myspectrum.nl> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1358887454-9541-1-git-send-email-jeroen@myspectrum.nl> References: <1358028480-4979-1-git-send-email-jeroen@myspectrum.nl> <1358887454-9541-1-git-send-email-jeroen@myspectrum.nl> Cc: Jeroen Hofstee Subject: [U-Boot] [PATCH v2 02/10] lcd, tegra: remove unused cursor functions 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 cc: Anatolij Gustschin cc: Simon Glass Signed-off-by: Jeroen Hofstee --- drivers/video/tegra.c | 52 ------------------------------------------------- 1 file changed, 52 deletions(-) diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c index 3709d0b..26a96a5 100644 --- a/drivers/video/tegra.c +++ b/drivers/video/tegra.c @@ -73,62 +73,10 @@ vidinfo_t panel_info = { .vl_col = -1, }; -char lcd_cursor_enabled; - -ushort lcd_cursor_width; -ushort lcd_cursor_height; - #ifndef CONFIG_OF_CONTROL #error "You must enable CONFIG_OF_CONTROL to get Tegra LCD support" #endif -void lcd_cursor_size(ushort width, ushort height) -{ - lcd_cursor_width = width; - lcd_cursor_height = height; -} - -void lcd_toggle_cursor(void) -{ - ushort x, y; - uchar *dest; - ushort row; - - x = console_col * lcd_cursor_width; - y = console_row * lcd_cursor_height; - dest = (uchar *)(lcd_base + y * lcd_line_length + x * (1 << LCD_BPP) / - 8); - - for (row = 0; row < lcd_cursor_height; ++row, dest += lcd_line_length) { - ushort *d = (ushort *)dest; - ushort color; - int i; - - for (i = 0; i < lcd_cursor_width; ++i) { - color = *d; - color ^= lcd_getfgcolor(); - *d = color; - ++d; - } - } -} - -void lcd_cursor_on(void) -{ - lcd_cursor_enabled = 1; - lcd_toggle_cursor(); -} -void lcd_cursor_off(void) -{ - lcd_cursor_enabled = 0; - lcd_toggle_cursor(); -} - -char lcd_is_cursor_enabled(void) -{ - return lcd_cursor_enabled; -} - static void update_panel_size(struct fdt_disp_config *config) { panel_info.vl_col = config->width;