X-Git-Url: https://rtime.felk.cvut.cz/gitweb/l4.git/blobdiff_plain/c06638d2e57a3230381daf1ccce3cf0dfd0eaa92..fba40cf7f1ec0cd4cfaa7ed6a530785cc666e2ec:/l4/pkg/io/config/arm-omap3.devs diff --git a/l4/pkg/io/config/arm-omap3.devs b/l4/pkg/io/config/arm-omap3.devs index 41645cf68..45273591b 100644 --- a/l4/pkg/io/config/arm-omap3.devs +++ b/l4/pkg/io/config/arm-omap3.devs @@ -1,49 +1,53 @@ -# -# (c) 2008-2009 Technische Universität Dresden -# This file is part of TUD:OS and distributed under the terms of the -# GNU General Public License 2. -# Please see the COPYING-GPL-2 file for details. -# +-- vim:set ft=lua: +-- +-- (c) 2008-2009 Technische Universität Dresden +-- This file is part of TUD:OS and distributed under the terms of the +-- GNU General Public License 2. +-- Please see the COPYING-GPL-2 file for details. +-- -# OMAP3 (OMAP3EVM, Beagleboard) +-- OMAP3 (OMAP3EVM, Beagleboard) -hw-root +local Hw = Io.Hw +local Res = Io.Res + +Io.hw_add_devices { - sys => new Device() + sys = Hw.Device { - .hid = "System Control"; - new-res Mmio(0x48002000 .. 0x48002fff); - new-res Mmio(0x48004000 .. 0x48004fff); - } + hid = "System Control"; + Res.mmio(0x48002000, 0x48002fff); + Res.mmio(0x48004000, 0x48004fff); + }, - prcm => new Device() + prcm = Hw.Device { - .hid = "OMAP PRCM"; - new-res Mmio(0x48004000 .. 0x48004fff); - new-res Mmio(0x48005000 .. 0x48005fff); - } + hid = "OMAP PRCM"; + Res.mmio(0x48004000, 0x48004fff); + Res.mmio(0x48005000, 0x48005fff); + }, - gpio => new Device() + gpio = Hw.Device { - .hid = "GPIO"; - new-res Mmio(0x48004000 .. 0x48004fff); - new-res Mmio(0x48310000 .. 0x48310fff); - new-res Mmio(0x49050000 .. 0x49050fff); - new-res Mmio(0x49052000 .. 0x49052fff); - new-res Mmio(0x49054000 .. 0x49054fff); - new-res Mmio(0x49056000 .. 0x49056fff); - new-res Mmio(0x49058000 .. 0x49058fff); - } + hid = "omap3-gpio"; + Res.mmio(0x48004000, 0x48004fff); + Res.mmio(0x48310000, 0x48310fff); + Res.mmio(0x49050000, 0x49050fff); + Res.mmio(0x49052000, 0x49052fff); + Res.mmio(0x49054000, 0x49054fff); + Res.mmio(0x49056000, 0x49056fff); + Res.mmio(0x49058000, 0x49058fff); + }, - lcd => new Device() + lcd = Hw.Device { - .hid = "OMAP_LCD"; - new-res Mmio(0x48050000 .. 0x48050fff); - } + hid = "OMAP_LCD"; + Res.mmio(0x48050000, 0x48050fff); + }, - i2c1 => new Device() + i2c1 = Hw.Device { - .hid = "I2C"; - new-res Mmio(0x48070000 .. 0x48070fff); + hid = "omap3-i2c"; + Res.mmio(0x48070000, 0x48070fff); } }