Blackfin updates for 2009.05
Subsystems (3)
cover Blackfin updates for 2009.05
Some more fixes and new boards (which were posted already).
Mike Frysinger (13):
Blackfin: bf548-ezkit: new board port
Blackfin: bf527-ezkit: new board port
Blackfin: bf538f-ezkit: new board port
Blackfin: bf526-ezbrd: new board port
Blackfin: bf518f-ezbrd: new board port
Blackfin: fix crash when booting from external memory
Blackfin: bf537-stamp: split CF/IDE code out into dedicated cf-ide.c
Blackfin: convert bfin_sdh to legacy mmc
Blackfin: drop newline from OTP help
Blackfin: do not delay on output bytes
Blackfin: add BF538/BF539 SPI portmux handling
Blackfin: bf533-stamp: drop old spi flash driver
Blackfin: force all boards to HZ of 1000
MAINTAINERS | 5 + MAKEALL | 5 + Makefile | 6 +- board/bf518f-ezbrd/.gitignore | 1 + board/bf518f-ezbrd/Makefile | 57 +++++ board/bf518f-ezbrd/bf518f-ezbrd.c | 101 ++++++++ board/bf518f-ezbrd/config.mk | 32 +++ board/bf518f-ezbrd/u-boot.lds.S | 124 ++++++++++ board/bf526-ezbrd/.gitignore | 1 + board/bf526-ezbrd/Makefile | 58 +++++ board/bf526-ezbrd/bf526-ezbrd.c | 77 +++++++ board/bf526-ezbrd/config.mk | 32 +++ board/bf526-ezbrd/status-led.c | 56 +++++ board/bf526-ezbrd/u-boot.lds.S | 124 ++++++++++ board/bf527-ezkit/.gitignore | 1 + board/bf527-ezkit/Makefile | 58 +++++ board/bf527-ezkit/bf527-ezkit.c | 77 +++++++ board/bf527-ezkit/config.mk | 32 +++ board/bf527-ezkit/u-boot.lds.S | 124 ++++++++++ board/bf527-ezkit/video.c | 317 ++++++++++++++++++++++++++ board/bf533-stamp/Makefile | 1 - board/bf533-stamp/spi_flash.c | 2 - board/bf537-stamp/Makefile | 1 + board/bf537-stamp/bf537-stamp.c | 57 +----- board/bf537-stamp/ide-cf.c | 66 ++++++ board/bf538f-ezkit/.gitignore | 1 + board/bf538f-ezkit/Makefile | 57 +++++ board/bf538f-ezkit/bf538f-ezkit.c | 27 +++ board/bf538f-ezkit/config.mk | 33 +++ board/bf538f-ezkit/u-boot.lds.S | 143 ++++++++++++ board/bf548-ezkit/.gitignore | 1 + board/bf548-ezkit/Makefile | 58 +++++ board/bf548-ezkit/bf548-ezkit.c | 79 +++++++ board/bf548-ezkit/config.mk | 37 +++ board/bf548-ezkit/u-boot.lds.S | 124 ++++++++++ board/bf548-ezkit/video.c | 327 +++++++++++++++++++++++++++ common/cmd_otp.c | 2 +- cpu/blackfin/initcode.c | 9 + cpu/blackfin/serial.c | 4 - cpu/blackfin/start.S | 2 + drivers/mmc/bfin_sdh.c | 14 +- drivers/spi/bfin_spi.c | 18 ++ include/asm-blackfin/blackfin-config-post.h | 8 +- include/configs/bf518f-ezbrd.h | 147 ++++++++++++ include/configs/bf526-ezbrd.h | 190 ++++++++++++++++ include/configs/bf527-ezkit.h | 172 ++++++++++++++ include/configs/bf538f-ezkit.h | 139 ++++++++++++ include/configs/bf548-ezkit.h | 211 +++++++++++++++++ 48 files changed, 3140 insertions(+), 78 deletions(-) create mode 100644 board/bf518f-ezbrd/.gitignore create mode 100644 board/bf518f-ezbrd/Makefile create mode 100644 board/bf518f-ezbrd/bf518f-ezbrd.c create mode 100644 board/bf518f-ezbrd/config.mk create mode 100644 board/bf518f-ezbrd/u-boot.lds.S create mode 100644 board/bf526-ezbrd/.gitignore create mode 100644 board/bf526-ezbrd/Makefile create mode 100644 board/bf526-ezbrd/bf526-ezbrd.c create mode 100644 board/bf526-ezbrd/config.mk create mode 100644 board/bf526-ezbrd/status-led.c create mode 100644 board/bf526-ezbrd/u-boot.lds.S create mode 100644 board/bf527-ezkit/.gitignore create mode 100644 board/bf527-ezkit/Makefile create mode 100644 board/bf527-ezkit/bf527-ezkit.c create mode 100644 board/bf527-ezkit/config.mk create mode 100644 board/bf527-ezkit/u-boot.lds.S create mode 100644 board/bf527-ezkit/video.c delete mode 100644 board/bf533-stamp/spi_flash.c create mode 100644 board/bf537-stamp/ide-cf.c create mode 100644 board/bf538f-ezkit/.gitignore create mode 100644 board/bf538f-ezkit/Makefile create mode 100644 board/bf538f-ezkit/bf538f-ezkit.c create mode 100644 board/bf538f-ezkit/config.mk create mode 100644 board/bf538f-ezkit/u-boot.lds.S create mode 100644 board/bf548-ezkit/.gitignore create mode 100644 board/bf548-ezkit/Makefile create mode 100644 board/bf548-ezkit/bf548-ezkit.c create mode 100644 board/bf548-ezkit/config.mk create mode 100644 board/bf548-ezkit/u-boot.lds.S create mode 100644 board/bf548-ezkit/video.c create mode 100644 include/configs/bf518f-ezbrd.h create mode 100644 include/configs/bf526-ezbrd.h create mode 100644 include/configs/bf527-ezkit.h create mode 100644 include/configs/bf538f-ezkit.h create mode 100644 include/configs/bf548-ezkit.h
PATCH 1/13 Blackfin: bf548-ezkit: new board port
--- MAINTAINERS | 1 + MAKEALL | 1 + Makefile | 5 +- board/bf548-ezkit/.gitignore | 1 + board/bf548-ezkit/Makefile | 58 +++++++ board/bf548-ezkit/bf548-ezkit.c | 79 ++++++++++ board/bf548-ezkit/config.mk | 37 +++++ board/bf548-ezkit/u-boot.lds.S | 124 +++++++++++++++ board/bf548-ezkit/video.c | 327 +++++++++++++++++++++++++++++++++++++++ include/configs/bf548-ezkit.h | 211 +++++++++++++++++++++++++ 10 files changed, 842 insertions(+), 2 deletions(-) create mode 100644 board/bf548-ezkit/.gitignore create mode 100644 board/bf548-ezkit/Makefile create mode 100644 board/bf548-ezkit/bf548-ezkit.c create mode 100644 board/bf548-ezkit/config.mk create mode 100644 board/bf548-ezkit/u-boot.lds.S create mode 100644 board/bf548-ezkit/video.c create mode 100644 include/configs/bf548-ezkit.h
MAINTAINERS +1 -0
@@ -857,6 +857,7 @@ Blackfin Team <[email protected]> BF533-EZKIT BF533 BF533-STAMP BF533 BF537-STAMP BF537 + BF548-EZKIT BF548 BF561-EZKIT BF561 #########################################################################
MAKEALL +1 -0
@@ -791,6 +791,7 @@ LIST_blackfin=" \ bf533-ezkit \ bf533-stamp \ bf537-stamp \ + bf548-ezkit \ bf561-ezkit \ "
Makefile +3 -2
@@ -3336,7 +3336,7 @@ suzaku_config: unconfig #======================================================================== # Analog Devices boards -BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf561-ezkit +BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf548-ezkit bf561-ezkit $(BFIN_BOARDS:%=%_config) : unconfig @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
@@ -3510,7 +3510,8 @@ clean: $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \ - $(obj)board/{bf533-ezkit,bf533-stamp,bf537-stamp,bf561-ezkit}/u-boot.lds \ + $(obj)board/bf5{33,48,61}-ezkit/u-boot.lds \ + $(obj)board/bf5{33,37}-stamp/u-boot.lds \ $(obj)cpu/blackfin/bootrom-asm-offsets.[chs] @rm -f $(obj)include/bmp_logo.h @rm -f $(obj)nand_spl/{u-boot-spl,u-boot-spl.map,System.map}
board/bf548-ezkit/.gitignore new file +1 -0
@@ -0,0 +1 @@ +/u-boot.lds
board/bf548-ezkit/Makefile new file +58 -0
58 lines not on this page · raw message
board/bf548-ezkit/bf548-ezkit.c new file +79 -0
79 lines not on this page · raw message
board/bf548-ezkit/config.mk new file +37 -0
@@ -0,0 +1,37 @@ +# +# Copyright (c) 2005-2008 Analog Device Inc. +# +# (C) Copyright 2001 +# Wolfgang Denk, DENX Software Engineering, wd at denx.de. +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +# This is not actually used for Blackfin boards so do not change it +#TEXT_BASE = do-not-use-me + +LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds + +# Set some default LDR flags based on boot mode. +LDR_FLAGS-BFIN_BOOT_PARA := --dma 6 +LDR_FLAGS-BFIN_BOOT_FIFO := --dma 1 +LDR_FLAGS-BFIN_BOOT_SPI_MASTER := --dma 1 +LDR_FLAGS-BFIN_BOOT_UART := --dma 1 +LDR_FLAGS-BFIN_BOOT_NAND := --dma 6 +LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf548-ezkit/u-boot.lds.S new file +124 -0
124 lines not on this page · raw message
board/bf548-ezkit/video.c new file +327 -0
327 lines not on this page · raw message
include/configs/bf548-ezkit.h new file +211 -0
211 lines not on this page · raw message
Signature · 1 line
1.6.2
PATCH 2/13 Blackfin: bf527-ezkit: new board port
In reply to Mike Frysinger--- MAINTAINERS | 1 + MAKEALL | 1 + Makefile | 5 +- board/bf527-ezkit/.gitignore | 1 + board/bf527-ezkit/Makefile | 58 +++++++ board/bf527-ezkit/bf527-ezkit.c | 77 ++++++++++ board/bf527-ezkit/config.mk | 32 ++++ board/bf527-ezkit/u-boot.lds.S | 124 +++++++++++++++ board/bf527-ezkit/video.c | 317 +++++++++++++++++++++++++++++++++++++++ include/configs/bf527-ezkit.h | 172 +++++++++++++++++++++ 10 files changed, 786 insertions(+), 2 deletions(-) create mode 100644 board/bf527-ezkit/.gitignore create mode 100644 board/bf527-ezkit/Makefile create mode 100644 board/bf527-ezkit/bf527-ezkit.c create mode 100644 board/bf527-ezkit/config.mk create mode 100644 board/bf527-ezkit/u-boot.lds.S create mode 100644 board/bf527-ezkit/video.c create mode 100644 include/configs/bf527-ezkit.h
MAINTAINERS +1 -0
@@ -854,6 +854,7 @@ Yusuke Goda <[email protected]> Mike Frysinger <[email protected]> Blackfin Team <[email protected]> + BF527-EZKIT BF527 BF533-EZKIT BF533 BF533-STAMP BF533 BF537-STAMP BF537
MAKEALL +1 -0
@@ -788,6 +788,7 @@ LIST_avr32=" \ ######################################################################### LIST_blackfin=" \ + bf527-ezkit \ bf533-ezkit \ bf533-stamp \ bf537-stamp \
Makefile +3 -2
@@ -3336,7 +3336,8 @@ suzaku_config: unconfig #======================================================================== # Analog Devices boards -BFIN_BOARDS = bf533-ezkit bf533-stamp bf537-stamp bf548-ezkit bf561-ezkit +BFIN_BOARDS = bf527-ezkit bf533-ezkit bf533-stamp bf537-stamp bf548-ezkit \ + bf561-ezkit $(BFIN_BOARDS:%=%_config) : unconfig @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
@@ -3510,7 +3511,7 @@ clean: $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \ - $(obj)board/bf5{33,48,61}-ezkit/u-boot.lds \ + $(obj)board/bf5{27,33,48,61}-ezkit/u-boot.lds \ $(obj)board/bf5{33,37}-stamp/u-boot.lds \ $(obj)cpu/blackfin/bootrom-asm-offsets.[chs] @rm -f $(obj)include/bmp_logo.h
board/bf527-ezkit/.gitignore new file +1 -0
@@ -0,0 +1 @@ +/u-boot.lds
board/bf527-ezkit/Makefile new file +58 -0
58 lines not on this page · raw message
board/bf527-ezkit/bf527-ezkit.c new file +77 -0
77 lines not on this page · raw message
board/bf527-ezkit/config.mk new file +32 -0
@@ -0,0 +1,32 @@ +# +# Copyright (c) 2005-2008 Analog Device Inc. +# +# (C) Copyright 2001 +# Wolfgang Denk, DENX Software Engineering, wd at denx.de. +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +# This is not actually used for Blackfin boards so do not change it +#TEXT_BASE = do-not-use-me + +LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds + +# Set some default LDR flags based on boot mode. +LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf527-ezkit/u-boot.lds.S new file +124 -0
124 lines not on this page · raw message
board/bf527-ezkit/video.c new file +317 -0
317 lines not on this page · raw message
include/configs/bf527-ezkit.h new file +172 -0
172 lines not on this page · raw message
Signature · 1 line
1.6.2
PATCH 3/13 Blackfin: bf538f-ezkit: new board port
In reply to Mike Frysinger--- MAINTAINERS | 1 + MAKEALL | 1 + Makefile | 6 +- board/bf538f-ezkit/.gitignore | 1 + board/bf538f-ezkit/Makefile | 57 +++++++++++++++ board/bf538f-ezkit/bf538f-ezkit.c | 27 +++++++ board/bf538f-ezkit/config.mk | 33 +++++++++ board/bf538f-ezkit/u-boot.lds.S | 143 +++++++++++++++++++++++++++++++++++++ include/configs/bf538f-ezkit.h | 139 +++++++++++++++++++++++++++++++++++ 9 files changed, 405 insertions(+), 3 deletions(-) create mode 100644 board/bf538f-ezkit/.gitignore create mode 100644 board/bf538f-ezkit/Makefile create mode 100644 board/bf538f-ezkit/bf538f-ezkit.c create mode 100644 board/bf538f-ezkit/config.mk create mode 100644 board/bf538f-ezkit/u-boot.lds.S create mode 100644 include/configs/bf538f-ezkit.h
MAINTAINERS +1 -0
@@ -858,6 +858,7 @@ Blackfin Team <[email protected]> BF533-EZKIT BF533 BF533-STAMP BF533 BF537-STAMP BF537 + BF538F-EZKIT BF538 BF548-EZKIT BF548 BF561-EZKIT BF561
MAKEALL +1 -0
@@ -792,6 +792,7 @@ LIST_blackfin=" \ bf533-ezkit \ bf533-stamp \ bf537-stamp \ + bf538f-ezkit \ bf548-ezkit \ bf561-ezkit \ "
Makefile +3 -3
@@ -3336,8 +3336,8 @@ suzaku_config: unconfig #======================================================================== # Analog Devices boards -BFIN_BOARDS = bf527-ezkit bf533-ezkit bf533-stamp bf537-stamp bf548-ezkit \ - bf561-ezkit +BFIN_BOARDS = bf527-ezkit bf533-ezkit bf533-stamp bf537-stamp bf538f-ezkit \ + bf548-ezkit bf561-ezkit $(BFIN_BOARDS:%=%_config) : unconfig @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
@@ -3511,7 +3511,7 @@ clean: $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \ - $(obj)board/bf5{27,33,48,61}-ezkit/u-boot.lds \ + $(obj)board/bf5{27,33,38f,48,61}-ezkit/u-boot.lds \ $(obj)board/bf5{33,37}-stamp/u-boot.lds \ $(obj)cpu/blackfin/bootrom-asm-offsets.[chs] @rm -f $(obj)include/bmp_logo.h
board/bf538f-ezkit/.gitignore new file +1 -0
@@ -0,0 +1 @@ +/u-boot.lds
board/bf538f-ezkit/Makefile new file +57 -0
57 lines not on this page · raw message
board/bf538f-ezkit/bf538f-ezkit.c new file +27 -0
@@ -0,0 +1,27 @@ +/* +* U-boot - main board file +* +* Copyright (c) 2008 Analog Devices Inc. +* +* Licensed under the GPL-2 or later. +*/ + +#include <common.h> +#include <config.h> +#include <asm/blackfin.h> + +DECLARE_GLOBAL_DATA_PTR ; + +int checkboard (void ) +{ +printf ("Board: ADI BF538F EZ-Kit Lite board\n" ); +printf (" Support: http://blackfin.uclinux.org/\n" ); +return 0 ; +} + +phys_size_t initdram (int board_type) +{ + gd->bd->bi_memstart =CONFIG_SYS_SDRAM_BASE ; + gd->bd->bi_memsize =CONFIG_SYS_MAX_RAM_SIZE ; +return gd->bd->bi_memsize; +}
board/bf538f-ezkit/config.mk new file +33 -0
@@ -0,0 +1,33 @@ +# +# Copyright (c) 2005-2008 Analog Device Inc. +# +# (C) Copyright 2001 +# Wolfgang Denk, DENX Software Engineering, wd at denx.de. +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +# This is not actually used for Blackfin boards so do not change it +#TEXT_BASE = do-not-use-me + +LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds + +# Set some default LDR flags based on boot mode. +LDR_FLAGS-BFIN_BOOT_PARA := --bits 16 --dma 8 +LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf538f-ezkit/u-boot.lds.S new file +143 -0
143 lines not on this page · raw message
include/configs/bf538f-ezkit.h new file +139 -0
139 lines not on this page · raw message
Signature · 1 line
1.6.2
PATCH 4/13 Blackfin: bf526-ezbrd: new board port
In reply to Mike Frysinger--- MAINTAINERS | 1 + MAKEALL | 1 + Makefile | 6 +- board/bf526-ezbrd/.gitignore | 1 + board/bf526-ezbrd/Makefile | 58 ++++++++++++ board/bf526-ezbrd/bf526-ezbrd.c | 77 ++++++++++++++++ board/bf526-ezbrd/config.mk | 32 +++++++ board/bf526-ezbrd/status-led.c | 56 ++++++++++++ board/bf526-ezbrd/u-boot.lds.S | 124 +++++++++++++++++++++++++ include/configs/bf526-ezbrd.h | 190 +++++++++++++++++++++++++++++++++++++++ 10 files changed, 543 insertions(+), 3 deletions(-) create mode 100644 board/bf526-ezbrd/.gitignore create mode 100644 board/bf526-ezbrd/Makefile create mode 100644 board/bf526-ezbrd/bf526-ezbrd.c create mode 100644 board/bf526-ezbrd/config.mk create mode 100644 board/bf526-ezbrd/status-led.c create mode 100644 board/bf526-ezbrd/u-boot.lds.S create mode 100644 include/configs/bf526-ezbrd.h
MAINTAINERS +1 -0
@@ -854,6 +854,7 @@ Yusuke Goda <[email protected]> Mike Frysinger <[email protected]> Blackfin Team <[email protected]> + BF526-EZBRD BF526 BF527-EZKIT BF527 BF533-EZKIT BF533 BF533-STAMP BF533
MAKEALL +1 -0
@@ -788,6 +788,7 @@ LIST_avr32=" \ ######################################################################### LIST_blackfin=" \ + bf526-ezbrd \ bf527-ezkit \ bf533-ezkit \ bf533-stamp \
Makefile +3 -3
@@ -3336,8 +3336,8 @@ suzaku_config: unconfig #======================================================================== # Analog Devices boards -BFIN_BOARDS = bf527-ezkit bf533-ezkit bf533-stamp bf537-stamp bf538f-ezkit \ - bf548-ezkit bf561-ezkit +BFIN_BOARDS = bf526-ezbrd bf527-ezkit bf533-ezkit bf533-stamp bf537-stamp \ + bf538f-ezkit bf548-ezkit bf561-ezkit $(BFIN_BOARDS:%=%_config) : unconfig @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
@@ -3511,7 +3511,7 @@ clean: $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \ - $(obj)board/bf5{27,33,38f,48,61}-ezkit/u-boot.lds \ + $(obj)board/bf5{26,27,33,38f,48,61}-ez{brd,kit}/u-boot.lds \ $(obj)board/bf5{33,37}-stamp/u-boot.lds \ $(obj)cpu/blackfin/bootrom-asm-offsets.[chs] @rm -f $(obj)include/bmp_logo.h
board/bf526-ezbrd/.gitignore new file +1 -0
@@ -0,0 +1 @@ +/u-boot.lds
board/bf526-ezbrd/Makefile new file +58 -0
58 lines not on this page · raw message
board/bf526-ezbrd/bf526-ezbrd.c new file +77 -0
77 lines not on this page · raw message
board/bf526-ezbrd/config.mk new file +32 -0
@@ -0,0 +1,32 @@ +# +# Copyright (c) 2005-2008 Analog Device Inc. +# +# (C) Copyright 2001 +# Wolfgang Denk, DENX Software Engineering, [email protected]. +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +# This is not actually used for Blackfin boards so do not change it +#TEXT_BASE = do-not-use-me + +LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds + +# Set some default LDR flags based on boot mode. +LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf526-ezbrd/status-led.c new file +56 -0
56 lines not on this page · raw message
board/bf526-ezbrd/u-boot.lds.S new file +124 -0
124 lines not on this page · raw message
include/configs/bf526-ezbrd.h new file +190 -0
190 lines not on this page · raw message
Signature · 1 line
1.6.2
PATCH 5/13 Blackfin: bf518f-ezbrd: new board port
In reply to Mike Frysinger--- MAINTAINERS | 1 + MAKEALL | 1 + Makefile | 6 +- board/bf518f-ezbrd/.gitignore | 1 + board/bf518f-ezbrd/Makefile | 57 ++++++++++++++ board/bf518f-ezbrd/bf518f-ezbrd.c | 101 +++++++++++++++++++++++++ board/bf518f-ezbrd/config.mk | 32 ++++++++ board/bf518f-ezbrd/u-boot.lds.S | 124 +++++++++++++++++++++++++++++++ include/configs/bf518f-ezbrd.h | 147 +++++++++++++++++++++++++++++++++++++ 9 files changed, 467 insertions(+), 3 deletions(-) create mode 100644 board/bf518f-ezbrd/.gitignore create mode 100644 board/bf518f-ezbrd/Makefile create mode 100644 board/bf518f-ezbrd/bf518f-ezbrd.c create mode 100644 board/bf518f-ezbrd/config.mk create mode 100644 board/bf518f-ezbrd/u-boot.lds.S create mode 100644 include/configs/bf518f-ezbrd.h
MAINTAINERS +1 -0
@@ -854,6 +854,7 @@ Yusuke Goda <[email protected]> Mike Frysinger <[email protected]> Blackfin Team <[email protected]> + BF518F-EZBRD BF518 BF526-EZBRD BF526 BF527-EZKIT BF527 BF533-EZKIT BF533
MAKEALL +1 -0
@@ -788,6 +788,7 @@ LIST_avr32=" \ ######################################################################### LIST_blackfin=" \ + bf518f-ezbrd \ bf526-ezbrd \ bf527-ezkit \ bf533-ezkit \
Makefile +3 -3
@@ -3336,8 +3336,8 @@ suzaku_config: unconfig #======================================================================== # Analog Devices boards -BFIN_BOARDS = bf526-ezbrd bf527-ezkit bf533-ezkit bf533-stamp bf537-stamp \ - bf538f-ezkit bf548-ezkit bf561-ezkit +BFIN_BOARDS = bf518f-ezbrd bf526-ezbrd bf527-ezkit bf533-ezkit bf533-stamp \ + bf537-stamp bf538f-ezkit bf548-ezkit bf561-ezkit $(BFIN_BOARDS:%=%_config) : unconfig @$(MKCONFIG) $(@:_config=) blackfin blackfin $(@:_config=)
@@ -3511,7 +3511,7 @@ clean: $(obj)board/netstar/{eeprom,crcek,crcit,*.srec,*.bin} \ $(obj)board/trab/trab_fkt $(obj)board/voiceblue/eeprom \ $(obj)board/armltd/{integratorap,integratorcp}/u-boot.lds \ - $(obj)board/bf5{26,27,33,38f,48,61}-ez{brd,kit}/u-boot.lds \ + $(obj)board/bf5{18f,26,27,33,38f,48,61}-ez{brd,kit}/u-boot.lds \ $(obj)board/bf5{33,37}-stamp/u-boot.lds \ $(obj)cpu/blackfin/bootrom-asm-offsets.[chs] @rm -f $(obj)include/bmp_logo.h
board/bf518f-ezbrd/.gitignore new file +1 -0
@@ -0,0 +1 @@ +/u-boot.lds
board/bf518f-ezbrd/Makefile new file +57 -0
57 lines not on this page · raw message
board/bf518f-ezbrd/bf518f-ezbrd.c new file +101 -0
101 lines not on this page · raw message
board/bf518f-ezbrd/config.mk new file +32 -0
@@ -0,0 +1,32 @@ +# +# Copyright (c) 2005-2008 Analog Device Inc. +# +# (C) Copyright 2001 +# Wolfgang Denk, DENX Software Engineering, wd at denx.de. +# +# See file CREDITS for list of people who contributed to this +# project. +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# + +# This is not actually used for Blackfin boards so do not change it +#TEXT_BASE = do-not-use-me + +LDSCRIPT = $(obj)board/$(BOARDDIR)/u-boot.lds + +# Set some default LDR flags based on boot mode. +LDR_FLAGS += $(LDR_FLAGS-$(CONFIG_BFIN_BOOT_MODE))
board/bf518f-ezbrd/u-boot.lds.S new file +124 -0
124 lines not on this page · raw message
include/configs/bf518f-ezbrd.h new file +147 -0
147 lines not on this page · raw message
Signature · 1 line
1.6.2
PATCH 6/13 Blackfin: fix crash when booting from external memory
In reply to Mike FrysingerWhen testing a u-boot binary that hasn't been booted from the bootrom, we have to make sure the bootstruct structure has sane storage space. If we don't, the initcode will crash when it tries to dereference an invalid pointer.
--- cpu/blackfin/initcode.c | 9 +++++++++ cpu/blackfin/start.S | 2 ++ 2 files changed, 11 insertions(+), 0 deletions(-)
cpu/blackfin/initcode.c +9 -0
@@ -249,6 +249,8 @@ static inline void serial_putc(char c)BOOTROM_CALLED_FUNC_ATTR void initcode(ADI_BOOT_DATA *bootstruct) { +ADI_BOOT_DATA bootstruct_scratch; +/* Save the clock pieces that are used in baud rate calculation */ unsigned int sdivB, divB, vcoB;serial_init ();
@@ -260,6 +262,13 @@ void initcode(ADI_BOOT_DATA *bootstruct)serial_putc ('A' ); +/* If the bootstruct is NULL, then it's because we're loading +* dynamically and not via LDR (bootrom). So set the struct to +* some scratch space. +*/ +if (!bootstruct) + bootstruct = &bootstruct_scratch; +#ifdef CONFIG_HW_WATCHDOG # ifndef CONFIG_HW_WATCHDOG_TIMEOUT_INITCODE # define CONFIG_HW_WATCHDOG_TIMEOUT_INITCODE 20000
cpu/blackfin/start.S +2 -0
@@ -131,6 +131,7 @@ ENTRY(_start) r3.h = 0x2000; cc = r5 < r3 (iu); if cc jump .Ldma_and_reprogram; + r0 = 0 (x); /* set bootstruct to NULL */ call _initcode; jump .Lprogrammed;
@@ -147,6 +148,7 @@ ENTRY(_start) r1 = r1 + r5; /* ... to current (not load) address of initcode */ p3 = r0; call _dma_memcpy_nocache; + r0 = 0 (x); /* set bootstruct to NULL */ call (p3); /* Since we reprogrammed SCLK, we need to update the serial divisor */
Signature · 1 line
1.6.2
PATCH 7/13 Blackfin: bf537-stamp: split CF/IDE code out into dedicated cf-ide.c
In reply to Mike Frysinger--- board/bf537-stamp/Makefile | 1 + board/bf537-stamp/bf537-stamp.c | 57 ++------------------------------- board/bf537-stamp/ide-cf.c | 66 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+), 54 deletions(-) create mode 100644 board/bf537-stamp/ide-cf.c
board/bf537-stamp/Makefile +1 -0
@@ -30,6 +30,7 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).a COBJS-y := $(BOARD).o cmd_bf537led.o +COBJS-$(CONFIG_BFIN_IDE) += ide-cf.o COBJS-$(CONFIG_CMD_EEPROM) += spi_flash.o COBJS-$(CONFIG_CMD_NAND) += nand.o COBJS-$(CONFIG_POST) += post.o post-memory.o
board/bf537-stamp/bf537-stamp.c +3 -54
75 lines not on this page · raw message
board/bf537-stamp/ide-cf.c new file +66 -0
66 lines not on this page · raw message
Signature · 1 line
1.6.2
PATCH 8/13 Blackfin: convert bfin_sdh to legacy mmc
In reply to Mike FrysingerThe Blackfin SDH controller is still using the legacy framework, so update the driver to use the renamed functions.
--- drivers/mmc/bfin_sdh.c | 14 ++------------ 1 files changed, 2 insertions(+), 12 deletions(-)
drivers/mmc/bfin_sdh.c +2 -12
@@ -293,7 +293,7 @@ mmc_bwrite(int dev, unsigned long start, lbaint_t blkcnt, const void *buffer)printf ("MMC_CMD_SET_BLOCKLEN failed\n" ); goto out; } - ret =mmc_cmd (MMC_CMD_WRITE_BLOCK , + ret =mmc_cmd (MMC_CMD_WRITE_SINGLE_BLOCK , start * mmc_blkdev.blksz, resp,MMC_RSP_R1 );if (ret) {
@@ -462,7 +462,7 @@ static int mmc_init_card(struct mmc_cid *cid, int verbose)return ret; } -int mmc_init (int verbose) +int mmc_legacy_init (int verbose) {__u16 pwr_ctl =0 ;int ret;
@@ -530,16 +530,6 @@ int mmc_init(int verbose)return 0 ; } -int mmc_read (ulong src,uchar *dst,int size) -{ -return -ENOSYS ; -} - -int mmc_write (uchar *src,ulong dst,int size) -{ -return -ENOSYS ; -} -int mmc2info (ulong addr) {return 0 ;
Signature · 1 line
1.6.2
PATCH 9/13 Blackfin: drop newline from OTP help
In reply to Mike FrysingerLooks like I accidentally added a newline to the OTP help when merging and older change.
--- common/cmd_otp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
common/cmd_otp.c +1 -1
@@ -225,7 +225,7 @@ int do_otp(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) }U_BOOT_CMD (otp,7 ,0 , do_otp, -"One-Time-Programmable sub-system\n" , +"One-Time-Programmable sub-system" ,"read <addr> <page> [count] [half]\n" " - read 'count' half-pages starting at 'page' (offset 'half') to 'addr'\n" "otp dump <addr> <page> [count] [half]\n"
Signature · 1 line
1.6.2
PATCH 10/13 Blackfin: do not delay on output bytes
In reply to Mike Frysinger--- cpu/blackfin/serial.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
cpu/blackfin/serial.c +0 -4
@@ -115,10 +115,6 @@ void serial_putc(const char c)SSYNC ();WATCHDOG_RESET (); - -/* wait for the byte to be shifted over the line */ -while (!(uart_lsr_read () &TEMT )) -continue ; }int serial_tstc (void )
Signature · 1 line
1.6.2
PATCH 11/13 Blackfin: add BF538/BF539 SPI portmux handling
In reply to Mike Frysinger--- drivers/spi/bfin_spi.c | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-)
drivers/spi/bfin_spi.c +18 -0
@@ -36,6 +36,11 @@ MAKE_SPI_FUNC(SPI_BAUD, 0x14) __attribute__((weak))int spi_cs_is_valid (unsigned int bus,unsigned int cs) { +#if defined(__ADSPBF538__) || defined(__ADSPBF539__) +/* The SPI1/SPI2 buses are weird ... only 1 CS */ +if (bus >0 && cs !=1 ) +return 0 ; +#endif return (cs >=1 && cs <=7 ); }
@@ -204,6 +209,19 @@ static void spi_portmux(struct spi_slave *slave) }bfin_write_PORT_MUX (mux);bfin_write_PORTF_FER (f_fer); +#elif defined(__ADSPBF538__) || defined(__ADSPBF539__) +u16 fer, pins; +if (slave->bus ==1 ) + pins =PD0 |PD1 |PD2 | (slave->cs ==1 ?PD4 :0 ); +else if (slave->bus ==2 ) + pins =PD5 |PD6 |PD7 | (slave->cs ==1 ?PD9 :0 ); +else + pins =0 ; +if (pins) { + fer =bfin_read_PORTDIO_FER (); + fer &= ~pins; +bfin_write_PORTDIO_FER (fer); + }#elif defined(__ADSPBF54x__)#define DO_MUX (port, pin) \ mux = ((mux & ~PORT_x_MUX_##pin##_MASK) | PORT_x_MUX_##pin##_FUNC_1); \
Signature · 1 line
1.6.2
PATCH 12/13 Blackfin: bf533-stamp: drop old spi flash driver
In reply to Mike FrysingerNow that the common SPI flash code supports all the flashes, we can stop using the old driver.
--- board/bf533-stamp/Makefile | 1 - board/bf533-stamp/spi_flash.c | 2 -- 2 files changed, 0 insertions(+), 3 deletions(-) delete mode 100644 board/bf533-stamp/spi_flash.c
board/bf533-stamp/Makefile +0 -1
@@ -30,7 +30,6 @@ include $(TOPDIR)/config.mk LIB = $(obj)lib$(BOARD).a COBJS-y := $(BOARD).o -COBJS-$(CONFIG_CMD_EEPROM) += spi_flash.o COBJS-$(CONFIG_VIDEO) += video.o SRCS := $(SOBJS-y:.o=.S) $(COBJS-y:.o=.c)
board/bf533-stamp/spi_flash.c deleted +0 -2
@@ -1,2 +0,0 @@ -/* Share the spi flash code */ -#include "../bf537-stamp/spi_flash.c"
Signature · 1 line
1.6.2
PATCH 13/13 Blackfin: force all boards to HZ of 1000
In reply to Mike FrysingerSince the Blackfin timer code requires HZ to be 1000, barf on any board that tries to use a different value.
--- include/asm-blackfin/blackfin-config-post.h | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)
include/asm-blackfin/blackfin-config-post.h +6 -2
@@ -135,9 +135,13 @@#ifndef CONFIG_SYS_MAXARGS # define CONFIG_SYS_MAXARGS 16#endif -#ifndef CONFIG_SYS_HZ -# define CONFIG_SYS_HZ 1000 +#if defined(CONFIG_SYS_HZ ) +# if (CONFIG_SYS_HZ !=1000 ) +# warning "CONFIG_SYS_HZ must always be 1000" +# endif +# undef CONFIG_SYS_HZ#endif +#define CONFIG_SYS_HZ 1000#ifndef CONFIG_SYS_BAUDRATE_TABLE # define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }#endif
Signature · 1 line
1.6.2
PATCH 13/13 Blackfin: force all boards to HZ of 1000
Quoted 13 lines · Mike Frysinger
Since the Blackfin timer code requires HZ to be 1000, barf on any board that tries to use a different value.
Signed-off-by Mike Frysinger <[email protected]>--- include/asm-blackfin/blackfin-config-post.h | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)include/asm-blackfin/blackfin-config-post.h +0
-0
include/asm-blackfin/blackfin-config-post.h line 142
Quoted 10 lines
include/asm-blackfin/blackfin-config-post.h +5
-2@@ -135,9 +135,13 @@#ifndef CONFIG_SYS_MAXARGS # define CONFIG_SYS_MAXARGS 16#endif -#ifndef CONFIG_SYS_HZ -# define CONFIG_SYS_HZ 1000 +#if defined(CONFIG_SYS_HZ ) +# if (CONFIG_SYS_HZ !=1000 ) +# warning "CONFIG_SYS_HZ must always be 1000" +# endif +# undef CONFIG_SYS_HZ
does this is really necessary?
include/asm-blackfin/blackfin-config-post.h line 144
Quoted 2 lines
include/asm-blackfin/blackfin-config-post.h +1
-0#endif +#define CONFIG_SYS_HZ 1000
why not asm-blackfin/config.h?
Best Regards,
J.
PATCH 13/13 Blackfin: force all boards to HZ of 1000
Quoted 19 lines · On Thursday 02 April 2009 06:57:03 Jean-Christophe PLAGNIOL-VILLARD wrote:
Quoted 18 lines · Mike Frysinger
Since the Blackfin timer code requires HZ to be 1000, barf on any board that tries to use a different value.
Signed-off-by Mike Frysinger <[email protected]>--- include/asm-blackfin/blackfin-config-post.h | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/asm-blackfin/blackfin-config-post.hindex fea4737..623fdc7 100644include/asm-blackfin/blackfin-config-post.h +0
-1@@ -135,9 +135,13 @@#ifndef CONFIG_SYS_MAXARGS # define CONFIG_SYS_MAXARGS 16#endif -#ifndef CONFIG_SYS_HZ
Quoted 8 lines
include/asm-blackfin/blackfin-config-post.h line 142
Quoted 6 lines
include/asm-blackfin/blackfin-config-post.h +5
-1-# define CONFIG_SYS_HZ 1000 +#if defined(CONFIG_SYS_HZ ) +# if (CONFIG_SYS_HZ !=1000 ) +# warning "CONFIG_SYS_HZ must always be 1000" +# endif +# undef CONFIG_SYS_HZdoes this is really necessary?
to prevent insane people today, sure. it'll probably fall out when i start my "cleanup ticks and timer" work for the next merge though ...
Quoted 4 lines
include/asm-blackfin/blackfin-config-post.h line 144
Quoted 2 lines
include/asm-blackfin/blackfin-config-post.h +1
-0#endif +#define CONFIG_SYS_HZ 1000why not
asm-blackfin/config.h?
there is no such file ? there are pre/post config files for Blackfin ports which contain Blackfin-specific settings. for vendor-specific common settings, there are files in the normal include/config/ tree.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090402/dfc4eb59/attachment.pgp
PATCH 13/13 Blackfin: force all boards to HZ of 1000
Quoted 32 lines · Mike Frysinger
Quoted 19 lines · On Thursday 02 April 2009 06:57:03 Jean-Christophe PLAGNIOL-VILLARD wrote:
Quoted 18 lines · Mike Frysinger
Since the Blackfin timer code requires HZ to be 1000, barf on any board that tries to use a different value.
Signed-off-by Mike Frysinger <[email protected]>--- include/asm-blackfin/blackfin-config-post.h | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/asm-blackfin/blackfin-config-post.hindex fea4737..623fdc7 100644include/asm-blackfin/blackfin-config-post.h +0
-1@@ -135,9 +135,13 @@#ifndef CONFIG_SYS_MAXARGS # define CONFIG_SYS_MAXARGS 16#endif -#ifndef CONFIG_SYS_HZ Quoted 8 lines
include/asm-blackfin/blackfin-config-post.h line 142
Quoted 6 lines
include/asm-blackfin/blackfin-config-post.h +5
-1-# define CONFIG_SYS_HZ 1000 +#if defined(CONFIG_SYS_HZ ) +# if (CONFIG_SYS_HZ !=1000 ) +# warning "CONFIG_SYS_HZ must always be 1000" +# endif +# undef CONFIG_SYS_HZdoes this is really necessary?
to prevent insane people today, sure. it'll probably fall out when i start my "cleanup ticks and timer" work for the next merge though ...
Quoted 6 lines
Quoted 4 lines
include/asm-blackfin/blackfin-config-post.h line 144
Quoted 2 lines
include/asm-blackfin/blackfin-config-post.h +1
-0#endif +#define CONFIG_SYS_HZ 1000why not
asm-blackfin/config.h?there is no such file ?
There is now it was introduced by Kumar.
Best Regards,
J.
PATCH 13/13 Blackfin: force all boards to HZ of 1000
Quoted 33 lines · On Thursday 02 April 2009 07:28:21 Jean-Christophe PLAGNIOL-VILLARD wrote:
Quoted 32 lines · Mike Frysinger
Quoted 19 lines · On Thursday 02 April 2009 06:57:03 Jean-Christophe PLAGNIOL-VILLARD wrote:
Quoted 18 lines · Mike Frysinger
Since the Blackfin timer code requires HZ to be 1000, barf on any board that tries to use a different value.
Signed-off-by Mike Frysinger <[email protected]>--- include/asm-blackfin/blackfin-config-post.h | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/include/asm-blackfin/blackfin-config-post.hindex fea4737..623fdc7 100644include/asm-blackfin/blackfin-config-post.h +0
-1@@ -135,9 +135,13 @@#ifndef CONFIG_SYS_MAXARGS # define CONFIG_SYS_MAXARGS 16#endif -#ifndef CONFIG_SYS_HZ Quoted 8 lines
include/asm-blackfin/blackfin-config-post.h line 142
Quoted 6 lines
include/asm-blackfin/blackfin-config-post.h +5
-1-# define CONFIG_SYS_HZ 1000 +#if defined(CONFIG_SYS_HZ ) +# if (CONFIG_SYS_HZ !=1000 ) +# warning "CONFIG_SYS_HZ must always be 1000" +# endif +# undef CONFIG_SYS_HZdoes this is really necessary?
to prevent insane people today, sure. it'll probably fall out when i start my "cleanup ticks and timer" work for the next merge though ...
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
include/asm-blackfin/blackfin-config-post.h line 144
Quoted 2 lines
include/asm-blackfin/blackfin-config-post.h +1
-0#endif +#define CONFIG_SYS_HZ 1000why not
asm-blackfin/config.h?there is no such file ?
There is now it was introduced by Kumar.
news to me. yes, i can probably wholesale convert the current blackfin- config-post.h to config.h. too late for this merge window though :). -mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090402/9fa6d995/attachment.pgp