X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-mips%2Fddb5xxx%2Fddb5xxx.h;fp=include%2Fasm-mips%2Fddb5xxx%2Fddb5xxx.h;h=873c03f2c5fe8385340099b2b92a2130a1be63cb;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=e97fcc8d548b3d367a35a38cac1d99e2cd8430c5;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/include/asm-mips/ddb5xxx/ddb5xxx.h b/include/asm-mips/ddb5xxx/ddb5xxx.h index e97fcc8d5..873c03f2c 100644 --- a/include/asm-mips/ddb5xxx/ddb5xxx.h +++ b/include/asm-mips/ddb5xxx/ddb5xxx.h @@ -18,6 +18,7 @@ #ifndef __ASM_DDB5XXX_DDB5XXX_H #define __ASM_DDB5XXX_DDB5XXX_H +#include #include /* @@ -173,8 +174,13 @@ static inline void ddb_sync(void) { +/* The DDB5074 doesn't seem to like these accesses. They kill the board on + * interrupt load + */ +#ifndef CONFIG_DDB5074 volatile u32 *p = (volatile u32 *)0xbfc00000; (void)(*p); +#endif } static inline void ddb_out32(u32 offset, u32 val) @@ -254,7 +260,11 @@ extern void ddb_pci_reset_bus(void); /* * include the board dependent part */ -#if defined(CONFIG_DDB5477) +#if defined(CONFIG_DDB5074) +#include +#elif defined(CONFIG_DDB5476) +#include +#elif defined(CONFIG_DDB5477) #include #else #error "Unknown DDB board!"