| 1 | /* |
| 2 | * Copyright (c) 2025 Bernhard Beschow <shentey@gmail.com> |
| 3 | * |
| 4 | * i.MX 8M Plus CCM IP block emulation code |
| 5 | * |
| 6 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 7 | */ |
| 8 | |
| 9 | #ifndef IMX8MP_CCM_H |
| 10 | #define IMX8MP_CCM_H |
| 11 | |
| 12 | #include "hw/misc/imx_ccm.h" |
| 13 | #include "qom/object.h" |
| 14 | |
| 15 | enum IMX8MPCCMRegisters { |
| 16 | CCM_MAX = 0xc6fc / sizeof(uint32_t) + 1, |
| 17 | }; |
| 18 | |
| 19 | #define TYPE_IMX8MP_CCM "imx8mp.ccm" |
| 20 | OBJECT_DECLARE_SIMPLE_TYPE(IMX8MPCCMState, IMX8MP_CCM) |
| 21 | |
| 22 | struct IMX8MPCCMState { |
| 23 | IMXCCMState parent_obj; |
| 24 | |
| 25 | MemoryRegion iomem; |
| 26 | |
| 27 | uint32_t ccm[CCM_MAX]; |
| 28 | }; |
| 29 | |
| 30 | #endif /* IMX8MP_CCM_H */ |