mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-15 11:55:36 +08:00
Add LPC32XX touch screen driver
This commit is contained in:

committed by
Sebastian Huber

parent
fb2aa6ea99
commit
e28a8d01c1
1
rtemsbsd/include/bsp/nexus-devices.h
Executable file → Normal file
1
rtemsbsd/include/bsp/nexus-devices.h
Executable file → Normal file
@@ -52,6 +52,7 @@ RTEMS_BSD_DRIVER_SMC0(0x4e000000, RVPBXA9_IRQ_ETHERNET);
|
||||
|
||||
RTEMS_BSD_DRIVER_LPC32XX_PWR;
|
||||
RTEMS_BSD_DRIVER_LPC32XX_LPE;
|
||||
RTEMS_BSD_DRIVER_LPC32XX_TSC;
|
||||
RTEMS_BSD_DRIVER_ICSPHY;
|
||||
RTEMS_BSD_DRIVER_LPC32XX_OHCI;
|
||||
SYSINIT_DRIVER_REFERENCE(usbus, ohci);
|
||||
|
22
rtemsbsd/include/machine/rtems-bsd-nexus-bus.h
Executable file → Normal file
22
rtemsbsd/include/machine/rtems-bsd-nexus-bus.h
Executable file → Normal file
@@ -39,6 +39,7 @@
|
||||
* Devices:
|
||||
* RTEMS_BSD_DRIVER_XILINX_ZYNQ_SLCR
|
||||
* RTEMS_BSD_DRIVER_LPC32XX_PWR
|
||||
* RTEMS_BSD_DRIVER_LPC32XX_TSC
|
||||
*
|
||||
* Buses:
|
||||
* RTEMS_BSD_DRIVER_PC_LEGACY
|
||||
@@ -136,6 +137,27 @@ extern "C" {
|
||||
&lpc_pwr0_res[0])
|
||||
#endif /* RTEMS_BSD_DRIVER_LPC32XX_PWR */
|
||||
|
||||
/*
|
||||
* LPC32XX TSC.
|
||||
*/
|
||||
#if !defined(RTEMS_BSD_DRIVER_LPC32XX_TSC)
|
||||
#define RTEMS_BSD_DRIVER_LPC32XX_TSC \
|
||||
static const rtems_bsd_device_resource lpc_tsc0_res[] = { \
|
||||
{ \
|
||||
.type = RTEMS_BSD_RES_MEMORY, \
|
||||
.start_request = 0, \
|
||||
.start_actual = LPC32XX_BASE_ADC \
|
||||
}, { \
|
||||
.type = RTEMS_BSD_RES_IRQ, \
|
||||
.start_request = 0, \
|
||||
.start_actual = LPC32XX_IRQ_TS_IRQ_OR_ADC \
|
||||
} \
|
||||
}; \
|
||||
RTEMS_BSD_DEFINE_NEXUS_DEVICE(lpctsc, 0, \
|
||||
RTEMS_ARRAY_SIZE(lpc_tsc0_res), \
|
||||
&lpc_tsc0_res[0])
|
||||
#endif /* RTEMS_BSD_DRIVER_LPC32XX_TSC */
|
||||
|
||||
/**
|
||||
** Physical Buses
|
||||
**/
|
||||
|
Reference in New Issue
Block a user