Commit 887adeac authored by Paul Walmsley's avatar Paul Walmsley

OMAP2+: hwmod/device: update documentation and copyright

Update some minor documentation issues and update copyright for
omap_device/omap_hwmod code.
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Benoît Cousson <b-cousson@ti.com>
parent db2a60bf
...@@ -423,7 +423,7 @@ static int _init_main_clk(struct omap_hwmod *oh) ...@@ -423,7 +423,7 @@ static int _init_main_clk(struct omap_hwmod *oh)
} }
/** /**
* _init_interface_clk - get a struct clk * for the the hwmod's interface clks * _init_interface_clks - get a struct clk * for the the hwmod's interface clks
* @oh: struct omap_hwmod * * @oh: struct omap_hwmod *
* *
* Called from _init_clocks(). Populates the @oh OCP slave interface * Called from _init_clocks(). Populates the @oh OCP slave interface
...@@ -1077,6 +1077,21 @@ void omap_hwmod_writel(u32 v, struct omap_hwmod *oh, u16 reg_offs) ...@@ -1077,6 +1077,21 @@ void omap_hwmod_writel(u32 v, struct omap_hwmod *oh, u16 reg_offs)
__raw_writel(v, oh->_mpu_rt_va + reg_offs); __raw_writel(v, oh->_mpu_rt_va + reg_offs);
} }
/**
* omap_hwmod_set_slave_idlemode - set the hwmod's OCP slave idlemode
* @oh: struct omap_hwmod *
* @idlemode: SIDLEMODE field bits (shifted to bit 0)
*
* Sets the IP block's OCP slave idlemode in hardware, and updates our
* local copy. Intended to be used by drivers that have some erratum
* that requires direct manipulation of the SIDLEMODE bits. Returns
* -EINVAL if @oh is null, or passes along the return value from
* _set_slave_idlemode().
*
* XXX Does this function have any current users? If not, we should
* remove it; it is better to let the rest of the hwmod code handle this.
* Any users of this function should be scrutinized carefully.
*/
int omap_hwmod_set_slave_idlemode(struct omap_hwmod *oh, u8 idlemode) int omap_hwmod_set_slave_idlemode(struct omap_hwmod *oh, u8 idlemode)
{ {
u32 v; u32 v;
......
/* /*
* omap_device implementation * omap_device implementation
* *
* Copyright (C) 2009 Nokia Corporation * Copyright (C) 2009-2010 Nokia Corporation
* Paul Walmsley, Kevin Hilman * Paul Walmsley, Kevin Hilman
* *
* Developed in collaboration with (alphabetical order): Benoit * Developed in collaboration with (alphabetical order): Benoit
...@@ -90,7 +90,10 @@ ...@@ -90,7 +90,10 @@
#define USE_WAKEUP_LAT 0 #define USE_WAKEUP_LAT 0
#define IGNORE_WAKEUP_LAT 1 #define IGNORE_WAKEUP_LAT 1
/*
* OMAP_DEVICE_MAGIC: used to determine whether a struct omap_device
* obtained via container_of() is in fact a struct omap_device
*/
#define OMAP_DEVICE_MAGIC 0xf00dcafe #define OMAP_DEVICE_MAGIC 0xf00dcafe
/* Private functions */ /* Private functions */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment