diff options
author | Andrew Ryabinin <ryabinin.a.a@gmail.com> | 2013-10-27 22:51:51 +0400 |
---|---|---|
committer | Andrew Ryabinin <ryabinin.a.a@gmail.com> | 2013-11-05 09:59:45 +0400 |
commit | b48e6d0e1c7e533d3da5519a9b0d76026db14f4d (patch) | |
tree | 216251ce3fd8aad9f1a6407ed653cb15ccdd2de2 | |
parent | c49a447dd0a4d7cb7c1cd7b193376fbcafd49f99 (diff) | |
download | rockbox-b48e6d0e1c7e533d3da5519a9b0d76026db14f4d.tar.gz rockbox-b48e6d0e1c7e533d3da5519a9b0d76026db14f4d.zip |
ma9: Fix 'always load OF' bug in bootloader.
button_read_device() could be called before pca9555_read_thread
intializes pca9555_in_ports variable, and return incorrect value.
Change-Id: I960bff72fe230c9d0256b20e92d0a75e67266038
-rw-r--r-- | firmware/target/arm/rk27xx/ma/pca9555-ma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/firmware/target/arm/rk27xx/ma/pca9555-ma.c b/firmware/target/arm/rk27xx/ma/pca9555-ma.c index 9611d84590..328a87e8ca 100644 --- a/firmware/target/arm/rk27xx/ma/pca9555-ma.c +++ b/firmware/target/arm/rk27xx/ma/pca9555-ma.c | |||
@@ -71,6 +71,7 @@ static void pca9555_ports_init(void) | |||
71 | */ | 71 | */ |
72 | data |= ((1<<10)|(0<<9)|(1<<8)); | 72 | data |= ((1<<10)|(0<<9)|(1<<8)); |
73 | pca9555_write_output(data, 0xffff); | 73 | pca9555_write_output(data, 0xffff); |
74 | pca9555_in_ports = pca9555_read_input(); | ||
74 | } | 75 | } |
75 | 76 | ||
76 | void pca9555_target_init(void) | 77 | void pca9555_target_init(void) |