diff options
author | Justin Waters <justin.waters@timesys.com> | 2013-04-24 17:38:39 -0400 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2013-04-24 17:38:39 -0400 |
commit | 75c641ece39c136001340df61f0ad57028ce4ffc (patch) | |
tree | e5f2c5f5764770a34d0e39b5eace575fd4751527 /board/ti/logic/prod-id/interface.h | |
parent | 1341f103ac87882633b019a5a137056818234248 (diff) |
LogicPD Support for OMAP3/DM3/AM3 boards 2.1 Update
Diffstat (limited to 'board/ti/logic/prod-id/interface.h')
-rw-r--r-- | board/ti/logic/prod-id/interface.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/board/ti/logic/prod-id/interface.h b/board/ti/logic/prod-id/interface.h index 2646df24ed..8333146a88 100644 --- a/board/ti/logic/prod-id/interface.h +++ b/board/ti/logic/prod-id/interface.h @@ -47,6 +47,7 @@ struct id_key { * set *oor to non-zero. If mem_ptr is non-NULL use it as a pointer to * a cached copy of the ID data */ extern unsigned char id_fetch_byte(unsigned char *mem_ptr, int offset, int *oor); +extern void id_fetch_bytes(unsigned char *mem_ptr, int offset, int size, int *oor); struct id_data { /* mem_ptr is a pointer to read the initial ID data into, then if not @@ -58,7 +59,10 @@ struct id_data { /* Function to do the intial startup (i.e. figure out how much data, offset of * key table, etc */ -extern int id_startup(struct id_data *data); +extern int id_startup(struct id_data *data, + int (*setup_id_chip)(void), + int (*shutdown_id_chip)(void)); + /* * Functions provided back to callers for use in accessing data */ @@ -82,6 +86,8 @@ extern int id_whatis(struct id_cookie *cookie, idenum_t *type); /* Given a string, return the key code (or -1 if not found) */ extern int id_data_get_key(char *key_name); +/* Define to get id_dbg_printf() output... */ +#undef DEBUG_NEW_ID_CODE /* ID error routine to handle malformed data */ extern void id_error(const char *fmt, ...); @@ -89,6 +95,13 @@ extern void id_error(const char *fmt, ...); /* Ouptut routine */ extern int id_printf(const char *format, ...); +/* Ouptut debug routine; define DEBUG_NEW_ID_CODE to enable it */ +#ifdef DEBUG_NEW_ID_CODE +extern int id_dbg_printf(const char *format, ...); +#else +#define id_dbg_printf(fmt, ...) +#endif + /* User interface functions */ extern int id_dict_size(struct id_data *data, struct id_cookie *cookie); |