xref: /qemu/include/hw/misc/bcm2835_cprman_internals.h (revision fc14176ba23de1386d8172d86a8006d9f8a555fc)
1 /*
2  * BCM2835 CPRMAN clock manager
3  *
4  * Copyright (c) 2020 Luc Michel <luc@lmichel.fr>
5  *
6  * SPDX-License-Identifier: GPL-2.0-or-later
7  */
8 
9 #ifndef HW_MISC_CPRMAN_INTERNALS_H
10 #define HW_MISC_CPRMAN_INTERNALS_H
11 
12 #include "hw/registerfields.h"
13 #include "hw/misc/bcm2835_cprman.h"
14 
15 /* Register map */
16 
17 /*
18  * This field is common to all registers. Each register write value must match
19  * the CPRMAN_PASSWORD magic value in its 8 MSB.
20  */
21 FIELD(CPRMAN, PASSWORD, 24, 8)
22 #define CPRMAN_PASSWORD 0x5a
23 
24 #endif
25