boards: nxp: frdm_mcxa156: Support usb for NXP frdm_mcxa156 board
Support usb for NXP frdm_mcxa156 board. Test it using samples/subsys/usb/console and tests/drivers/udc Signed-off-by: Neil Chen <cheng.chen_1@nxp.com>
This commit is contained in:
parent
725c28ec4e
commit
a614d151a3
4 changed files with 14 additions and 0 deletions
|
|
@ -154,6 +154,11 @@ static int frdm_mcxa156_init(void)
|
|||
CLOCK_AttachClk(kFRO12M_to_LPTMR0);
|
||||
#endif /* DT_PROP(DT_NODELABEL(lptmr0), clk_source) */
|
||||
|
||||
#endif
|
||||
|
||||
#if DT_NODE_HAS_STATUS_OKAY(DT_NODELABEL(usb))
|
||||
RESET_PeripheralReset(kUSB0_RST_SHIFT_RSTn);
|
||||
CLOCK_EnableUsbfsClock();
|
||||
#endif
|
||||
|
||||
/* Set SystemCoreClock variable. */
|
||||
|
|
|
|||
|
|
@ -64,6 +64,8 @@ The FRDM-MCXA156 board configuration supports the following hardware features:
|
|||
+-----------+------------+-------------------------------------+
|
||||
| PWM | on-chip | pwm |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| USB | on-chip | USB device |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
||||
Targets available
|
||||
==================
|
||||
|
|
|
|||
|
|
@ -117,3 +117,8 @@
|
|||
&lptmr0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
zephyr_udc0: &usb {
|
||||
status = "okay";
|
||||
num-bidir-endpoints = <8>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -21,4 +21,6 @@ supported:
|
|||
- counter
|
||||
- dac
|
||||
- pwm
|
||||
- usb_device
|
||||
- usbd
|
||||
vendor: nxp
|
||||
|
|
|
|||
Loading…
Reference in a new issue