From 2a8af1873894dae030813c11e77ccee476ac11f8 Mon Sep 17 00:00:00 2001 From: wdenk Date: Wed, 13 Apr 2005 10:02:42 +0000 Subject: [PATCH] * Fixes for TQM8560 board: - fix clock rates - remove debug messages - fix flash sector protection * Patch by Steven Scholz, 07 Apr 2005: Fix warning in cpu/arm920t/at91rm9200/i2c.c --- CHANGELOG | 8 +++++++- README | 3 +-- cpu/arm920t/at91rm9200/i2c.c | 4 ++-- cpu/mpc85xx/cpu.c | 2 +- cpu/mpc85xx/ether_fcc.c | 2 +- drivers/cfi_flash.c | 1 + 6 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index e53b7c500..cca8f5827 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,11 +2,17 @@ Changes for U-Boot 1.1.3: ====================================================================== +* Fixes for TQM8560 board: + - fix clock rates + - remove debug messages + - fix flash sector protection + * Patch by Steven Scholz, 07 Apr 2005: Add i2c_reg_write() and i2c_reg_write() for at91rm9200 I2C -* Patch by Steven Scholz, 07 Apr 2005: +* Patches by Steven Scholz, 07 Apr 2005: Fix compiler warning in altera.c + Fix warning in cpu/arm920t/at91rm9200/i2c.c * Patch by Ladislav Michl, 06 Apr 2005: Fix voiceblue configuration. diff --git a/README b/README index 5b7df7613..c1441fb2b 100644 --- a/README +++ b/README @@ -3081,8 +3081,7 @@ Booting assumes that (the first part of) the image booted is a stage-2 loader which in turn loads and then invokes the kernel proper. Loader sources will eventually appear in the NetBSD source tree (probably in sys/arc/mpc8xx/stand/u-boot_stage2/); in the -meantime, send mail to bruno@exet-ag.de and/or wd@denx.de for -details. +meantime, see ftp://ftp.denx.de/pub/u-boot/ppcboot_stage2.tar.gz Implementation Internals: diff --git a/cpu/arm920t/at91rm9200/i2c.c b/cpu/arm920t/at91rm9200/i2c.c index 274327548..569274082 100644 --- a/cpu/arm920t/at91rm9200/i2c.c +++ b/cpu/arm920t/at91rm9200/i2c.c @@ -138,12 +138,12 @@ i2c_read (unsigned char chip, unsigned int addr, int alen, int i2c_write(unsigned char chip, unsigned int addr, int alen, - unsigned char *buffer, int len) + unsigned char *buffer, int len) { +#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW int i; unsigned char *buf; -#ifdef CFG_I2C_EEPROM_ADDR_OVERFLOW /* we only allow one address byte */ if (alen > 1) return 1; diff --git a/cpu/mpc85xx/cpu.c b/cpu/mpc85xx/cpu.c index fe678dfa6..4a1ccb05b 100644 --- a/cpu/mpc85xx/cpu.c +++ b/cpu/mpc85xx/cpu.c @@ -145,7 +145,7 @@ unsigned long get_tbclk (void) sys_info_t sys_info; get_sys_info(&sys_info); - return ((sys_info.freqSystemBus + 3L) / 4L); + return ((sys_info.freqSystemBus + 7L) / 8L); } diff --git a/cpu/mpc85xx/ether_fcc.c b/cpu/mpc85xx/ether_fcc.c index f78e5b4d7..c2f88f83d 100644 --- a/cpu/mpc85xx/ether_fcc.c +++ b/cpu/mpc85xx/ether_fcc.c @@ -135,7 +135,7 @@ static RTXBD rtx __attribute__ ((aligned(8))); #error "rtx must be 64-bit aligned" #endif -#define ET_DEBUG +#undef ET_DEBUG static int fec_send(struct eth_device* dev, volatile void *packet, int length) { diff --git a/drivers/cfi_flash.c b/drivers/cfi_flash.c index 101eb7491..2531e9da8 100644 --- a/drivers/cfi_flash.c +++ b/drivers/cfi_flash.c @@ -48,6 +48,7 @@ #include #include #include +#include #ifdef CFG_FLASH_CFI_DRIVER /*