2 * Microchip PolarFire SoC DDR Memory Controller module emulation
4 * Copyright (c) 2020 Wind River Systems, Inc.
7 * Bin Meng <bin.meng@windriver.com>
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 or
12 * (at your option) version 3 of the License.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, see <http://www.gnu.org/licenses/>.
23 #ifndef MCHP_PFSOC_DMC_H
24 #define MCHP_PFSOC_DMC_H
26 #include "hw/sysbus.h"
28 /* DDR SGMII PHY module */
30 #define MCHP_PFSOC_DDR_SGMII_PHY_REG_SIZE 0x1000
32 typedef struct MchpPfSoCDdrSgmiiPhyState
{
34 MemoryRegion sgmii_phy
;
35 } MchpPfSoCDdrSgmiiPhyState
;
37 #define TYPE_MCHP_PFSOC_DDR_SGMII_PHY "mchp.pfsoc.ddr_sgmii_phy"
39 #define MCHP_PFSOC_DDR_SGMII_PHY(obj) \
40 OBJECT_CHECK(MchpPfSoCDdrSgmiiPhyState, (obj), \
41 TYPE_MCHP_PFSOC_DDR_SGMII_PHY)
45 #define MCHP_PFSOC_DDR_CFG_REG_SIZE 0x40000
47 typedef struct MchpPfSoCDdrCfgState
{
50 } MchpPfSoCDdrCfgState
;
52 #define TYPE_MCHP_PFSOC_DDR_CFG "mchp.pfsoc.ddr_cfg"
54 #define MCHP_PFSOC_DDR_CFG(obj) \
55 OBJECT_CHECK(MchpPfSoCDdrCfgState, (obj), \
56 TYPE_MCHP_PFSOC_DDR_CFG)
58 #endif /* MCHP_PFSOC_DMC_H */