Changes between Version 3 and Version 4 of linux/devmem
- Timestamp:
- 12/07/2023 08:03:37 PM (12 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
linux/devmem
v3 v4 31 31 == Processor Pin Mux DevMem Example 32 32 Let's for example say we would like to modify a pin-mux register on a i.MX8 processor. Utilizing the reference manual for the processor (available from the processor manufacturer) we see we need to use devmem to write the value 101 (0x5 in hex) to the proper register. 33 34 33 35 [[Image(uart3pinmux.jpg)]] 34 36 35 37 [[Image(uart3reg.jpg)]] 36 38 37 Code :39 Code to make this pin mux force the pin to be a GPIO as GPIO5_IO26: 38 40 {{{ 39 41 devmem 0x30330244 32 0x5