diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2006-03-12 02:10:00 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@pollux.denx.de> | 2006-03-12 02:10:00 +0100 |
commit | 0afe519a433184fb1270ff0823971130353a807f (patch) | |
tree | dcf4e84ada0961ded5df9ebfc2804e882bca57b0 /drivers/smc91111.h | |
parent | dc013d464000635a5b8ae841c6e683f94a6bee3d (diff) | |
download | u-boot-imx-0afe519a433184fb1270ff0823971130353a807f.zip u-boot-imx-0afe519a433184fb1270ff0823971130353a807f.tar.gz u-boot-imx-0afe519a433184fb1270ff0823971130353a807f.tar.bz2 |
Add ADI Blackfin support
- add support for Analog Devices Blackfin BF533 CPU
- add support for the ADI BF533 Stamp uClinux board
- add support for the ADI BF533 EZKit board
Patches by Richard Klingler, June 11th 2005:
Diffstat (limited to 'drivers/smc91111.h')
-rw-r--r-- | drivers/smc91111.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/smc91111.h b/drivers/smc91111.h index c3c3367..d03cbc3 100644 --- a/drivers/smc91111.h +++ b/drivers/smc91111.h @@ -185,6 +185,8 @@ typedef unsigned long int dword; #ifdef CONFIG_ADNPESC1 #define SMC_inw(r) (*((volatile word *)(SMC_BASE_ADDRESS+((r)<<1)))) +#elif CONFIG_BLACKFIN +#define SMC_inw(r) ({ word __v = (*((volatile word *)(SMC_BASE_ADDRESS+(r)))); asm("ssync;"); __v;}) #else #define SMC_inw(r) (*((volatile word *)(SMC_BASE_ADDRESS+(r)))) #endif @@ -192,6 +194,8 @@ typedef unsigned long int dword; #ifdef CONFIG_ADNPESC1 #define SMC_outw(d,r) (*((volatile word *)(SMC_BASE_ADDRESS+((r)<<1))) = d) +#elif CONFIG_BLACKFIN +#define SMC_outw(d,r) {(*((volatile word *)(SMC_BASE_ADDRESS+(r))) = d);asm("ssync;");} #else #define SMC_outw(d,r) (*((volatile word *)(SMC_BASE_ADDRESS+(r))) = d) #endif |