diff options
author | Justin Waters <justin.waters@timesys.com> | 2013-07-19 13:34:06 -0400 |
---|---|---|
committer | Justin Waters <justin.waters@timesys.com> | 2013-07-19 13:34:06 -0400 |
commit | 48eddab640b4afb9d266b29ce5bb9472b0650620 (patch) | |
tree | 1cfd61c2333a5d69df437d1a8bf6939c314e5ccc /board/ti/logic/prod-id/query.c | |
parent | e905badacaff9b85d8bb4f0933d1246625293572 (diff) |
LogicPD Support for OMAP3/DM3/AM3 boards 2.4 Update Release 22011.06-omap3logic-ts4
Diffstat (limited to 'board/ti/logic/prod-id/query.c')
-rw-r--r-- | board/ti/logic/prod-id/query.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/ti/logic/prod-id/query.c b/board/ti/logic/prod-id/query.c index 69a2e2b3ca..031d7b9832 100644 --- a/board/ti/logic/prod-id/query.c +++ b/board/ti/logic/prod-id/query.c @@ -2,6 +2,9 @@ #include "internals.h" #include "id-errno.h" +// This is only for debugging purposes. Set to zero to deactivate. +#define SPOOF_VERSION_CODE 0 + static int id_extract_key(struct id_cookie *cookie, id_keys_t *key) { int err; @@ -156,6 +159,13 @@ int id_find_number(struct id_cookie *cookie, id_keys_t key, int *num) if (err != ID_EOK) return err; /* Extract the number size */ +#if SPOOF_VERSION_CODE + if ((cookie->offset == 509) && (key == ID_KEY_version_code)) + { + *num = SPOOF_VERSION_CODE; + return ID_EOK; + } +#endif l_num = extract_unsigned_pnum(&d_cookie, 5, &err); if (err != ID_EOK) return err; |