From 6f6c26e430ffae87b6b3d74ba7cbf9439703feea Mon Sep 17 00:00:00 2001 From: Stefan Roese Date: Tue, 26 Jan 2010 13:33:29 +0100 Subject: ppc4xx: Fix compilation error on ML2 board Recently this compilation error occurs: Configuring for ML2 board... traps.c: In function 'MachineCheckException': traps.c:159: error: 'debugger_exception_handler' undeclared (first use in this function) traps.c:159: error: (Each undeclared identifier is reported only once traps.c:159: error: for each function it appears in.) This patch now fixes it by including kgdb.h Signed-off-by: Stefan Roese diff --git a/cpu/ppc4xx/traps.c b/cpu/ppc4xx/traps.c index cb35faf..42e4221 100644 --- a/cpu/ppc4xx/traps.c +++ b/cpu/ppc4xx/traps.c @@ -34,6 +34,7 @@ #include #include +#include #include DECLARE_GLOBAL_DATA_PTR; -- cgit v0.10.2 From 59c1db6dab52b981e6ea25a203d0a919ede61ed2 Mon Sep 17 00:00:00 2001 From: Matthias Fuchs Date: Mon, 1 Feb 2010 13:53:47 +0100 Subject: ppc4xx: Fix building of PMC440 board Remove some unused features and default environment variable to shrink the PMC440 u-boot. Signed-off-by: Matthias Fuchs Signed-off-by: Stefan Roese diff --git a/include/configs/PMC440.h b/include/configs/PMC440.h index 6310cfc..89799af 100644 --- a/include/configs/PMC440.h +++ b/include/configs/PMC440.h @@ -287,12 +287,8 @@ "addtty=setenv bootargs ${bootargs} console=ttyS0,${baudrate}\0" \ "addmisc=setenv bootargs ${bootargs} mem=${mem}\0" \ "nandargs=setenv bootargs root=/dev/mtdblock6 rootfstype=jffs2 rw\0" \ - "nand_boot=run nandargs addip addtty addmisc;bootm ${kernel_addr}\0" \ "nand_boot_fdt=run nandargs addip addtty addmisc;" \ "bootm ${kernel_addr} - ${fdt_addr}\0" \ - "net_nfs=tftp ${kernel_addr_r} ${bootfile};" \ - "run nfsargs addip addtty addmisc;" \ - "bootm\0" \ "net_nfs_fdt=tftp ${kernel_addr_r} ${bootfile};" \ "tftp ${fdt_addr_r} ${fdt_file};" \ "run nfsargs addip addtty addmisc;" \ @@ -353,7 +349,6 @@ #define CONFIG_CMD_DATE #define CONFIG_CMD_DHCP #define CONFIG_CMD_DTT -#define CONFIG_CMD_DIAG #define CONFIG_CMD_EEPROM #define CONFIG_CMD_ELF #define CONFIG_CMD_FAT @@ -366,7 +361,6 @@ #define CONFIG_CMD_PING #define CONFIG_CMD_USB #define CONFIG_CMD_REGINFO -#define CONFIG_CMD_SDRAM /* POST support */ #define CONFIG_POST (CONFIG_SYS_POST_MEMORY | \ -- cgit v0.10.2 From 976c21ad8e136df0ec361aca0c4bc287c5637c01 Mon Sep 17 00:00:00 2001 From: Matthias Fuchs Date: Mon, 1 Feb 2010 13:53:59 +0100 Subject: ppc4xx: Fix building for PLU405 boards The init_coupler() function from board/esd/plu405/plu405.c got lost somehow! This patch readds it. Signed-off-by: Matthias Fuchs Signed-off-by: Stefan Roese diff --git a/board/esd/plu405/plu405.c b/board/esd/plu405/plu405.c index e385a78..0f7fa69 100644 --- a/board/esd/plu405/plu405.c +++ b/board/esd/plu405/plu405.c @@ -46,6 +46,34 @@ const unsigned char fpgadata[] = */ #include "../common/fpga.c" +/* + * generate a short spike on the CAN tx line + * to bring the couplers in sync + */ +void init_coupler(u32 addr) +{ + struct sja1000_basic_s *ctrl = (struct sja1000_basic_s *)addr; + + /* reset */ + out_8(&ctrl->cr, CR_RR); + + /* dominant */ + out_8(&ctrl->btr0, 0x00); /* btr setup is required */ + out_8(&ctrl->btr1, 0x14); /* we use 1Mbit/s */ + out_8(&ctrl->oc, OC_TP1 | OC_TN1 | OC_POL1 | + OC_TP0 | OC_TN0 | OC_POL0 | OC_MODE1); + out_8(&ctrl->cr, 0x00); + + /* delay */ + in_8(&ctrl->cr); + in_8(&ctrl->cr); + in_8(&ctrl->cr); + in_8(&ctrl->cr); + + /* reset */ + out_8(&ctrl->cr, CR_RR); +} + int board_early_init_f(void) { /* -- cgit v0.10.2 From 4710cee1b5292fe077a67cc23193cc43060fbe3d Mon Sep 17 00:00:00 2001 From: Matthias Fuchs Date: Mon, 1 Feb 2010 13:54:09 +0100 Subject: ppc4xx: Remove unused feature from AR405 board This patch fixes building for AR405 boards by remove an unused feature. Signed-off-by: Matthias Fuchs Signed-off-by: Stefan Roese diff --git a/include/configs/AR405.h b/include/configs/AR405.h index 73e34bd..52ead43 100644 --- a/include/configs/AR405.h +++ b/include/configs/AR405.h @@ -93,6 +93,7 @@ #define CONFIG_CMD_IRQ #define CONFIG_CMD_ELF #define CONFIG_CMD_MII +#undef CONFIG_CMD_NFS #define CONFIG_CMD_PING #define CONFIG_CMD_BSP -- cgit v0.10.2