diff options
author | gonzo <gonzo@FreeBSD.org> | 2016-04-29 20:31:49 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2016-04-29 20:31:49 +0000 |
commit | 036d9a357deef064bf7dd458180fb5889ee693ad (patch) | |
tree | a6021482f5e7d09066ab884237e88a2ff48ef9b6 /sys/arm/ti/ti_adcvar.h | |
parent | 5870696851a417773de0a5173e39c0e8c5d9ed88 (diff) | |
download | FreeBSD-src-036d9a357deef064bf7dd458180fb5889ee693ad.zip FreeBSD-src-036d9a357deef064bf7dd458180fb5889ee693ad.tar.gz |
Add driver for AM33xx SoC touchscreen
Split ADC driver in two halves: ADC(analog ot digital) and
TSC(touchscreen). Touchscreen driver is fully functional
up to the point of reporting samples. This part will be added
once FreeBSD has API for touchscreen.
Tested on: Beaglebone Black + 4DCAPE-43T
Reviewed by: loos
Differential Revision: https://reviews.freebsd.org/D5847
Diffstat (limited to 'sys/arm/ti/ti_adcvar.h')
-rw-r--r-- | sys/arm/ti/ti_adcvar.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/arm/ti/ti_adcvar.h b/sys/arm/ti/ti_adcvar.h index 409ec7b..0cd0c34 100644 --- a/sys/arm/ti/ti_adcvar.h +++ b/sys/arm/ti/ti_adcvar.h @@ -42,6 +42,19 @@ struct ti_adc_softc { struct resource *sc_mem_res; struct resource *sc_irq_res; void *sc_intrhand; + int sc_tsc_wires; + int sc_tsc_wire_config[TI_ADC_NPINS]; + int sc_coord_readouts; + int sc_x_plate_resistance; + int sc_charge_delay; + int sc_adc_nchannels; + int sc_adc_channels[TI_ADC_NPINS]; + int sc_xp_bit, sc_xp_inp; + int sc_xn_bit, sc_xn_inp; + int sc_yp_bit, sc_yp_inp; + int sc_yn_bit, sc_yn_inp; + uint32_t sc_tsc_enabled; + int sc_pen_down; }; struct ti_adc_input { |