i.Mx6 GPIO via Linux mmap?

Discussion in 'General Discussion' started by PeterZ, Aug 24, 2014.

  1. PeterZ

    PeterZ New Member

    Joined:
    Aug 24, 2014
    Messages:
    7
    Likes Received:
    0
    I only see i.Mx6 GPIO examples using /sys/class/gpio
    Example:
    Code:
    echo out > /sys/class/gpio/gpio40/direction
    echo 1   > /sys/class/gpio/gpio40/value
    
    Is it not possible to also do it with memory mapped IO, using standard Linux mmap????

    If so, how do I get going? Is there a nice .h header with register-definitions etc.?

    Thanks.
    P.
     
  2. patrykk

    patrykk Member

    Joined:
    Dec 10, 2014
    Messages:
    52
    Likes Received:
    9

Share This Page