Deleted Added
full compact
mtk_sysctl.h (297666) mtk_sysctl.h (298185)
1/*-
2 * Copyright (c) 2016 Stanislav Galabov.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 10 unchanged lines hidden (view full) ---

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
1/*-
2 * Copyright (c) 2016 Stanislav Galabov.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 10 unchanged lines hidden (view full) ---

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 *
27 * $FreeBSD: head/sys/mips/mediatek/mtk_sysctl.h 297666 2016-04-07 11:02:49Z sgalabov $
27 * $FreeBSD: head/sys/mips/mediatek/mtk_sysctl.h 298185 2016-04-18 06:15:58Z sgalabov $
28 */
29
30#ifndef _MTK_SYSCTL_H_
31#define _MTK_SYSCTL_H_
32
33/* System Control */
34#define SYSCTL_CHIPID0_3 0x00
35#define SYSCTL_CHIPID4_7 0x04

--- 11 unchanged lines hidden (view full) ---

47
48#define SYSCTL_CUR_CLK_STS 0x44
49
50#define SYSCTL_MT7620_CPLL_CFG0 0x54
51#define SYSCTL_MT7620_CPLL_CFG1 0x58
52
53#define SYSCFG1_USB_HOST_MODE (1<<10)
54
28 */
29
30#ifndef _MTK_SYSCTL_H_
31#define _MTK_SYSCTL_H_
32
33/* System Control */
34#define SYSCTL_CHIPID0_3 0x00
35#define SYSCTL_CHIPID4_7 0x04

--- 11 unchanged lines hidden (view full) ---

47
48#define SYSCTL_CUR_CLK_STS 0x44
49
50#define SYSCTL_MT7620_CPLL_CFG0 0x54
51#define SYSCTL_MT7620_CPLL_CFG1 0x58
52
53#define SYSCFG1_USB_HOST_MODE (1<<10)
54
55#define RT3350_CHIPID0_3 0x33335452
56
55extern uint32_t mtk_sysctl_get(uint32_t);
56extern void mtk_sysctl_set(uint32_t, uint32_t);
57extern void mtk_sysctl_clr_set(uint32_t, uint32_t, uint32_t);
58
59#endif /* _MTK_SYSCTL_H_ */
57extern uint32_t mtk_sysctl_get(uint32_t);
58extern void mtk_sysctl_set(uint32_t, uint32_t);
59extern void mtk_sysctl_clr_set(uint32_t, uint32_t, uint32_t);
60
61#endif /* _MTK_SYSCTL_H_ */