drivers: adc: initialize to add ADC driver
Add minimal ADC driver code for EK-RA8M1 board Signed-off-by: Duy Phuong Hoang. Nguyen <duy.nguyen.xa@renesas.com> Signed-off-by: Tri Nguyen <tri.nguyen.wj@bp.renesas.com> Signed-off-by: Thao Luong <thao.luong.uw@renesas.com>
This commit is contained in:
parent
d7fa28bf72
commit
4cebe5354f
15 changed files with 557 additions and 1 deletions
|
@ -39,6 +39,7 @@ typedef struct ra_pinctrl_soc_pin pinctrl_soc_pin_t;
|
|||
.pin_num = RA_GET_PIN_NUM(DT_PROP_BY_IDX(node_id, prop, idx)), \
|
||||
.cfg = (DT_PROP(node_id, bias_pull_up) << 4) | \
|
||||
(DT_PROP(node_id, drive_open_drain) << 6) | \
|
||||
(DT_PROP(node_id, renesas_analog_enable) << 15) | \
|
||||
(DT_ENUM_IDX(node_id, drive_strength) << 10) | \
|
||||
(RA_GET_MODE(DT_PROP_BY_IDX(node_id, prop, idx)) << 16) | \
|
||||
(RA_GET_PSEL(DT_PROP_BY_IDX(node_id, prop, idx)) << 24), \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue