Merge branch 'master' of git://git.denx.de/u-boot-blackfin
This commit is contained in:
commit
3f56795635
1
Makefile
1
Makefile
@ -807,7 +807,6 @@ clean:
|
||||
$(obj)board/matrix_vision/*/bootscript.img \
|
||||
$(obj)board/voiceblue/eeprom \
|
||||
$(obj)u-boot.lds \
|
||||
$(obj)arch/blackfin/cpu/bootrom-asm-offsets.[chs] \
|
||||
$(obj)arch/blackfin/cpu/init.{lds,elf}
|
||||
@rm -f $(obj)include/bmp_logo.h
|
||||
@rm -f $(obj)include/bmp_logo_data.h
|
||||
|
2
arch/blackfin/cpu/.gitignore
vendored
2
arch/blackfin/cpu/.gitignore
vendored
@ -1,4 +1,2 @@
|
||||
bootrom-asm-offsets.[chs]
|
||||
|
||||
init.lds
|
||||
init.elf
|
||||
|
@ -23,16 +23,6 @@ obj-y += traps.o
|
||||
|
||||
extra-y += check_initcode
|
||||
|
||||
extra-y += bootrom-asm-offsets.h
|
||||
$(obj)bootrom-asm-offsets.c: bootrom-asm-offsets.c.in bootrom-asm-offsets.awk
|
||||
echo '#include <asm/mach-common/bits/bootrom.h>' | $(CPP) $(CPPFLAGS) - | gawk -f ./bootrom-asm-offsets.awk > $@.tmp
|
||||
mv $@.tmp $@
|
||||
$(obj)bootrom-asm-offsets.s: $(obj)bootrom-asm-offsets.c
|
||||
$(CC) $(CFLAGS) -S $^ -o $@.tmp
|
||||
mv $@.tmp $@
|
||||
$(obj)bootrom-asm-offsets.h: $(obj)bootrom-asm-offsets.s
|
||||
sed -ne "/^->/{s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; s:->::; p;}" $^ > $@
|
||||
|
||||
# make sure our initcode (which goes into LDR) does not
|
||||
# have relocs or external references
|
||||
$(obj)initcode.o: CFLAGS += -fno-function-sections -fno-data-sections
|
||||
|
@ -1,41 +0,0 @@
|
||||
#!/usr/bin/gawk -f
|
||||
BEGIN {
|
||||
print "/* DO NOT EDIT: AUTOMATICALLY GENERATED"
|
||||
print " * Input files: bootrom-asm-offsets.awk bootrom-asm-offsets.c.in"
|
||||
print " * DO NOT EDIT: AUTOMATICALLY GENERATED"
|
||||
print " */"
|
||||
print ""
|
||||
system("cat bootrom-asm-offsets.c.in")
|
||||
print "{"
|
||||
}
|
||||
|
||||
{
|
||||
/* find a structure definition */
|
||||
if ($0 ~ /typedef struct .* {/) {
|
||||
delete members;
|
||||
i = 0;
|
||||
|
||||
/* extract each member of the structure */
|
||||
while (1) {
|
||||
getline
|
||||
if ($1 == "}")
|
||||
break;
|
||||
gsub(/[*;]/, "");
|
||||
members[i++] = $NF;
|
||||
}
|
||||
|
||||
/* grab the structure's name */
|
||||
struct = $NF;
|
||||
sub(/;$/, "", struct);
|
||||
|
||||
/* output the DEFINE() macros */
|
||||
while (i-- > 0)
|
||||
print "\tDEFINE(" struct ", " members[i] ");"
|
||||
print ""
|
||||
}
|
||||
}
|
||||
|
||||
END {
|
||||
print "\treturn 0;"
|
||||
print "}"
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
/* A little trick taken from the kernel asm-offsets.h where we convert
|
||||
* the C structures automatically into a bunch of defines for use in
|
||||
* the assembly files.
|
||||
*/
|
||||
|
||||
#include <linux/stddef.h>
|
||||
#include <asm/mach-common/bits/bootrom.h>
|
||||
|
||||
#define _DEFINE(sym, val) asm volatile("\n->" #sym " %0 " #val : : "i" (val))
|
||||
#define DEFINE(s, m) _DEFINE(offset_##s##_##m, offsetof(s, m))
|
||||
|
||||
int main(int argc, char * const argv[])
|
@ -12,7 +12,7 @@
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/portmux.h>
|
||||
|
||||
#ifdef CONFIG_ADI_GPIO1
|
||||
#ifndef CONFIG_ADI_GPIO2
|
||||
#if ANOMALY_05000311 || ANOMALY_05000323
|
||||
enum {
|
||||
AWA_data = SYSCR,
|
||||
|
@ -72,7 +72,7 @@
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
|
||||
#ifdef CONFIG_ADI_GPIO1
|
||||
#ifndef CONFIG_ADI_GPIO2
|
||||
void set_gpio_dir(unsigned, unsigned short);
|
||||
void set_gpio_inen(unsigned, unsigned short);
|
||||
void set_gpio_polar(unsigned, unsigned short);
|
||||
|
@ -162,21 +162,22 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
|
||||
if (!spi_cs_is_valid(bus, cs))
|
||||
return NULL;
|
||||
|
||||
if (bus >= ARRAY_SIZE(pins) || pins[bus] == NULL) {
|
||||
debug("%s: invalid bus %u\n", __func__, bus);
|
||||
return NULL;
|
||||
}
|
||||
switch (bus) {
|
||||
#ifdef SPI0_CTL
|
||||
case 0: mmr_base = SPI0_CTL; break;
|
||||
case 0:
|
||||
mmr_base = SPI0_CTL; break;
|
||||
#endif
|
||||
#ifdef SPI1_CTL
|
||||
case 1: mmr_base = SPI1_CTL; break;
|
||||
case 1:
|
||||
mmr_base = SPI1_CTL; break;
|
||||
#endif
|
||||
#ifdef SPI2_CTL
|
||||
case 2: mmr_base = SPI2_CTL; break;
|
||||
case 2:
|
||||
mmr_base = SPI2_CTL; break;
|
||||
#endif
|
||||
default: return NULL;
|
||||
default:
|
||||
debug("%s: invalid bus %u\n", __func__, bus);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bss = spi_alloc_slave(struct bfin_spi_slave, bus, cs);
|
||||
|
@ -154,10 +154,6 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
|
||||
if (!spi_cs_is_valid(bus, cs))
|
||||
return NULL;
|
||||
|
||||
if (bus >= ARRAY_SIZE(pins) || pins[bus] == NULL) {
|
||||
debug("%s: invalid bus %u\n", __func__, bus);
|
||||
return NULL;
|
||||
}
|
||||
switch (bus) {
|
||||
#ifdef SPI0_REGBASE
|
||||
case 0:
|
||||
@ -175,6 +171,7 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
debug("%s: invalid bus %u\n", __func__, bus);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -94,6 +94,7 @@
|
||||
#define CONFIG_DCACHE_OFF
|
||||
#define CONFIG_UART_CONSOLE 0
|
||||
#define CONFIG_BAUDRATE 115200
|
||||
#define CONFIG_BFIN_SERIAL
|
||||
|
||||
#define CONFIG_CMD_MEMORY
|
||||
#undef CONFIG_GZIP
|
||||
|
@ -85,6 +85,7 @@
|
||||
#define CONFIG_UART_CONSOLE 0
|
||||
|
||||
#define CONFIG_BAUDRATE 115200
|
||||
#define CONFIG_BFIN_SERIAL
|
||||
#define CONFIG_BOOTARGS "root=/dev/mtdblock0 rw"
|
||||
#define CONFIG_BOOTCOMMAND "run sfboot"
|
||||
#define CONFIG_BOOTDELAY 5
|
||||
|
@ -80,33 +80,8 @@
|
||||
/*
|
||||
* Software (bit-bang) I2C driver configuration
|
||||
*/
|
||||
#define PF_SCL PF3
|
||||
#define PF_SDA PF2
|
||||
#define I2C_INIT (*pFIO_DIR |= PF_SCL); asm("ssync;")
|
||||
#define I2C_ACTIVE (*pFIO_DIR |= PF_SDA); \
|
||||
*pFIO_INEN &= ~PF_SDA; asm("ssync;")
|
||||
#define I2C_TRISTATE (*pFIO_DIR &= ~PF_SDA); \
|
||||
*pFIO_INEN |= PF_SDA; asm("ssync;")
|
||||
#define I2C_READ ((volatile)(*pFIO_FLAG_D & PF_SDA) != 0); \
|
||||
asm("ssync;")
|
||||
#define I2C_SDA(bit) if (bit) { \
|
||||
*pFIO_FLAG_S = PF_SDA; \
|
||||
asm("ssync;"); \
|
||||
} \
|
||||
else { \
|
||||
*pFIO_FLAG_C = PF_SDA; \
|
||||
asm("ssync;"); \
|
||||
}
|
||||
#define I2C_SCL(bit) if (bit) { \
|
||||
*pFIO_FLAG_S = PF_SCL; \
|
||||
asm("ssync;"); \
|
||||
} \
|
||||
else { \
|
||||
*pFIO_FLAG_C = PF_SCL; \
|
||||
asm("ssync;"); \
|
||||
}
|
||||
#define I2C_DELAY udelay(5) /* 1/4 I2C clock duration */
|
||||
|
||||
#define CONFIG_SOFT_I2C_GPIO_SCL GPIO_PF3
|
||||
#define CONFIG_SOFT_I2C_GPIO_SDA GPIO_PF2
|
||||
|
||||
/*
|
||||
* Flash Settings
|
||||
|
@ -136,6 +136,7 @@
|
||||
|
||||
#define CONFIG_BAUDRATE 57600
|
||||
#define CONFIG_UART_CONSOLE 0
|
||||
#define CONFIG_BFIN_SERIAL
|
||||
|
||||
#define CONFIG_PANIC_HANG 1
|
||||
#define CONFIG_RTC_BFIN 1
|
||||
|
@ -136,6 +136,7 @@
|
||||
|
||||
#define CONFIG_BAUDRATE 115200
|
||||
#define CONFIG_UART_CONSOLE 0
|
||||
#define CONFIG_BFIN_SERIAL
|
||||
|
||||
#define CONFIG_PANIC_HANG 1
|
||||
#define CONFIG_RTC_BFIN 1
|
||||
|
@ -195,6 +195,7 @@
|
||||
#define CONFIG_BAUDRATE 57600
|
||||
#define CONFIG_LOADS_ECHO 1
|
||||
#define CONFIG_UART_CONSOLE 0
|
||||
#define CONFIG_BFIN_SERIAL
|
||||
|
||||
/*
|
||||
* I2C settings
|
||||
|
@ -118,6 +118,8 @@
|
||||
#define CONFIG_BOOTCOMMAND "run flashboot"
|
||||
#define FLASHBOOT_ENV_SETTINGS "flashboot=bootm 0x20040000\0"
|
||||
|
||||
#define CONFIG_ADI_GPIO2
|
||||
|
||||
#ifndef __ADSPBF542__
|
||||
/* Don't waste time transferring a logo over the UART */
|
||||
# if (CONFIG_BFIN_BOOT_MODE != BFIN_BOOT_UART)
|
||||
|
@ -103,6 +103,7 @@
|
||||
#define CONFIG_DNP5370_EXT_WD_DISABLE 1
|
||||
|
||||
#define CONFIG_UART_CONSOLE 0
|
||||
#define CONFIG_BFIN_SERIAL
|
||||
#define CONFIG_BAUDRATE 115200
|
||||
#define CONFIG_BOOTCOMMAND "bootm 0x20030000"
|
||||
#define CONFIG_BOOTARGS "console=ttyBF0,115200 root=/dev/mtdblock3 rootfstype=ext2"
|
||||
|
Loading…
Reference in New Issue
Block a user