From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Petermaier Date: Thu, 19 Mar 2015 10:43:16 +0100 Subject: [U-Boot] [PATCH 2/2] board/BuR/common: remove unused function 'blink' In-Reply-To: <1426758196-29608-1-git-send-email-oe5hpm@oevsv.at> References: <1426758196-29608-1-git-send-email-oe5hpm@oevsv.at> Message-ID: <1426758196-29608-2-git-send-email-oe5hpm@oevsv.at> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Hannes Petermaier since we have possibility to write out on lcd whats going on, we don't need the gpio blink functionality anymore. Signed-off-by: Hannes Petermaier Signed-off-by: Hannes Petermaier --- board/BuR/common/bur_common.h | 1 - board/BuR/common/common.c | 14 -------------- 2 files changed, 15 deletions(-) diff --git a/board/BuR/common/bur_common.h b/board/BuR/common/bur_common.h index 3061e4c..e4896fb 100644 --- a/board/BuR/common/bur_common.h +++ b/board/BuR/common/bur_common.h @@ -16,7 +16,6 @@ int load_lcdtiming(struct am335x_lcdpanel *panel); void br_summaryscreen(void); -void blink(u32 blinks, u32 intervall, u32 pin); void pmicsetup(u32 mpupll); void enable_uart0_pin_mux(void); void enable_i2c_pin_mux(void); diff --git a/board/BuR/common/common.c b/board/BuR/common/common.c index 91834eb..ccaa9c6 100644 --- a/board/BuR/common/common.c +++ b/board/BuR/common/common.c @@ -441,20 +441,6 @@ void lcd_enable(void) #error "LCD-support with a suitable FB-Driver is mandatory !" #endif /* CONFIG_LCD */ -void blink(u32 blinks, u32 intervall, u32 pin) -{ - gpio_direction_output(pin, 0); - int val = 0; - - do { - val ^= 0x01; - gpio_set_value(pin, val); - mdelay(intervall); - } while (blinks--); - - gpio_set_value(pin, 0); -} - #ifdef CONFIG_SPL_BUILD void pmicsetup(u32 mpupll) { -- 1.7.9.5