summaryrefslogtreecommitdiff
path: root/firmware/export/mc13783.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2012-01-02 18:32:35 +0000
committerMichael Sevakis <jethead71@rockbox.org>2012-01-02 18:32:35 +0000
commit5a8da163c842b08c6dbf1df6921507ec2fd5a534 (patch)
tree559e1704efa126f603411fd71abd99a01c0e6610 /firmware/export/mc13783.h
parent1f0e6530386e2295d9573f3f9cb7fd75f2e87450 (diff)
downloadrockbox-5a8da163c842b08c6dbf1df6921507ec2fd5a534.tar.gz
rockbox-5a8da163c842b08c6dbf1df6921507ec2fd5a534.zip
i.MX31 - Dethreading operations continue
Dispense with "pmic" thread and process PMIC events directly within ISR. Add sense bit reading as part of the handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31528 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/mc13783.h')
-rw-r--r--firmware/export/mc13783.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/firmware/export/mc13783.h b/firmware/export/mc13783.h
index 99fd004420..4324d06df5 100644
--- a/firmware/export/mc13783.h
+++ b/firmware/export/mc13783.h
@@ -1333,7 +1333,8 @@ enum mc13783_int_ids
1333 1333
1334struct mc13783_event 1334struct mc13783_event
1335{ 1335{
1336 enum mc13783_int_ids int_id; 1336 enum mc13783_int_ids int_id : 8;
1337 uint32_t sense : 24;
1337 void (*callback)(void); 1338 void (*callback)(void);
1338}; 1339};
1339 1340
@@ -1343,7 +1344,9 @@ struct mc13783_event_list
1343 const struct mc13783_event *events; 1344 const struct mc13783_event *events;
1344}; 1345};
1345 1346
1346bool mc13783_enable_event(enum mc13783_event_ids event); 1347void mc13783_enable_event(enum mc13783_event_ids id, bool enable);
1347void mc13783_disable_event(enum mc13783_event_ids event); 1348
1349/* Read the sense bit if one exists - valid only within event handlers */
1350uint32_t mc13783_event_sense(enum mc13783_event_ids id);
1348 1351
1349#endif /* _MC13783_H_ */ 1352#endif /* _MC13783_H_ */