summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Nicholson <mike.nicholson@multitech.com>2019-01-10 16:15:05 -0600
committerMike Nicholson <mike.nicholson@multitech.com>2019-01-10 16:15:05 -0600
commit79d8f8205de24c6de5871862cb6249ecfa8cdaf5 (patch)
treef1eb31b6e417d8aa5a88c5a8191b749ada579029
parent2d2569463ebb98d2e672dd08adc3cc93a924f958 (diff)
downloadmtac-79d8f8205de24c6de5871862cb6249ecfa8cdaf5.tar.gz
mtac-79d8f8205de24c6de5871862cb6249ecfa8cdaf5.tar.bz2
mtac-79d8f8205de24c6de5871862cb6249ecfa8cdaf5.zip
Update header to include gpio defs for mtac cards, extern EEPROM4.0.1
-rw-r--r--mtac.c2
-rw-r--r--mtac.h4
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 <linux/at91gpio.h>
// 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_ */