xref: /openbmc/qemu/include/hw/misc/mps2-scc.h (revision 835fde4a)
1 /*
2  * ARM MPS2 SCC emulation
3  *
4  * Copyright (c) 2017 Linaro Limited
5  * Written by Peter Maydell
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License version 2 or
9  *  (at your option) any later version.
10  */
11 
12 #ifndef MPS2_SCC_H
13 #define MPS2_SCC_H
14 
15 #include "hw/sysbus.h"
16 #include "hw/misc/led.h"
17 #include "qom/object.h"
18 
19 #define TYPE_MPS2_SCC "mps2-scc"
20 OBJECT_DECLARE_SIMPLE_TYPE(MPS2SCC, MPS2_SCC)
21 
22 struct MPS2SCC {
23     /*< private >*/
24     SysBusDevice parent_obj;
25 
26     /*< public >*/
27     MemoryRegion iomem;
28     LEDState *led[8];
29 
30     uint32_t cfg0;
31     uint32_t cfg1;
32     uint32_t cfg2;
33     uint32_t cfg4;
34     uint32_t cfg5;
35     uint32_t cfg6;
36     uint32_t cfgdata_rtn;
37     uint32_t cfgdata_out;
38     uint32_t cfgctrl;
39     uint32_t cfgstat;
40     uint32_t dll;
41     uint32_t aid;
42     uint32_t id;
43     uint32_t num_oscclk;
44     uint32_t *oscclk;
45     uint32_t *oscclk_reset;
46 };
47 
48 #endif
49