mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
hw/arm/fsl-imx8mp: Implement clock tree
Fixes quite a few stack traces during the Linux boot process. Also provides the clocks for devices added later, e.g. enet1. Signed-off-by: Bernhard Beschow <shentey@gmail.com> Message-id: 20250223114708.1780-6-shentey@gmail.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
a4eefc69b2
commit
86c2dff955
11 changed files with 483 additions and 0 deletions
30
include/hw/misc/imx8mp_ccm.h
Normal file
30
include/hw/misc/imx8mp_ccm.h
Normal file
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* Copyright (c) 2025 Bernhard Beschow <shentey@gmail.com>
|
||||
*
|
||||
* i.MX 8M Plus CCM IP block emulation code
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef IMX8MP_CCM_H
|
||||
#define IMX8MP_CCM_H
|
||||
|
||||
#include "hw/misc/imx_ccm.h"
|
||||
#include "qom/object.h"
|
||||
|
||||
enum IMX8MPCCMRegisters {
|
||||
CCM_MAX = 0xc6fc / sizeof(uint32_t) + 1,
|
||||
};
|
||||
|
||||
#define TYPE_IMX8MP_CCM "imx8mp.ccm"
|
||||
OBJECT_DECLARE_SIMPLE_TYPE(IMX8MPCCMState, IMX8MP_CCM)
|
||||
|
||||
struct IMX8MPCCMState {
|
||||
IMXCCMState parent_obj;
|
||||
|
||||
MemoryRegion iomem;
|
||||
|
||||
uint32_t ccm[CCM_MAX];
|
||||
};
|
||||
|
||||
#endif /* IMX8MP_CCM_H */
|
Loading…
Add table
Add a link
Reference in a new issue