| * Copyright (c) 2017 Linaro Limited |
| * Written by Peter Maydell |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License version 2 or |
| * (at your option) any later version. |
| * This is a model of the Serial Communication Controller (SCC) |
| * block found in most MPS FPGA images. |
| * + sysbus MMIO region 0: the register bank |
| * + QOM property "scc-cfg4": value of the read-only CFG4 register |
| * + QOM property "scc-aid": value of the read-only SCC_AID register |
| * + QOM property "scc-id": value of the read-only SCC_ID register |
| * + QOM property "scc-cfg0": reset value of the CFG0 register |
| * + QOM property array "oscclk": reset values of the OSCCLK registers |
| * (which are accessed via the SYS_CFG channel provided by this device) |
| * + named GPIO output "remap": this tracks the value of CFG0 register |
| * bit 0. Boards where this bit controls memory remapping should |
| * connect this GPIO line to a function performing that mapping. |
| * Boards where bit 0 has no special function should leave the GPIO |
| #define TYPE_MPS2_SCC "mps2-scc" |
| OBJECT_DECLARE_SIMPLE_TYPE(MPS2SCC, MPS2_SCC) |