#ifndef CS2000_H_INCLUDED
#define CS2000_H_INCLUDED

#define CS2000_DEV_ID		0x01
#define CS2000_DEV_CTRL		0x02
#define CS2000_DEV_CFG_1	0x03
#define CS2000_DEV_CFG_2	0x04
#define CS2000_GLOBAL_CFG	0x05
#define CS2000_RATIO_0		0x06 /* 32 bits, big endian */
#define CS2000_RATIO_1		0x0a
#define CS2000_RATIO_2		0x0e
#define CS2000_RATIO_3		0x12
#define CS2000_FUN_CFG_1	0x16
#define CS2000_FUN_CFG_2	0x17
#define CS2000_FUN_CFG_3	0x1e

/* DEV_ID */
#define CS2000_DEVICE_MASK		0xf8
#define CS2000_REVISION_MASK		0x07

/* DEV_CTRL */
#define CS2000_UNLOCK			0x80
#define CS2000_AUX_OUT_DIS		0x02
#define CS2000_CLK_OUT_DIS		0x01

/* DEV_CFG_1 */
#define CS2000_R_MOD_SEL_MASK		0xe0
#define CS2000_R_MOD_SEL_1		0x00
#define CS2000_R_MOD_SEL_2		0x20
#define CS2000_R_MOD_SEL_4		0x40
#define CS2000_R_MOD_SEL_8		0x60
#define CS2000_R_MOD_SEL_1_2		0x80
#define CS2000_R_MOD_SEL_1_4		0xa0
#define CS2000_R_MOD_SEL_1_8		0xc0
#define CS2000_R_MOD_SEL_1_16		0xe0
#define CS2000_R_SEL_MASK		0x18
#define CS2000_R_SEL_SHIFT		3
#define CS2000_AUX_OUT_SRC_MASK		0x06
#define CS2000_AUX_OUT_SRC_REF_CLK	0x00
#define CS2000_AUX_OUT_SRC_CLK_IN	0x02
#define CS2000_AUX_OUT_SRC_CLK_OUT	0x04
#define CS2000_AUX_OUT_SRC_PLL_LOCK	0x06
#define CS2000_EN_DEV_CFG_1		0x01

/* DEV_CFG_2 */
#define CS2000_LOCK_CLK_MASK		0x06
#define CS2000_LOCK_CLK_SHIFT		1
#define CS2000_FRAC_N_SRC_MASK		0x01
#define CS2000_FRAC_N_SRC_STATIC	0x00
#define CS2000_FRAC_N_SRC_DYNAMIC	0x01

/* GLOBAL_CFG */
#define CS2000_FREEZE			0x08
#define CS2000_EN_DEV_CFG_2		0x01

/* FUN_CFG_1 */
#define CS2000_CLK_SKIP_EN		0x80
#define CS2000_AUX_LOCK_CFG_MASK	0x40
#define CS2000_AUX_LOCK_CFG_PP_HIGH	0x00
#define CS2000_AUX_LOCK_CFG_OD_LOW	0x40
#define CS2000_REF_CLK_DIV_MASK		0x18
#define CS2000_REF_CLK_DIV_4		0x00
#define CS2000_REF_CLK_DIV_2		0x08
#define CS2000_REF_CLK_DIV_1		0x10

/* FUN_CFG_2 */
#define CS2000_CLK_OUT_UNL		0x10
#define CS2000_L_F_RATIO_CFG_MASK	0x08
#define CS2000_L_F_RATIO_CFG_20_12	0x00
#define CS2000_L_F_RATIO_CFG_12_20	0x08

/* FUN_CFG_3 */
#define CS2000_CLK_IN_BW_MASK		0x70
#define CS2000_CLK_IN_BW_1		0x00
#define CS2000_CLK_IN_BW_2		0x10
#define CS2000_CLK_IN_BW_4		0x20
#define CS2000_CLK_IN_BW_8		0x30
#define CS2000_CLK_IN_BW_16		0x40
#define CS2000_CLK_IN_BW_32		0x50
#define CS2000_CLK_IN_BW_64		0x60
#define CS2000_CLK_IN_BW_128		0x70

#endif
/scripts/python/Perf-Trace-Util/lib/Perf'>
<input type='hidden' name='id' value='a5c02f668c36c05fbbb29d157507be4868ecd176'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=a5c02f668c36c05fbbb29d157507be4868ecd176'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools?id=a5c02f668c36c05fbbb29d157507be4868ecd176'>tools</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf?id=a5c02f668c36c05fbbb29d157507be4868ecd176'>perf</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/scripts?id=a5c02f668c36c05fbbb29d157507be4868ecd176'>scripts</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/scripts/python?id=a5c02f668c36c05fbbb29d157507be4868ecd176'>python</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/scripts/python/Perf-Trace-Util?id=a5c02f668c36c05fbbb29d157507be4868ecd176'>Perf-Trace-Util</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/scripts/python/Perf-Trace-Util/lib?id=a5c02f668c36c05fbbb29d157507be4868ecd176'>lib</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf?id=a5c02f668c36c05fbbb29d157507be4868ecd176'>Perf</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf?id=a5c02f668c36c05fbbb29d157507be4868ecd176&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
ct name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'>
<tr><th>author</th><td>Charles Keepax &lt;ckeepax@opensource.wolfsonmicro.com&gt;</td><td class='right'>2016-11-29 11:50:03 +0000</td></tr>
<tr><th>committer</th><td>Mark Brown &lt;broonie@kernel.org&gt;</td><td class='right'>2016-11-30 17:44:16 +0000</td></tr>
<tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/sound/firewire?h=nds-private-remove&amp;id=109c75afa1cf7c08015f19e354bed581f29f7a94'>109c75afa1cf7c08015f19e354bed581f29f7a94</a> (<a href='/cgit.cgi/linux/net-next.git/patch/sound/firewire?id=109c75afa1cf7c08015f19e354bed581f29f7a94'>patch</a>)</td></tr>
<tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?h=nds-private-remove&amp;id=109c75afa1cf7c08015f19e354bed581f29f7a94'>94b7c791b7cd83225d6701b10b6d4c1aeac5151a</a> /<a href='/cgit.cgi/linux/net-next.git/tree/sound/firewire?h=nds-private-remove&amp;id=109c75afa1cf7c08015f19e354bed581f29f7a94'>sound/firewire</a></td></tr>
<tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/sound/firewire?h=nds-private-remove&amp;id=1001354ca34179f3db924eb66672442a173147dc'>1001354ca34179f3db924eb66672442a173147dc</a> (<a href='/cgit.cgi/linux/net-next.git/diff/sound/firewire?h=nds-private-remove&amp;id=109c75afa1cf7c08015f19e354bed581f29f7a94&amp;id2=1001354ca34179f3db924eb66672442a173147dc'>diff</a>)</td></tr></table>
<div class='commit-subject'>regulator: core: Correct type of mode in regulator_mode_constrain</div><div class='commit-msg'>Every function handling the mode within the regulator core uses an unsigned
int for mode, except for regulator_mode_constrain. This patch changes the
type of mode within regulator_mode_constrain which fixes several instances
where we are passing pointers to unsigned ints then treating them as an int
within this function.

Signed-off-by: Charles Keepax &lt;ckeepax@opensource.wolfsonmicro.com&gt;
Signed-off-by: Mark Brown &lt;broonie@kernel.org&gt;
</div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?h=nds-private-remove&amp;id=109c75afa1cf7c08015f19e354bed581f29f7a94'>Diffstat</a> (limited to 'sound/firewire')</div><table summary='diffstat' class='diffstat'>