summaryrefslogtreecommitdiffstats
path: root/board/ti/gta04/TD028TTEC1.h
blob: be97640d23210e7deba2f9fb8b163e47976d77a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef _TD028TTEC1_H
#define _TD028TTEC1_H

#define _BEAGLE_

#define JBT_TX_BUF_SIZE
struct jbt_info {
	u_int16_t tx_buf[4];
	struct spi_device *spi_dev;
	int state;
};

#define JBT_COMMAND	0x000
#define JBT_DATA	0x100

int jbt_reg_init(void);
int jbt_reg_write_nodata(struct jbt_info *jbt, u_int8_t reg);
int jbt_reg_write(struct jbt_info *jbt, u_int8_t reg, u_int8_t data);
int jbt_reg_write16(struct jbt_info *jbt, u_int8_t reg, u_int16_t data);

#endif