summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-12-21 11:42:50 +0100
committerTobias Klauser <tklauser@distanz.ch>2010-12-21 11:42:50 +0100
commitbb8e7336e4248b21517ed18a75b4d0343a3a0d53 (patch)
tree3f0c841ee1298a846f2d2a05202a219f6c6ef4b2 /device.c
parent5da40cbf6daae35ad4948476bac7827f81ee7904 (diff)
Updates all over the place (mostly devices)HEADmaster
Diffstat (limited to 'device.c')
-rw-r--r--device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/device.c b/device.c
index bec5a1a..33be8c7 100644
--- a/device.c
+++ b/device.c
@@ -13,10 +13,12 @@
#include "nios2sim-ng.h"
#include "device.h"
+#include "timer.h"
#include "uart.h"
#include "jtag_uart.h"
static struct device *devices[] = {
+ &timer_core,
&uart_core,
&jtag_uart_core,
};
@@ -24,6 +26,7 @@ static struct device *devices[] = {
bool device_generic_is_dev_addr(struct device *dev, uint32_t addr)
{
+ /* XXX: Also check alignment? */
if (addr >= dev->base && addr < dev->base + dev->size)
return true;