summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDominik Sliwa <dominik.sliwa@toradex.com>2018-06-13 12:10:51 +0200
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2018-06-21 15:45:59 +0200
commita1bc98487cb26f230f4a52afb31a7d7c59d008c0 (patch)
treeac1814cdc8677e03e72dcf86acf7af1f375b9d59 /include
parent1319d0d5fd1c5070984917157d03acb7e54a4364 (diff)
apalis-tk1: mfd: k20: cleanup and fw version 1.1 support
Signed-off-by: Dominik Sliwa <dominik.sliwa@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/apalis-tk1-k20-api.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/mfd/apalis-tk1-k20-api.h b/include/linux/mfd/apalis-tk1-k20-api.h
index 85bbf9f28ca4..199b433c3d96 100644
--- a/include/linux/mfd/apalis-tk1-k20-api.h
+++ b/include/linux/mfd/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,8 @@
#define APALIS_TK1_K20_TSC_IRQ 4
#define APALIS_TK1_K20_GPIO_IRQ 5
-#define APALIS_TK1_K20_FW_VER 0x10
+#define APALIS_TK1_K20_FW_VER 0x11
+#define APALIS_TK1_K20_TESTER_FW_VER 0xFE
#define FW_MINOR (APALIS_TK1_K20_FW_VER & 0x0F)
#define FW_MAJOR ((APALIS_TK1_K20_FW_VER & 0xF0) >> 4)
@@ -112,7 +113,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