GPIO Base Memory Address

Discussion in 'UDOO X86' started by Vittorio, Dec 5, 2017.

Tags:
  1. Vittorio

    Vittorio New Member

    Joined:
    Dec 5, 2017
    Messages:
    3
    Likes Received:
    0
    Hi,
    I would like to access the GPIO through mmap but I can't find in the documentation the base address of the GPIO controller or any other information about mmap gpio. Where can I find it?
     
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    What GPIO? The Braswell side or the Arduino side? Only the Braswell side could possibly be addressed through mmap but why if you have an Arduino on board? If you definitely want to use mmap you have to check the intel documentation of the Braswell CPU in your Udoo.
     
  3. Vittorio

    Vittorio New Member

    Joined:
    Dec 5, 2017
    Messages:
    3
    Likes Received:
    0
    Sorry, I was talking about the Braswell. My use-case is not trivial as I need to map physical memory address to the virtual space manually and pass them to virtual machines. About the Arduino micro-controller, I'm not sure how to map and make it accessible from inside the VM. Thanks for your help anyway!
     
  4. ccs_hello

    ccs_hello UDOOer

    Joined:
    Apr 15, 2017
    Messages:
    536
    Likes Received:
    194
    re: map physical memory address to the virtual space manually and pass them to virtual machines

    Oh, that's a big mountain to climb. I've heard of IOMMU virtualization (VT-d) and of course CPU virtualization (VT-x). Yours is new to me.
     
  5. Vittorio

    Vittorio New Member

    Joined:
    Dec 5, 2017
    Messages:
    3
    Likes Received:
    0
    I couldn't find much about the GPIO registers physical addresses on the Intel documentation for the processor on my UDOO (Intel Atom x5-E8000 Processor), maybe I just didn't find the right document. Anyway, I've contacted Intel and they told me that I should contact you to receive more details about the issue (because you are an OEM and might have customized the hardware/software).
     
  6. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  7. ccs_hello

    ccs_hello UDOOer

    Joined:
    Apr 15, 2017
    Messages:
    536
    Likes Received:
    194
    BTW, UDOO x86 uses Braswell and Braswell does not support VT-d
    (IOMMU and memory-mapped IO) in virtualization context.
    Only in Goldmont, e.g., Apollo Lake, Intel started to introduce VT-d into ATOM class SoCs.
     
  8. Maximo

    Maximo UDOOer

    Joined:
    Aug 11, 2017
    Messages:
    18
    Likes Received:
    5

Share This Page