diff options
author | G S Niteesh Babu <niteesh.gs@gmail.com> | 2021-03-13 16:32:03 +0530 |
---|---|---|
committer | Christian Mauderer <oss@c-mauderer.de> | 2021-03-21 12:30:48 +0100 |
commit | 56074644a733ecc984722da2a1b61736275270c0 (patch) | |
tree | 603250e165fdc58f94fe990e33aaf127e7921922 /bsps/include | |
parent | bsps/beagle: Added SOC detection using FDT (diff) | |
download | rtems-56074644a733ecc984722da2a1b61736275270c0.tar.bz2 |
bsp/beagle: Ported Beagle pinmux driver to RTEMS
The following files have been ported
1) ti_pinmux.c
2) ti_pinmux.h
3) am335x_scm_padconf.c
4) am335x_scm_padconf.h
Update #3784
Diffstat (limited to 'bsps/include')
-rw-r--r-- | bsps/include/arm/ti/ti_pinmux.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bsps/include/arm/ti/ti_pinmux.h b/bsps/include/arm/ti/ti_pinmux.h index 52409df61d..208e327c2b 100644 --- a/bsps/include/arm/ti/ti_pinmux.h +++ b/bsps/include/arm/ti/ti_pinmux.h @@ -42,6 +42,9 @@ */ #ifndef _TI_PINMUX_H_ #define _TI_PINMUX_H_ +#ifdef __rtems__ +#include <ofw/ofw.h> +#endif /* __rtems__ */ struct ti_pinmux_padconf { uint16_t reg_off; @@ -63,12 +66,16 @@ struct ti_pinmux_device { const struct ti_pinmux_padconf *padconf; }; +#ifndef __rtems__ struct ti_pinmux_softc { device_t sc_dev; struct resource * sc_res[4]; bus_space_tag_t sc_bst; bus_space_handle_t sc_bsh; }; +#else /* __rtems__ */ +void beagle_pinmux_init(phandle_t node); +#endif /* __rtems__ */ int ti_pinmux_padconf_set(const char *padname, const char *muxmode, unsigned int state); @@ -77,4 +84,4 @@ int ti_pinmux_padconf_get(const char *padname, const char **muxmode, int ti_pinmux_padconf_set_gpiomode(uint32_t gpio, unsigned int state); int ti_pinmux_padconf_get_gpiomode(uint32_t gpio, unsigned int *state); -#endif /* _TI_SCM_H_ */
\ No newline at end of file +#endif /* _TI_SCM_H_ */ |