diff options
Diffstat (limited to 'board/cm-bf537e')
-rw-r--r-- | board/cm-bf537e/Kconfig | 9 | ||||
-rw-r--r-- | board/cm-bf537e/MAINTAINERS | 6 | ||||
-rw-r--r-- | board/cm-bf537e/Makefile | 12 | ||||
-rw-r--r-- | board/cm-bf537e/cm-bf537e.c | 44 | ||||
-rw-r--r-- | board/cm-bf537e/config.mk | 11 | ||||
-rw-r--r-- | board/cm-bf537e/gpio_cfi_flash.c | 81 | ||||
-rw-r--r-- | board/cm-bf537e/gpio_cfi_flash.h | 10 |
7 files changed, 0 insertions, 173 deletions
diff --git a/board/cm-bf537e/Kconfig b/board/cm-bf537e/Kconfig deleted file mode 100644 index af2e548..0000000 --- a/board/cm-bf537e/Kconfig +++ /dev/null @@ -1,9 +0,0 @@ -if TARGET_CM_BF537E - -config SYS_BOARD - default "cm-bf537e" - -config SYS_CONFIG_NAME - default "cm-bf537e" - -endif diff --git a/board/cm-bf537e/MAINTAINERS b/board/cm-bf537e/MAINTAINERS deleted file mode 100644 index 63d2428..0000000 --- a/board/cm-bf537e/MAINTAINERS +++ /dev/null @@ -1,6 +0,0 @@ -CM-BF537E BOARD -#M: Bluetechnix Tinyboards <bluetechnix@blackfin.uclinux.org> -S: Orphan (since 2014-03) -F: board/cm-bf537e/ -F: include/configs/cm-bf537e.h -F: configs/cm-bf537e_defconfig diff --git a/board/cm-bf537e/Makefile b/board/cm-bf537e/Makefile deleted file mode 100644 index 317098c..0000000 --- a/board/cm-bf537e/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -# -# U-Boot - Makefile -# -# Copyright (c) 2005-2008 Analog Device Inc. -# -# (C) Copyright 2000-2006 -# Wolfgang Denk, DENX Software Engineering, wd@denx.de. -# -# SPDX-License-Identifier: GPL-2.0+ -# - -obj-y := cm-bf537e.o gpio_cfi_flash.o diff --git a/board/cm-bf537e/cm-bf537e.c b/board/cm-bf537e/cm-bf537e.c deleted file mode 100644 index 7e4cfc2..0000000 --- a/board/cm-bf537e/cm-bf537e.c +++ /dev/null @@ -1,44 +0,0 @@ -/* - * U-Boot - main board file - * - * Copyright (c) 2005-2009 Analog Devices Inc. - * - * Licensed under the GPL-2 or later. - */ - -#include <common.h> -#include <config.h> -#include <command.h> -#include <net.h> -#include <netdev.h> -#include <asm/blackfin.h> -#include "gpio_cfi_flash.h" - -DECLARE_GLOBAL_DATA_PTR; - -int checkboard(void) -{ - printf("Board: Bluetechnix CM-BF537E board\n"); - printf(" Support: http://www.bluetechnix.at/\n"); - return 0; -} - -#ifndef CONFIG_BFIN_MAC -# define bfin_EMAC_initialize(x) 1 -#endif -#ifndef CONFIG_SMC911X -# define smc911x_initialize(n, x) 1 -#endif -int board_eth_init(bd_t *bis) -{ - /* return ok if at least 1 eth device works */ - return bfin_EMAC_initialize(bis) & - smc911x_initialize(0, CONFIG_SMC911X_BASE); -} - -int misc_init_r(void) -{ - gpio_cfi_flash_init(); - - return 0; -} diff --git a/board/cm-bf537e/config.mk b/board/cm-bf537e/config.mk deleted file mode 100644 index 7f9138b..0000000 --- a/board/cm-bf537e/config.mk +++ /dev/null @@ -1,11 +0,0 @@ -# -# Copyright (c) 2005-2008 Analog Device Inc. -# -# (C) Copyright 2001 -# Wolfgang Denk, DENX Software Engineering, wd@denx.de. -# -# SPDX-License-Identifier: GPL-2.0+ -# - -# Set some default LDR flags based on boot mode. -LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 diff --git a/board/cm-bf537e/gpio_cfi_flash.c b/board/cm-bf537e/gpio_cfi_flash.c deleted file mode 100644 index 1075cc4..0000000 --- a/board/cm-bf537e/gpio_cfi_flash.c +++ /dev/null @@ -1,81 +0,0 @@ -/* - * gpio_cfi_flash.c - GPIO-assisted Flash Chip Support - * - * Copyright (c) 2009-2010 Analog Devices Inc. - * - * Licensed under the GPL-2 or later. - */ - -#include <common.h> -#include <asm/blackfin.h> -#include <asm/gpio.h> -#include <asm/io.h> -#include "gpio_cfi_flash.h" - -/* Allow this driver to be shared among boards */ -#ifndef GPIO_PIN_1 -#define GPIO_PIN_1 GPIO_PF4 -#endif -#define GPIO_MASK_1 (1 << 21) -#ifndef GPIO_PIN_2 -#define GPIO_MASK_2 (0) -#else -#define GPIO_MASK_2 (1 << 22) -#endif -#ifndef GPIO_PIN_3 -#define GPIO_MASK_3 (0) -#else -#define GPIO_MASK_3 (1 << 23) -#endif -#define GPIO_MASK (GPIO_MASK_1 | GPIO_MASK_2 | GPIO_MASK_3) - -void *gpio_cfi_flash_swizzle(void *vaddr) -{ - unsigned long addr = (unsigned long)vaddr; - - gpio_set_value(GPIO_PIN_1, addr & GPIO_MASK_1); - -#ifdef GPIO_PIN_2 - gpio_set_value(GPIO_PIN_2, addr & GPIO_MASK_2); -#endif - -#ifdef GPIO_PIN_3 - gpio_set_value(GPIO_PIN_3, addr & GPIO_MASK_3); -#endif - - SSYNC(); - udelay(1); - - return (void *)(addr & ~GPIO_MASK); -} - -#define __raw_writeq(value, addr) *(volatile u64 *)addr = value -#define __raw_readq(addr) *(volatile u64 *)addr - -#define MAKE_FLASH(size, sfx) \ -void flash_write##size(u##size value, void *addr) \ -{ \ - __raw_write##sfx(value, gpio_cfi_flash_swizzle(addr)); \ -} \ -u##size flash_read##size(void *addr) \ -{ \ - return __raw_read##sfx(gpio_cfi_flash_swizzle(addr)); \ -} -MAKE_FLASH(8, b) /* flash_write8() flash_read8() */ -MAKE_FLASH(16, w) /* flash_write16() flash_read16() */ -MAKE_FLASH(32, l) /* flash_write32() flash_read32() */ -MAKE_FLASH(64, q) /* flash_write64() flash_read64() */ - -void gpio_cfi_flash_init(void) -{ - gpio_request(GPIO_PIN_1, "gpio_cfi_flash"); - gpio_direction_output(GPIO_PIN_1, 0); -#ifdef GPIO_PIN_2 - gpio_request(GPIO_PIN_2, "gpio_cfi_flash"); - gpio_direction_output(GPIO_PIN_2, 0); -#endif -#ifdef GPIO_PIN_3 - gpio_request(GPIO_PIN_3, "gpio_cfi_flash"); - gpio_direction_output(GPIO_PIN_3, 0); -#endif -} diff --git a/board/cm-bf537e/gpio_cfi_flash.h b/board/cm-bf537e/gpio_cfi_flash.h deleted file mode 100644 index 5211e97..0000000 --- a/board/cm-bf537e/gpio_cfi_flash.h +++ /dev/null @@ -1,10 +0,0 @@ -/* - * gpio_cfi_flash.c - GPIO-assisted Flash Chip Support - * - * Copyright (c) 2009 Analog Devices Inc. - * - * Licensed under the GPL-2 or later. - */ - -void *gpio_cfi_flash_swizzle(void *vaddr); -void gpio_cfi_flash_init(void); |