summaryrefslogtreecommitdiff
path: root/util/flash_and_burn/am29f040b.c
diff options
context:
space:
mode:
authorRonald G. Minnich <rminnich@gmail.com>2003-11-05 16:36:57 +0000
committerRonald G. Minnich <rminnich@gmail.com>2003-11-05 16:36:57 +0000
commit097e6497abbeb65c698dce8f858e0d5f32a15da8 (patch)
treea22d0de52943c65a70be12fbcd764b4842b7f334 /util/flash_and_burn/am29f040b.c
parent433ae3fb4eb9ea8b371bac5df03357ee70a12ee4 (diff)
fix volatile
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1255 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flash_and_burn/am29f040b.c')
-rw-r--r--util/flash_and_burn/am29f040b.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/flash_and_burn/am29f040b.c b/util/flash_and_burn/am29f040b.c
index 89cdff9806..9d770cf4b1 100644
--- a/util/flash_and_burn/am29f040b.c
+++ b/util/flash_and_burn/am29f040b.c
@@ -69,15 +69,15 @@ static __inline__ int write_sector_29f040b(volatile char * bios, unsigned char *
int probe_29f040b (struct flashchip * flash)
{
- volatile char * bios = flash->virt_addr;
+ volatile unsigned char * bios = flash->virt_addr;
unsigned char id1, id2;
*(bios + 0x555) = 0xAA;
*(bios + 0x2AA) = 0x55;
*(bios + 0x555) = 0x90;
- id1 = *(unsigned char *) bios;
- id2 = *(unsigned char *) (bios + 0x01);
+ id1 = * bios;
+ id2 = * (bios + 0x01);
*bios = 0xF0;
@@ -92,7 +92,7 @@ int probe_29f040b (struct flashchip * flash)
int erase_29f040b (struct flashchip * flash)
{
- volatile char * bios = flash->virt_addr;
+ volatile unsigned char * bios = flash->virt_addr;
*(bios + 0x555) = 0xAA;
*(bios + 0x2AA) = 0x55;