Quantcast
Channel: Processors
Viewing all articles
Browse latest Browse all 149921

Forum Post: RE: am335x pinmux and uboot

$
0
0

[quote user="anthony barrera"]Hello,


I am facing the same problem with my u-boot not compiling once I follow the Wiki on integrating mux.h and pinmux.h. Laurens, did anyone from TI ever confirm that what you have done is correct?[/quote]

Anthony, the mux.h and pinmux.h headers, generated by the pinmux tool can be used with the AM335x, but aren't intended to. This is why the wiki page seems incomplete.

The U-Boot pinmuxing for the AM335x happens inside <u-boot>/board/k-patents/am335x_mtr/mux.c and the implementation is a bit different than the one described in the wiki page. However, you can use the generated pinmux .h files like this:

1. Copy the contents of the mux.h and pinmux.h files inside mux.c.

2. Change the AM335X_CTRL_BASE inside the MUX_VAL macro to just CTRL_BASE, as there is no definition for AM335X_CTRL_BASE.

3. Call to the MUX_EVM() macro from inside the enable_board_pin_mux() function.

Best regards,
Miroslav


Viewing all articles
Browse latest Browse all 149921

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>