Advertisement
errypuu

arm-omap4.devs

Dec 29th, 2014
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.10 KB | None | 0 0
  1. -- vim:set ft=lua:
  2. --
  3. -- (c) 2008-2009 Technische Universität Dresden
  4. -- This file is part of TUD:OS and distributed under the terms of the
  5. -- GNU General Public License 2.
  6. -- Please see the COPYING-GPL-2 file for details.
  7. --
  8.  
  9. -- OMAP3 (OMAP3EVM, Beagleboard)
  10.  
  11. local Hw = Io.Hw
  12. local Res = Io.Res
  13.  
  14. Io.hw_add_devices
  15. {
  16.   sys = Hw.Device
  17.   {
  18.     hid = "System Control";
  19.     Res.mmio(0x4A002000, 0x4A002fff);
  20.     Res.mmio(0x4A004000, 0x4A004fff);
  21.   },
  22.  
  23.   prcm = Hw.Device
  24.   {
  25.     hid = "OMAP PRCM";
  26.     Res.mmio(0x48004000, 0x48004fff);
  27.     Res.mmio(0x48005000, 0x48005fff);
  28.   },
  29.  
  30.   gpio = Hw.Device
  31.   {
  32.     hid = "omap4-gpio";
  33.     Res.mmio(0x48004000, 0x48004fff);
  34.     Res.mmio(0x48310000, 0x48310fff);
  35.     Res.mmio(0x49050000, 0x49050fff);
  36.     Res.mmio(0x49052000, 0x49052fff);
  37.     Res.mmio(0x49054000, 0x49054fff);
  38.     Res.mmio(0x49056000, 0x49056fff);
  39.     Res.mmio(0x49058000, 0x49058fff);
  40.   },
  41.  
  42.   lcd = Hw.Device
  43.   {
  44.     hid = "OMAP_LCD";
  45.     Res.mmio(0x48050000, 0x48050fff);
  46.   },
  47.  
  48.   i2c1 = Hw.Device
  49.   {
  50.     hid = "omap3-i2c";
  51.     Res.mmio(0x48070000, 0x48070fff);
  52.   }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement