1
From e38d989581bf7ec09ae9f6647e522e077b994a7a Mon Sep 17 00:00:00 2001
2
From: Jan Vesely <jano.vesely@gmail.com>
3
Date: Mon, 18 Feb 2013 16:58:30 +0000
4
Subject: [PATCH 38/70] omap_uart: Add revision property.
6
Set revision to values reported by beagleboard(-xm) hw.
8
Signed-off-by: Jan Vesely <jano.vesely@gmail.com>
10
hw/char/omap_uart.c | 4 +++-
11
1 file changed, 3 insertions(+), 1 deletion(-)
13
diff --git a/hw/char/omap_uart.c b/hw/char/omap_uart.c
14
index 55982fa..c2cf46a 100644
15
--- a/hw/char/omap_uart.c
16
+++ b/hw/char/omap_uart.c
17
@@ -48,6 +48,7 @@ typedef struct omap_uart_s {
18
const MemoryRegionOps *serial_ops;
25
@@ -167,7 +168,7 @@ static uint64_t omap_uart_read(void *opaque, hwaddr addr,
26
case 0x4C: /* OSC_12M_SEL (OMAP1) */
31
case 0x54: /* SYSC (OMAP2) */
33
case 0x58: /* SYSS (OMAP2) */
34
@@ -330,6 +331,7 @@ static int omap_uart_init(SysBusDevice *busdev)
37
static Property omap_uart_properties[] = {
38
+ DEFINE_PROP_UINT32("revision", struct omap_uart_s, revision, 0x30),
39
DEFINE_PROP_UINT32("mmio_size", struct omap_uart_s, mmio_size, 0x400),
40
DEFINE_PROP_UINT32("baudrate", struct omap_uart_s, baudrate, 0),
41
DEFINE_PROP_CHR("chardev", struct omap_uart_s, chr),