diff options
author | Tom Rini <trini@konsulko.com> | 2017-03-14 11:08:10 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-04-05 13:52:01 -0400 |
commit | ea3310e8aafad1da72d9a5e60568d725cbdefdbd (patch) | |
tree | 869faa824f09ce4d40f2ce503a607ceb28b5ce91 /board/bf533-stamp/bf533-stamp.c | |
parent | c3b7cfe15ec1db047182d4ec55a3ce05f19bdf38 (diff) | |
download | u-boot-ea3310e8aafad1da72d9a5e60568d725cbdefdbd.tar.gz |
Blackfin: Remove
The architecture is currently unmaintained, remove.
Cc: Benjamin Matthews <mben12@gmail.com>
Cc: Chong Huang <chuang@ucrobotics.com>
Cc: Dimitar Penev <dpn@switchfin.org>
Cc: Haitao Zhang <hzhang@ucrobotics.com>
Cc: I-SYST Micromodule <support@i-syst.com>
Cc: M.Hasewinkel (MHA) <info@ssv-embedded.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Martin Strubel <strubel@section5.ch>
Cc: Peter Meerwald <devel@bct-electronic.com>
Cc: Sonic Zhang <sonic.adi@gmail.com>
Cc: Valentin Yakovenkov <yakovenkov@niistt.ru>
Cc: Wojtek Skulski <info@skutek.com>
Cc: Wojtek Skulski <skulski@pas.rochester.edu>
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'board/bf533-stamp/bf533-stamp.c')
-rw-r--r-- | board/bf533-stamp/bf533-stamp.c | 127 |
1 files changed, 0 insertions, 127 deletions
diff --git a/board/bf533-stamp/bf533-stamp.c b/board/bf533-stamp/bf533-stamp.c deleted file mode 100644 index 185a651bec..0000000000 --- a/board/bf533-stamp/bf533-stamp.c +++ /dev/null @@ -1,127 +0,0 @@ -/* - * U-Boot - main board file - * - * Copyright (c) 2005-2008 Analog Devices Inc. - * - * (C) Copyright 2000-2004 - * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#include <common.h> -#include <netdev.h> -#include <asm/gpio.h> - -DECLARE_GLOBAL_DATA_PTR; - -int checkboard(void) -{ - printf("Board: ADI BF533 Stamp board\n"); - printf(" Support: http://blackfin.uclinux.org/\n"); - return 0; -} - -/* PF0 and PF1 are used to switch between the ethernet and flash: - * PF0 PF1 - * flash: 0 0 - * ether: 1 0 - */ -void swap_to(int device_id) -{ - gpio_request(GPIO_PF0, "eth_flash_swap"); - gpio_request(GPIO_PF1, "eth_flash_swap"); - gpio_direction_output(GPIO_PF0, device_id == ETHERNET); - gpio_direction_output(GPIO_PF1, 0); - SSYNC(); -} - -#if defined(CONFIG_MISC_INIT_R) -/* miscellaneous platform dependent initialisations */ -int misc_init_r(void) -{ -#ifdef CONFIG_STAMP_CF - cf_ide_init(); -#endif - - return 0; -} -#endif - -#ifdef CONFIG_SHOW_BOOT_PROGRESS - -#define CONFIG_LED_STATUS_OFF 0 -#define CONFIG_LED_STATUS_ON 1 - -static int gpio_setup; - -static void stamp_led_set(int LED1, int LED2, int LED3) -{ - if (!gpio_setup) { - gpio_request(GPIO_PF2, "boot_progress"); - gpio_request(GPIO_PF3, "boot_progress"); - gpio_request(GPIO_PF4, "boot_progress"); - gpio_direction_output(GPIO_PF2, LED1); - gpio_direction_output(GPIO_PF3, LED2); - gpio_direction_output(GPIO_PF4, LED3); - gpio_setup = 1; - } else { - gpio_set_value(GPIO_PF2, LED1); - gpio_set_value(GPIO_PF3, LED2); - gpio_set_value(GPIO_PF4, LED3); - } -} - -void show_boot_progress(int status) -{ - switch (status) { - case BOOTSTAGE_ID_CHECK_MAGIC: - stamp_led_set(CONFIG_LED_STATUS_OFF, CONFIG_LED_STATUS_OFF, - CONFIG_LED_STATUS_ON); - break; - case BOOTSTAGE_ID_CHECK_HEADER: - stamp_led_set(CONFIG_LED_STATUS_OFF, CONFIG_LED_STATUS_ON, - CONFIG_LED_STATUS_OFF); - break; - case BOOTSTAGE_ID_CHECK_CHECKSUM: - stamp_led_set(CONFIG_LED_STATUS_OFF, CONFIG_LED_STATUS_ON, - CONFIG_LED_STATUS_ON); - break; - case BOOTSTAGE_ID_CHECK_ARCH: - stamp_led_set(CONFIG_LED_STATUS_ON, CONFIG_LED_STATUS_OFF, - CONFIG_LED_STATUS_OFF); - break; - case BOOTSTAGE_ID_CHECK_IMAGETYPE: - case BOOTSTAGE_ID_DECOMP_IMAGE: - stamp_led_set(CONFIG_LED_STATUS_ON, CONFIG_LED_STATUS_OFF, - CONFIG_LED_STATUS_ON); - break; - case BOOTSTAGE_ID_KERNEL_LOADED: - case BOOTSTAGE_ID_CHECK_BOOT_OS: - stamp_led_set(CONFIG_LED_STATUS_ON, CONFIG_LED_STATUS_ON, - CONFIG_LED_STATUS_OFF); - break; - case BOOTSTAGE_ID_BOOT_OS_RETURNED: - case BOOTSTAGE_ID_RD_MAGIC: - case BOOTSTAGE_ID_RD_HDR_CHECKSUM: - case BOOTSTAGE_ID_RD_CHECKSUM: - case BOOTSTAGE_ID_RAMDISK: - case BOOTSTAGE_ID_NO_RAMDISK: - case BOOTSTAGE_ID_RUN_OS: - stamp_led_set(CONFIG_LED_STATUS_OFF, CONFIG_LED_STATUS_OFF, - CONFIG_LED_STATUS_OFF); - break; - default: - stamp_led_set(CONFIG_LED_STATUS_ON, CONFIG_LED_STATUS_ON, - CONFIG_LED_STATUS_ON); - break; - } -} -#endif - -#ifdef CONFIG_SMC91111 -int board_eth_init(bd_t *bis) -{ - return smc91111_initialize(0, CONFIG_SMC91111_BASE); -} -#endif |