X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=doc%2FREADME.omap3;h=2a3f46b63c0d873a8c796c5a65290003dee68de7;hb=0caac5f4155a1db6c5ce921c7f9294b6b46e7744;hp=460950dfd0efff64ddd69377d54f31ae0e6bcbff;hpb=36b4e2dddd3ee481411fa50e1c34dbf823eb5f5d;p=oweals%2Fu-boot.git diff --git a/doc/README.omap3 b/doc/README.omap3 index 460950dfd0..2a3f46b63c 100644 --- a/doc/README.omap3 +++ b/doc/README.omap3 @@ -95,33 +95,51 @@ Interfaces ========== gpio +---- To set a bit : - if (!omap_request_gpio(N)) { - omap_set_gpio_direction(N, 0); - omap_set_gpio_dataout(N, 1); + if (!gpio_request(N, "")) { + gpio_direction_output(N, 0); + gpio_set_value(N, 1); } To clear a bit : - if (!omap_request_gpio(N)) { - omap_set_gpio_direction(N, 0); - omap_set_gpio_dataout(N, 0); + if (!gpio_request(N, "")) { + gpio_direction_output(N, 0); + gpio_set_value(N, 0); } To read a bit : - if (!omap_request_gpio(N)) { - omap_set_gpio_direction(N, 1); - val = omap_get_gpio_datain(N); - omap_free_gpio(N); + if (!gpio_request(N, "")) { + gpio_direction_input(N); + val = gpio_get_value(N); + gpio_free(N); } if (val) printf("GPIO N is set\n"); else printf("GPIO N is clear\n"); +dma +--- +void omap3_dma_init(void) + Init the DMA module +int omap3_dma_get_conf_chan(uint32_t chan, struct dma4_chan *config); + Read config of the channel +int omap3_dma_conf_chan(uint32_t chan, struct dma4_chan *config); + Write config to the channel +int omap3_dma_conf_transfer(uint32_t chan, uint32_t *src, uint32_t *dst, + uint32_t sze) + Config source, destination and size of a transfer +int omap3_dma_wait_for_transfer(uint32_t chan) + Wait for a transfer to end - this hast to be called before a channel + or the data the channel transferd are used. +int omap3_dma_get_revision(uint32_t *minor, uint32_t *major) + Read silicon Revision of the DMA module + Acknowledgements ================