aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/cm44xx.c
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2014-10-27 11:39:25 -0400
committerTony Lindgren <tony@atomide.com>2014-10-27 11:39:25 -0400
commit88f9474f18b4f235b7e9a91d76810fd616fe611a (patch)
treea111ed99b395eb890f117c7cc15c6ed637b0b8d0 /arch/arm/mach-omap2/cm44xx.c
parent4215afaf3d540ffaee3274ede4d298132d03d773 (diff)
ARM: OMAP4+: CM: remove omap4_cm1/cm2_* functions
These are not used for anything, so remove both the implementations and header file references. Signed-off-by: Tero Kristo <t-kristo@ti.com> Tested-by: Nishanth Menon <nm@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/cm44xx.c')
-rw-r--r--arch/arm/mach-omap2/cm44xx.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/arch/arm/mach-omap2/cm44xx.c b/arch/arm/mach-omap2/cm44xx.c
deleted file mode 100644
index fe5cc7bae489..000000000000
--- a/arch/arm/mach-omap2/cm44xx.c
+++ /dev/null
@@ -1,49 +0,0 @@
1/*
2 * OMAP4 CM1, CM2 module low-level functions
3 *
4 * Copyright (C) 2010 Nokia Corporation
5 * Paul Walmsley
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 *
11 * These functions are intended to be used only by the cminst44xx.c file.
12 * XXX Perhaps we should just move them there and make them static.
13 */
14
15#include <linux/kernel.h>
16#include <linux/types.h>
17#include <linux/errno.h>
18#include <linux/err.h>
19#include <linux/io.h>
20
21#include "cm.h"
22#include "cm1_44xx.h"
23#include "cm2_44xx.h"
24
25/* CM1 hardware module low-level functions */
26
27/* Read a register in CM1 */
28u32 omap4_cm1_read_inst_reg(s16 inst, u16 reg)
29{
30 return readl_relaxed(cm_base + inst + reg);
31}
32
33/* Write into a register in CM1 */
34void omap4_cm1_write_inst_reg(u32 val, s16 inst, u16 reg)
35{
36 writel_relaxed(val, cm_base + inst + reg);
37}
38
39/* Read a register in CM2 */
40u32 omap4_cm2_read_inst_reg(s16 inst, u16 reg)
41{
42 return readl_relaxed(cm2_base + inst + reg);
43}
44
45/* Write into a register in CM2 */
46void omap4_cm2_write_inst_reg(u32 val, s16 inst, u16 reg)
47{
48 writel_relaxed(val, cm2_base + inst + reg);
49}