diff options
author | Jon Hunter <jon-hunter@ti.com> | 2011-08-25 14:15:35 -0700 |
---|---|---|
committer | Simon Wilson <simonwilson@google.com> | 2011-08-30 09:54:18 -0700 |
commit | aa1859c10a4999a6ea486c3a6fc115b7cd60dd1f (patch) | |
tree | 230376b97f082dc5cbdc7b0a958ba0faf44a8639 /sound/soc/omap/omap-mcasp.h | |
parent | 5e565ff4cb32a6c71839dfa455b0e9eb9ab083d2 (diff) | |
download | kernel_samsung_espresso10-aa1859c10a4999a6ea486c3a6fc115b7cd60dd1f.zip kernel_samsung_espresso10-aa1859c10a4999a6ea486c3a6fc115b7cd60dd1f.tar.gz kernel_samsung_espresso10-aa1859c10a4999a6ea486c3a6fc115b7cd60dd1f.tar.bz2 |
ASoC: OMAP4: Add McASP driver for SPDIF
McASP driver for SPDIF supports 16-bit PCM audio formats only.
Change-Id: I2922fb265a7aea24589c507ab764b081e0075d07
Signed-off-by: Simon Wilson <simonwilson@google.com>
Diffstat (limited to 'sound/soc/omap/omap-mcasp.h')
-rw-r--r-- | sound/soc/omap/omap-mcasp.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sound/soc/omap/omap-mcasp.h b/sound/soc/omap/omap-mcasp.h new file mode 100644 index 0000000..764a537 --- /dev/null +++ b/sound/soc/omap/omap-mcasp.h @@ -0,0 +1,37 @@ +/* + * ALSA SoC McASP Audio Layer for TI OMAP processor + * + * MCASP related definitions + * + * Author: Jon Hunter <jon-hunter@ti.com>, + * Dan Milea <dan.milea@ti.com>, + * + * Based upon McASP driver written for TI DaVinci + * + * Copyright: (C) 2011 Texas Instruments + * + * 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 OMAP_MCASP_H +#define OMAP_MCASP_H + +#include <linux/io.h> +#include <plat/mcasp.h> + +#define OMAP44XX_MCASP_CFG_BASE 0x49028000 +#define OMAP44XX_MCASP_DAT_BASE 0x4902A000 + +struct omap_mcasp { + struct device *dev; + void __iomem *base; + struct clk *fclk; + unsigned long fclk_rate; + struct omap_mcasp_configs *configs; + unsigned int num_configs; + int active; +}; + +#endif /* OMAP_MCASP_H */ |