Skip to content

Commit 3214be6

Browse files
Sowjanya Komatinenithierryreding
authored andcommitted
clk: tegra: Share clk and rst register defines with Tegra clock driver
Move CLK_OUT_ENB and RST_DEVICES registers to clk.h to share these with Tegra clock driver. Signed-off-by: Sowjanya Komatineni <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent f68cbb3 commit 3214be6

File tree

2 files changed

+45
-45
lines changed

2 files changed

+45
-45
lines changed

drivers/clk/tegra/clk.c

Lines changed: 0 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -16,51 +16,6 @@
1616

1717
#include "clk.h"
1818

19-
#define CLK_OUT_ENB_L 0x010
20-
#define CLK_OUT_ENB_H 0x014
21-
#define CLK_OUT_ENB_U 0x018
22-
#define CLK_OUT_ENB_V 0x360
23-
#define CLK_OUT_ENB_W 0x364
24-
#define CLK_OUT_ENB_X 0x280
25-
#define CLK_OUT_ENB_Y 0x298
26-
#define CLK_ENB_PLLP_OUT_CPU BIT(31)
27-
#define CLK_OUT_ENB_SET_L 0x320
28-
#define CLK_OUT_ENB_CLR_L 0x324
29-
#define CLK_OUT_ENB_SET_H 0x328
30-
#define CLK_OUT_ENB_CLR_H 0x32c
31-
#define CLK_OUT_ENB_SET_U 0x330
32-
#define CLK_OUT_ENB_CLR_U 0x334
33-
#define CLK_OUT_ENB_SET_V 0x440
34-
#define CLK_OUT_ENB_CLR_V 0x444
35-
#define CLK_OUT_ENB_SET_W 0x448
36-
#define CLK_OUT_ENB_CLR_W 0x44c
37-
#define CLK_OUT_ENB_SET_X 0x284
38-
#define CLK_OUT_ENB_CLR_X 0x288
39-
#define CLK_OUT_ENB_SET_Y 0x29c
40-
#define CLK_OUT_ENB_CLR_Y 0x2a0
41-
42-
#define RST_DEVICES_L 0x004
43-
#define RST_DEVICES_H 0x008
44-
#define RST_DEVICES_U 0x00C
45-
#define RST_DEVICES_V 0x358
46-
#define RST_DEVICES_W 0x35C
47-
#define RST_DEVICES_X 0x28C
48-
#define RST_DEVICES_Y 0x2a4
49-
#define RST_DEVICES_SET_L 0x300
50-
#define RST_DEVICES_CLR_L 0x304
51-
#define RST_DEVICES_SET_H 0x308
52-
#define RST_DEVICES_CLR_H 0x30c
53-
#define RST_DEVICES_SET_U 0x310
54-
#define RST_DEVICES_CLR_U 0x314
55-
#define RST_DEVICES_SET_V 0x430
56-
#define RST_DEVICES_CLR_V 0x434
57-
#define RST_DEVICES_SET_W 0x438
58-
#define RST_DEVICES_CLR_W 0x43c
59-
#define RST_DEVICES_SET_X 0x290
60-
#define RST_DEVICES_CLR_X 0x294
61-
#define RST_DEVICES_SET_Y 0x2a8
62-
#define RST_DEVICES_CLR_Y 0x2ac
63-
6419
/* Global data of Tegra CPU CAR ops */
6520
static struct tegra_cpu_car_ops dummy_car_ops;
6621
struct tegra_cpu_car_ops *tegra_cpu_car_ops = &dummy_car_ops;

drivers/clk/tegra/clk.h

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,51 @@
1010
#include <linux/clkdev.h>
1111
#include <linux/delay.h>
1212

13+
#define CLK_OUT_ENB_L 0x010
14+
#define CLK_OUT_ENB_H 0x014
15+
#define CLK_OUT_ENB_U 0x018
16+
#define CLK_OUT_ENB_V 0x360
17+
#define CLK_OUT_ENB_W 0x364
18+
#define CLK_OUT_ENB_X 0x280
19+
#define CLK_OUT_ENB_Y 0x298
20+
#define CLK_ENB_PLLP_OUT_CPU BIT(31)
21+
#define CLK_OUT_ENB_SET_L 0x320
22+
#define CLK_OUT_ENB_CLR_L 0x324
23+
#define CLK_OUT_ENB_SET_H 0x328
24+
#define CLK_OUT_ENB_CLR_H 0x32c
25+
#define CLK_OUT_ENB_SET_U 0x330
26+
#define CLK_OUT_ENB_CLR_U 0x334
27+
#define CLK_OUT_ENB_SET_V 0x440
28+
#define CLK_OUT_ENB_CLR_V 0x444
29+
#define CLK_OUT_ENB_SET_W 0x448
30+
#define CLK_OUT_ENB_CLR_W 0x44c
31+
#define CLK_OUT_ENB_SET_X 0x284
32+
#define CLK_OUT_ENB_CLR_X 0x288
33+
#define CLK_OUT_ENB_SET_Y 0x29c
34+
#define CLK_OUT_ENB_CLR_Y 0x2a0
35+
36+
#define RST_DEVICES_L 0x004
37+
#define RST_DEVICES_H 0x008
38+
#define RST_DEVICES_U 0x00C
39+
#define RST_DEVICES_V 0x358
40+
#define RST_DEVICES_W 0x35C
41+
#define RST_DEVICES_X 0x28C
42+
#define RST_DEVICES_Y 0x2a4
43+
#define RST_DEVICES_SET_L 0x300
44+
#define RST_DEVICES_CLR_L 0x304
45+
#define RST_DEVICES_SET_H 0x308
46+
#define RST_DEVICES_CLR_H 0x30c
47+
#define RST_DEVICES_SET_U 0x310
48+
#define RST_DEVICES_CLR_U 0x314
49+
#define RST_DEVICES_SET_V 0x430
50+
#define RST_DEVICES_CLR_V 0x434
51+
#define RST_DEVICES_SET_W 0x438
52+
#define RST_DEVICES_CLR_W 0x43c
53+
#define RST_DEVICES_SET_X 0x290
54+
#define RST_DEVICES_CLR_X 0x294
55+
#define RST_DEVICES_SET_Y 0x2a8
56+
#define RST_DEVICES_CLR_Y 0x2ac
57+
1358
/**
1459
* struct tegra_clk_sync_source - external clock source from codec
1560
*

0 commit comments

Comments
 (0)