xref: /xnu-8020.140.41/pexpert/pexpert/arm/T8002.h (revision 27b03b360a988dfd3dfdf34262bb0042026747cc)
1 /*
2  * Copyright (c) 2014-2015 Apple Inc. All rights reserved.
3  */
4 
5 #ifndef _PEXPERT_ARM_T8002_H
6 #define _PEXPERT_ARM_T8002_H
7 
8 #include <pexpert/arm/AIC.h>
9 
10 #ifndef ASSEMBLER
11 
12 #include <pexpert/arm/apple_uart_regs.h>
13 
14 #include <pexpert/arm/dockchannel.h>
15 
16 // AOP_CLOCK frequency * 30 ms
17 #define DOCKCHANNEL_DRAIN_PERIOD                (96000000 * 0.03)
18 
19 #define rPMGR_EVENT_TMR                         (*(volatile uint32_t *) (timer_base + 0x00000))
20 #define rPMGR_EVENT_TMR_PERIOD                  (*(volatile uint32_t *) (timer_base + 0x00004))
21 #define rPMGR_EVENT_TMR_CTL                     (*(volatile uint32_t *) (timer_base + 0x00008))
22 
23 #define PMGR_EVENT_TMR_CTL_EN                   (1 << 0)
24 
25 #endif
26 
27 #endif /* ! _PEXPERT_ARM_T8002_H */
28