diff options
author | Dominik Sliwa <dominik.sliwa@toradex.com> | 2018-05-04 12:10:09 +0200 |
---|---|---|
committer | Dominik Sliwa <dominik.sliwa@toradex.com> | 2018-05-18 15:59:11 +0200 |
commit | 0820a1d4a6eaf47e414c5077cc8c64d1295ebf3a (patch) | |
tree | a349355224e3424ccd6ebe487b6a3b5797df92f4 /source/apalis-tk1-k20-api.h | |
parent | 6be00a6dd5032d7330d761a33f5b027658bab140 (diff) |
build k20 tester fw with TESTER_BUILD
Tester build includes:
-Disabled CAN,
-No debug interface,
-Most GPIOs configured as input and accesible from linux driver
-Special fw version number (0xFE)
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Diffstat (limited to 'source/apalis-tk1-k20-api.h')
-rw-r--r-- | source/apalis-tk1-k20-api.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/apalis-tk1-k20-api.h b/source/apalis-tk1-k20-api.h index 85bbf9f..35fc88d 100644 --- a/source/apalis-tk1-k20-api.h +++ b/source/apalis-tk1-k20-api.h @@ -48,7 +48,7 @@ #define APALIS_TK1_K20_CAN_DEV_OFFSET(x) (x ? APALIS_TK1_K20_CAN_OFFSET : 0) /* 0x30-0x3F Reserved */ -/* 0x40-0x62 CAN1 registers same layout as CAN0*/ +/* 0x40-0x62 CAN1 registers same layout as CAN0 */ /* 0x63-0x6F Reserved */ /* ADC Registers */ @@ -104,7 +104,11 @@ #define APALIS_TK1_K20_TSC_IRQ 4 #define APALIS_TK1_K20_GPIO_IRQ 5 +#ifndef TESTER_BUILD #define APALIS_TK1_K20_FW_VER 0x10 +#else +#define APALIS_TK1_K20_FW_VER 0xFE +#endif #define FW_MINOR (APALIS_TK1_K20_FW_VER & 0x0F) #define FW_MAJOR ((APALIS_TK1_K20_FW_VER & 0xF0) >> 4) @@ -112,7 +116,6 @@ #define TK1_K20_SENTINEL 0x55 #define TK1_K20_INVAL 0xAA -#define APALIS_TK1_K20_NUMREGS 0x3f #define APALIS_TK1_K20_IRQ_REG_CNT 1 #define APALIS_TK1_K20_IRQ_PER_REG 8 |