1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
/* $OpenBSD: prcmvar.h,v 1.4 2013/10/28 11:11:50 rapha Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
void prcm_setclock(int clock, int speed);
void prcm_enablemodule(int mod);
void prcm_disablemodule(int mod);
#define PRCM_CLK_SPEED_32 0
#define PRCM_CLK_SPEED_SYS 1
enum PRCM_MODULES {
PRCM_TIMER0,
PRCM_TIMER1,
PRCM_TIMER2,
PRCM_TIMER3,
PRCM_GPIO0,
PRCM_GPIO1,
PRCM_GPIO2,
PRCM_GPIO3,
PRCM_GPIO4,
PRCM_GPIO5,
PRCM_TPCC,
PRCM_TPTC0,
PRCM_TPTC1,
PRCM_TPTC2,
PRCM_MMC0,
PRCM_MMC1,
PRCM_MMC2,
PRCM_USB,
PRCM_USBTLL,
PRCM_USBP1_PHY,
PRCM_USBP1_UTMI,
PRCM_USBP1_HSIC,
PRCM_USBP2_PHY,
PRCM_USBP2_UTMI,
PRCM_USBP2_HSIC
};
#define PRCM_REG_MAX 6
/* need interface for CM_AUTOIDLE */
|