mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
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>
This commit is contained in:
parent
4215afaf3d
commit
88f9474f18
@ -113,7 +113,7 @@ obj-y += prm_common.o cm_common.o
|
||||
obj-$(CONFIG_ARCH_OMAP2) += prm2xxx_3xxx.o prm2xxx.o cm2xxx.o
|
||||
obj-$(CONFIG_ARCH_OMAP3) += prm2xxx_3xxx.o prm3xxx.o cm3xxx.o
|
||||
obj-$(CONFIG_ARCH_OMAP3) += vc3xxx_data.o vp3xxx_data.o
|
||||
omap-prcm-4-5-common = cminst44xx.o cm44xx.o prm44xx.o \
|
||||
omap-prcm-4-5-common = cminst44xx.o prm44xx.o \
|
||||
prcm_mpu44xx.o prminst44xx.o \
|
||||
vc44xx_data.o vp44xx_data.o
|
||||
obj-$(CONFIG_ARCH_OMAP4) += $(omap-prcm-4-5-common)
|
||||
|
@ -25,8 +25,6 @@
|
||||
#ifndef __ARCH_ARM_MACH_OMAP2_CM1_44XX_H
|
||||
#define __ARCH_ARM_MACH_OMAP2_CM1_44XX_H
|
||||
|
||||
#include "cm_44xx_54xx.h"
|
||||
|
||||
/* CM1 base address */
|
||||
#define OMAP4430_CM1_BASE 0x4a004000
|
||||
|
||||
|
@ -22,8 +22,6 @@
|
||||
#ifndef __ARCH_ARM_MACH_OMAP2_CM1_54XX_H
|
||||
#define __ARCH_ARM_MACH_OMAP2_CM1_54XX_H
|
||||
|
||||
#include "cm_44xx_54xx.h"
|
||||
|
||||
/* CM1 base address */
|
||||
#define OMAP54XX_CM_CORE_AON_BASE 0x4a004000
|
||||
|
||||
|
@ -23,8 +23,6 @@
|
||||
#ifndef __ARCH_ARM_MACH_OMAP2_CM1_7XX_H
|
||||
#define __ARCH_ARM_MACH_OMAP2_CM1_7XX_H
|
||||
|
||||
#include "cm_44xx_54xx.h"
|
||||
|
||||
/* CM1 base address */
|
||||
#define DRA7XX_CM_CORE_AON_BASE 0x4a005000
|
||||
|
||||
|
@ -25,8 +25,6 @@
|
||||
#ifndef __ARCH_ARM_MACH_OMAP2_CM2_44XX_H
|
||||
#define __ARCH_ARM_MACH_OMAP2_CM2_44XX_H
|
||||
|
||||
#include "cm_44xx_54xx.h"
|
||||
|
||||
/* CM2 base address */
|
||||
#define OMAP4430_CM2_BASE 0x4a008000
|
||||
|
||||
|
@ -21,8 +21,6 @@
|
||||
#ifndef __ARCH_ARM_MACH_OMAP2_CM2_54XX_H
|
||||
#define __ARCH_ARM_MACH_OMAP2_CM2_54XX_H
|
||||
|
||||
#include "cm_44xx_54xx.h"
|
||||
|
||||
/* CM2 base address */
|
||||
#define OMAP54XX_CM_CORE_BASE 0x4a008000
|
||||
|
||||
|
@ -22,8 +22,6 @@
|
||||
#ifndef __ARCH_ARM_MACH_OMAP2_CM2_7XX_H
|
||||
#define __ARCH_ARM_MACH_OMAP2_CM2_7XX_H
|
||||
|
||||
#include "cm_44xx_54xx.h"
|
||||
|
||||
/* CM2 base address */
|
||||
#define DRA7XX_CM_CORE_BASE 0x4a008000
|
||||
|
||||
|
@ -1,49 +0,0 @@
|
||||
/*
|
||||
* OMAP4 CM1, CM2 module low-level functions
|
||||
*
|
||||
* Copyright (C) 2010 Nokia Corporation
|
||||
* Paul Walmsley
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
* These functions are intended to be used only by the cminst44xx.c file.
|
||||
* XXX Perhaps we should just move them there and make them static.
|
||||
*/
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/types.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/err.h>
|
||||
#include <linux/io.h>
|
||||
|
||||
#include "cm.h"
|
||||
#include "cm1_44xx.h"
|
||||
#include "cm2_44xx.h"
|
||||
|
||||
/* CM1 hardware module low-level functions */
|
||||
|
||||
/* Read a register in CM1 */
|
||||
u32 omap4_cm1_read_inst_reg(s16 inst, u16 reg)
|
||||
{
|
||||
return readl_relaxed(cm_base + inst + reg);
|
||||
}
|
||||
|
||||
/* Write into a register in CM1 */
|
||||
void omap4_cm1_write_inst_reg(u32 val, s16 inst, u16 reg)
|
||||
{
|
||||
writel_relaxed(val, cm_base + inst + reg);
|
||||
}
|
||||
|
||||
/* Read a register in CM2 */
|
||||
u32 omap4_cm2_read_inst_reg(s16 inst, u16 reg)
|
||||
{
|
||||
return readl_relaxed(cm2_base + inst + reg);
|
||||
}
|
||||
|
||||
/* Write into a register in CM2 */
|
||||
void omap4_cm2_write_inst_reg(u32 val, s16 inst, u16 reg)
|
||||
{
|
||||
writel_relaxed(val, cm2_base + inst + reg);
|
||||
}
|
@ -1,36 +0,0 @@
|
||||
/*
|
||||
* OMAP44xx and OMAP54xx CM1/CM2 function prototypes
|
||||
*
|
||||
* Copyright (C) 2009-2013 Texas Instruments, Inc.
|
||||
* Copyright (C) 2009-2010 Nokia Corporation
|
||||
*
|
||||
* Paul Walmsley (paul@pwsan.com)
|
||||
* Rajendra Nayak (rnayak@ti.com)
|
||||
* Benoit Cousson (b-cousson@ti.com)
|
||||
*
|
||||
* This file is automatically generated from the OMAP hardware databases.
|
||||
* We respectfully ask that any modifications to this file be coordinated
|
||||
* with the public linux-omap@vger.kernel.org mailing list and the
|
||||
* authors above to ensure that the autogeneration scripts are kept
|
||||
* up-to-date with the file contents.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __ARCH_ARM_MACH_OMAP2_CM_44XX_54XX_H
|
||||
#define __ARCH_ARM_MACH_OMAP2_CM_44XX_55XX_H
|
||||
|
||||
/* CM1 Function prototypes */
|
||||
extern u32 omap4_cm1_read_inst_reg(s16 inst, u16 idx);
|
||||
extern void omap4_cm1_write_inst_reg(u32 val, s16 inst, u16 idx);
|
||||
extern u32 omap4_cm1_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx);
|
||||
|
||||
/* CM2 Function prototypes */
|
||||
extern u32 omap4_cm2_read_inst_reg(s16 inst, u16 idx);
|
||||
extern void omap4_cm2_write_inst_reg(u32 val, s16 inst, u16 idx);
|
||||
extern u32 omap4_cm2_rmw_inst_reg_bits(u32 mask, u32 bits, s16 inst, s16 idx);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user