/*
 * omap-mcpdm.h
 *
 * Copyright (C) 2009 - 2011 Texas Instruments
 *
 * Contact: Misael Lopez Cruz <misael.lopez@ti.com>
 *
 * 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.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA
 *
 */

#ifndef __OMAP_MCPDM_H__
#define __OMAP_MCPDM_H__

#define MCPDM_REG_REVISION		0x00
#define MCPDM_REG_SYSCONFIG		0x10
#define MCPDM_REG_IRQSTATUS_RAW		0x24
#define MCPDM_REG_IRQSTATUS		0x28
#define MCPDM_REG_IRQENABLE_SET		0x2C
#define MCPDM_REG_IRQENABLE_CLR		0x30
#define MCPDM_REG_IRQWAKE_EN		0x34
#define MCPDM_REG_DMAENABLE_SET		0x38
#define MCPDM_REG_DMAENABLE_CLR		0x3C
#define MCPDM_REG_DMAWAKEEN		0x40
#define MCPDM_REG_CTRL			0x44
#define MCPDM_REG_DN_DATA		0x48
#define MCPDM_REG_UP_DATA		0x4C
#define MCPDM_REG_FIFO_CTRL_DN		0x50
#define MCPDM_REG_FIFO_CTRL_UP		0x54
#define MCPDM_REG_DN_OFFSET		0x58

/*
 * MCPDM_IRQ bit fields
 * IRQSTATUS_RAW, IRQSTATUS, IRQENABLE_SET, IRQENABLE_CLR
 */

#define MCPDM_DN_IRQ			(1 << 0)
#define MCPDM_DN_IRQ_EMPTY		(1 << 1)
#define MCPDM_DN_IRQ_ALMST_EMPTY	(1 << 2)
#define MCPDM_DN_IRQ_FULL		(1 << 3)

#define MCPDM_UP_IRQ			(1 << 8)
#define MCPDM_UP_IRQ_EMPTY		(1 << 9)
#define MCPDM_UP_IRQ_ALMST_FULL		(1 << 10)
#define MCPDM_UP_IRQ_FULL		(1 << 11)

#define MCPDM_DOWNLINK_IRQ_MASK		0x00F
#define MCPDM_UPLINK_IRQ_MASK		0xF00

/*
 * MCPDM_DMAENABLE bit fields
 */

#define MCPDM_DMA_DN_ENABLE		(1 << 0)
#define MCPDM_DMA_UP_ENABLE		(1 << 1)

/*
 * MCPDM_CTRL bit fields
 */

#define MCPDM_PDM_UPLINK_EN(x)		(1 << (x - 1)) /* ch1 is at bit 0 */
#define MCPDM_PDM_DOWNLINK_EN(x)	(1 << (x + 2)) /* ch1 is at bit 3 */
#define MCPDM_PDMOUTFORMAT		(1 << 8)
#define MCPDM_CMD_INT			(1 << 9)
#define MCPDM_STATUS_INT		(1 << 10)
#define MCPDM_SW_UP_RST			(1 << 11)
#define MCPDM_SW_DN_RST			(1 << 12)
#define MCPDM_WD_EN			(1 << 14)
#define MCPDM_PDM_UP_MASK		0x7
#define MCPDM_PDM_DN_MASK		(0x1f << 3)


#define MCPDM_PDMOUTFORMAT_LJUST	(0 << 8)
#define MCPDM_PDMOUTFORMAT_RJUST	(1 << 8)

/*
 * MCPDM_FIFO_CTRL bit fields
 */

#define MCPDM_UP_THRES_MAX		0xF
#define MCPDM_DN_THRES_MAX		0xF

/*
 * MCPDM_DN_OFFSET bit fields
 */

#define MCPDM_DN_OFST_RX1_EN		(1 << 0)
#define MCPDM_DNOFST_RX1(x)		((x & 0x1f) << 1)
#define MCPDM_DN_OFST_RX2_EN		(1 << 8)
#define MCPDM_DNOFST_RX2(x)		((x & 0x1f) << 9)

void omap_mcpdm_configure_dn_offsets(struct snd_soc_pcm_runtime *rtd,
				    u8 rx1, u8 rx2);

#endif	/* End of __OMAP_MCPDM_H__ */
7c264168d2b5a113904cf0cfd27d18'>ethoc.h</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/include/net/ethoc.h?id=74470954857c264168d2b5a113904cf0cfd27d18&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
te-remove&amp;id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>perf</a>/<a href='/cgit.cgi/linux/net-next.git/commit/tools/perf/bench?h=nds-private-remove&amp;id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>bench</a>/<a href='/cgit.cgi/linux/net-next.git/commit/tools/perf/bench/mem-memcpy-x86-64-asm-def.h?h=nds-private-remove&amp;id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>mem-memcpy-x86-64-asm-def.h</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='04d8a0a5f3b6887543850d991a5e37c4ec90e250'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select 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>Raju Lakkaraju &lt;Raju.Lakkaraju@microsemi.com&gt;</td><td class='right'>2017-02-07 19:10:26 +0530</td></tr>
<tr><th>committer</th><td>David S. Miller &lt;davem@davemloft.net&gt;</td><td class='right'>2017-02-08 13:29:04 -0500</td></tr>
<tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/tools/perf/bench/mem-memcpy-x86-64-asm-def.h?h=nds-private-remove&amp;id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>04d8a0a5f3b6887543850d991a5e37c4ec90e250</a> (<a href='/cgit.cgi/linux/net-next.git/patch/tools/perf/bench/mem-memcpy-x86-64-asm-def.h?id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>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=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>ee1fafb2122c2b29c7cb19e571bd7229afdbf847</a> /<a href='/cgit.cgi/linux/net-next.git/tree/tools/perf/bench/mem-memcpy-x86-64-asm-def.h?h=nds-private-remove&amp;id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>tools/perf/bench/mem-memcpy-x86-64-asm-def.h</a></td></tr>
<tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/tools/perf/bench/mem-memcpy-x86-64-asm-def.h?h=nds-private-remove&amp;id=ff4cf0e5ce952488074aa7f47734af1794f55fbc'>ff4cf0e5ce952488074aa7f47734af1794f55fbc</a> (<a href='/cgit.cgi/linux/net-next.git/diff/tools/perf/bench/mem-memcpy-x86-64-asm-def.h?h=nds-private-remove&amp;id=04d8a0a5f3b6887543850d991a5e37c4ec90e250&amp;id2=ff4cf0e5ce952488074aa7f47734af1794f55fbc'>diff</a>)</td></tr></table>
<div class='commit-subject'>net: phy: Add LED mode driver for Microsemi PHYs.</div><div class='commit-msg'>LED Mode:
Microsemi PHY support 2 LEDs (LED[0] and LED[1]) to display different
status information that can be selected by setting LED mode.

LED Mode parameter (vsc8531, led-0-mode) and (vsc8531, led-1-mode) get
from Device Tree.

Signed-off-by: Raju Lakkaraju &lt;Raju.Lakkaraju@microsemi.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?h=nds-private-remove&amp;id=04d8a0a5f3b6887543850d991a5e37c4ec90e250'>Diffstat</a> (limited to 'tools/perf/bench/mem-memcpy-x86-64-asm-def.h')</div><table summary='diffstat' class='diffstat'>