clk.h (cc9b94029e9ef51787af908e9856b1eed314bc00) clk.h (e44dde27949254b7da7259ab90864c211c14ade3)
1/*
2 * Copyright (c) 2014 MundoReader S.L.
3 * Author: Heiko Stuebner <heiko@sntech.de>
4 *
5 * Copyright (c) 2015 Rockchip Electronics Co. Ltd.
6 * Author: Xing Zheng <zhengxing@rock-chips.com>
7 *
8 * based on

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

29#include <linux/io.h>
30#include <linux/clk-provider.h>
31
32struct clk;
33
34#define HIWORD_UPDATE(val, mask, shift) \
35 ((val) << (shift) | (mask) << ((shift) + 16))
36
1/*
2 * Copyright (c) 2014 MundoReader S.L.
3 * Author: Heiko Stuebner <heiko@sntech.de>
4 *
5 * Copyright (c) 2015 Rockchip Electronics Co. Ltd.
6 * Author: Xing Zheng <zhengxing@rock-chips.com>
7 *
8 * based on

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

29#include <linux/io.h>
30#include <linux/clk-provider.h>
31
32struct clk;
33
34#define HIWORD_UPDATE(val, mask, shift) \
35 ((val) << (shift) | (mask) << ((shift) + 16))
36
37/* register positions shared by RK1108, RK2928, RK3036, RK3066, RK3188 and RK3228 */
38#define RK1108_PLL_CON(x) ((x) * 0x4)
39#define RK1108_CLKSEL_CON(x) ((x) * 0x4 + 0x60)
40#define RK1108_CLKGATE_CON(x) ((x) * 0x4 + 0x120)
41#define RK1108_SOFTRST_CON(x) ((x) * 0x4 + 0x180)
42#define RK1108_GLB_SRST_FST 0x1c0
43#define RK1108_GLB_SRST_SND 0x1c4
44#define RK1108_MISC_CON 0x1cc
45#define RK1108_SDMMC_CON0 0x1d8
46#define RK1108_SDMMC_CON1 0x1dc
47#define RK1108_SDIO_CON0 0x1e0
48#define RK1108_SDIO_CON1 0x1e4
49#define RK1108_EMMC_CON0 0x1e8
50#define RK1108_EMMC_CON1 0x1ec
51
37#define RK2928_PLL_CON(x) ((x) * 0x4)
38#define RK2928_MODE_CON 0x40
39#define RK2928_CLKSEL_CON(x) ((x) * 0x4 + 0x44)
40#define RK2928_CLKGATE_CON(x) ((x) * 0x4 + 0xd0)
41#define RK2928_GLB_SRST_FST 0x100
42#define RK2928_GLB_SRST_SND 0x104
43#define RK2928_SOFTRST_CON(x) ((x) * 0x4 + 0x110)
44#define RK2928_MISC_CON 0x134

--- 624 unchanged lines hidden ---
52#define RK2928_PLL_CON(x) ((x) * 0x4)
53#define RK2928_MODE_CON 0x40
54#define RK2928_CLKSEL_CON(x) ((x) * 0x4 + 0x44)
55#define RK2928_CLKGATE_CON(x) ((x) * 0x4 + 0xd0)
56#define RK2928_GLB_SRST_FST 0x100
57#define RK2928_GLB_SRST_SND 0x104
58#define RK2928_SOFTRST_CON(x) ((x) * 0x4 + 0x110)
59#define RK2928_MISC_CON 0x134

--- 624 unchanged lines hidden ---