From 79d8f8205de24c6de5871862cb6249ecfa8cdaf5 Mon Sep 17 00:00:00 2001 From: Mike Nicholson Date: Thu, 10 Jan 2019 16:15:05 -0600 Subject: Update header to include gpio defs for mtac cards, extern EEPROM --- mtac.c | 2 +- mtac.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mtac.c b/mtac.c index 4cc0423..19c8a20 100644 --- a/mtac.c +++ b/mtac.c @@ -17,7 +17,7 @@ #include "mtac.h" /* accessory card EEPROMs, read outside of driver */ -uint8_t mts_ap_eeprom[NUM_AP][512]; +uint8_t mts_ap_eeprom[NUM_AP][MTS_AP_EEPROM_SIZE]; EXPORT_SYMBOL(mts_ap_eeprom); static const char* eeprom_file_name[NUM_AP] = { diff --git a/mtac.h b/mtac.h index 477dea4..1f49651 100644 --- a/mtac.h +++ b/mtac.h @@ -1,6 +1,6 @@ #ifndef IO_MODULE_MTAC_H_ #define IO_MODULE_MTAC_H_ - +#include // NUM_AP should be defined from the board code // it should be set to the value of CONFIG_MTS_NUM_ACCESSORY_PORTS // arch/arm/mach-at91/board-dt-sam9.c @@ -89,4 +89,6 @@ extern void mtac_clear_port_pins(int port_index); extern int mtac_find(void(*set_info)(struct ap_info* info), const char *target_product_id); extern struct ap_info *mtac_port_info[]; extern void mtac_free(const char * product_id, bool (* setup)(enum ap port), const char *link); +#define MTS_AP_EEPROM_SIZE (512) +extern uint8_t mts_ap_eeprom[NUM_AP][MTS_AP_EEPROM_SIZE]; #endif /* IO_MODULE_MTAC_H_ */ -- cgit v1.2.3