Merge branch 'origin' into devel
Conflicts: sound/soc/pxa/pxa2xx-i2s.c
This commit is contained in:
45
arch/arm/plat-s3c/include/plat/audio.h
Normal file
45
arch/arm/plat-s3c/include/plat/audio.h
Normal file
@@ -0,0 +1,45 @@
|
||||
/* arch/arm/mach-s3c2410/include/mach/audio.h
|
||||
*
|
||||
* Copyright (c) 2004-2005 Simtec Electronics
|
||||
* http://www.simtec.co.uk/products/SWLINUX/
|
||||
* Ben Dooks <ben@simtec.co.uk>
|
||||
*
|
||||
* S3C24XX - Audio platfrom_device info
|
||||
*
|
||||
* 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 __ASM_ARCH_AUDIO_H
|
||||
#define __ASM_ARCH_AUDIO_H __FILE__
|
||||
|
||||
/* struct s3c24xx_iis_ops
|
||||
*
|
||||
* called from the s3c24xx audio core to deal with the architecture
|
||||
* or the codec's setup and control.
|
||||
*
|
||||
* the pointer to itself is passed through in case the caller wants to
|
||||
* embed this in an larger structure for easy reference to it's context.
|
||||
*/
|
||||
|
||||
struct s3c24xx_iis_ops {
|
||||
struct module *owner;
|
||||
|
||||
int (*startup)(struct s3c24xx_iis_ops *me);
|
||||
void (*shutdown)(struct s3c24xx_iis_ops *me);
|
||||
int (*suspend)(struct s3c24xx_iis_ops *me);
|
||||
int (*resume)(struct s3c24xx_iis_ops *me);
|
||||
|
||||
int (*open)(struct s3c24xx_iis_ops *me, struct snd_pcm_substream *strm);
|
||||
int (*close)(struct s3c24xx_iis_ops *me, struct snd_pcm_substream *strm);
|
||||
int (*prepare)(struct s3c24xx_iis_ops *me, struct snd_pcm_substream *strm, struct snd_pcm_runtime *rt);
|
||||
};
|
||||
|
||||
struct s3c24xx_platdata_iis {
|
||||
const char *codec_clk;
|
||||
struct s3c24xx_iis_ops *ops;
|
||||
int (*match_dev)(struct device *dev);
|
||||
};
|
||||
|
||||
#endif /* __ASM_ARCH_AUDIO_H */
|
75
arch/arm/plat-s3c/include/plat/regs-s3c2412-iis.h
Normal file
75
arch/arm/plat-s3c/include/plat/regs-s3c2412-iis.h
Normal file
@@ -0,0 +1,75 @@
|
||||
/* linux/include/asm-arm/plat-s3c24xx/regs-s3c2412-iis.h
|
||||
*
|
||||
* Copyright 2007 Simtec Electronics <linux@simtec.co.uk>
|
||||
* http://armlinux.simtec.co.uk/
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* S3C2412 IIS register definition
|
||||
*/
|
||||
|
||||
#ifndef __ASM_ARCH_REGS_S3C2412_IIS_H
|
||||
#define __ASM_ARCH_REGS_S3C2412_IIS_H
|
||||
|
||||
#define S3C2412_IISCON (0x00)
|
||||
#define S3C2412_IISMOD (0x04)
|
||||
#define S3C2412_IISFIC (0x08)
|
||||
#define S3C2412_IISPSR (0x0C)
|
||||
#define S3C2412_IISTXD (0x10)
|
||||
#define S3C2412_IISRXD (0x14)
|
||||
|
||||
#define S3C2412_IISCON_LRINDEX (1 << 11)
|
||||
#define S3C2412_IISCON_TXFIFO_EMPTY (1 << 10)
|
||||
#define S3C2412_IISCON_RXFIFO_EMPTY (1 << 9)
|
||||
#define S3C2412_IISCON_TXFIFO_FULL (1 << 8)
|
||||
#define S3C2412_IISCON_RXFIFO_FULL (1 << 7)
|
||||
#define S3C2412_IISCON_TXDMA_PAUSE (1 << 6)
|
||||
#define S3C2412_IISCON_RXDMA_PAUSE (1 << 5)
|
||||
#define S3C2412_IISCON_TXCH_PAUSE (1 << 4)
|
||||
#define S3C2412_IISCON_RXCH_PAUSE (1 << 3)
|
||||
#define S3C2412_IISCON_TXDMA_ACTIVE (1 << 2)
|
||||
#define S3C2412_IISCON_RXDMA_ACTIVE (1 << 1)
|
||||
#define S3C2412_IISCON_IIS_ACTIVE (1 << 0)
|
||||
|
||||
#define S3C64XX_IISMOD_IMS_PCLK (0 << 10)
|
||||
#define S3C64XX_IISMOD_IMS_SYSMUX (1 << 10)
|
||||
|
||||
#define S3C2412_IISMOD_MASTER_INTERNAL (0 << 10)
|
||||
#define S3C2412_IISMOD_MASTER_EXTERNAL (1 << 10)
|
||||
#define S3C2412_IISMOD_SLAVE (2 << 10)
|
||||
#define S3C2412_IISMOD_MASTER_MASK (3 << 10)
|
||||
#define S3C2412_IISMOD_MODE_TXONLY (0 << 8)
|
||||
#define S3C2412_IISMOD_MODE_RXONLY (1 << 8)
|
||||
#define S3C2412_IISMOD_MODE_TXRX (2 << 8)
|
||||
#define S3C2412_IISMOD_MODE_MASK (3 << 8)
|
||||
#define S3C2412_IISMOD_LR_LLOW (0 << 7)
|
||||
#define S3C2412_IISMOD_LR_RLOW (1 << 7)
|
||||
#define S3C2412_IISMOD_SDF_IIS (0 << 5)
|
||||
#define S3C2412_IISMOD_SDF_MSB (1 << 5)
|
||||
#define S3C2412_IISMOD_SDF_LSB (2 << 5)
|
||||
#define S3C2412_IISMOD_SDF_MASK (3 << 5)
|
||||
#define S3C2412_IISMOD_RCLK_256FS (0 << 3)
|
||||
#define S3C2412_IISMOD_RCLK_512FS (1 << 3)
|
||||
#define S3C2412_IISMOD_RCLK_384FS (2 << 3)
|
||||
#define S3C2412_IISMOD_RCLK_768FS (3 << 3)
|
||||
#define S3C2412_IISMOD_RCLK_MASK (3 << 3)
|
||||
#define S3C2412_IISMOD_BCLK_32FS (0 << 1)
|
||||
#define S3C2412_IISMOD_BCLK_48FS (1 << 1)
|
||||
#define S3C2412_IISMOD_BCLK_16FS (2 << 1)
|
||||
#define S3C2412_IISMOD_BCLK_24FS (3 << 1)
|
||||
#define S3C2412_IISMOD_BCLK_MASK (3 << 1)
|
||||
#define S3C2412_IISMOD_8BIT (1 << 0)
|
||||
|
||||
#define S3C2412_IISPSR_PSREN (1 << 15)
|
||||
|
||||
#define S3C2412_IISFIC_TXFLUSH (1 << 15)
|
||||
#define S3C2412_IISFIC_RXFLUSH (1 << 7)
|
||||
#define S3C2412_IISFIC_TXCOUNT(x) (((x) >> 8) & 0xf)
|
||||
#define S3C2412_IISFIC_RXCOUNT(x) (((x) >> 0) & 0xf)
|
||||
|
||||
|
||||
|
||||
#endif /* __ASM_ARCH_REGS_S3C2412_IIS_H */
|
||||
|
41
arch/arm/plat-s3c/include/plat/usb-control.h
Normal file
41
arch/arm/plat-s3c/include/plat/usb-control.h
Normal file
@@ -0,0 +1,41 @@
|
||||
/* arch/arm/plat-s3c/include/plat/usb-control.h
|
||||
*
|
||||
* Copyright (c) 2004 Simtec Electronics
|
||||
* Ben Dooks <ben@simtec.co.uk>
|
||||
*
|
||||
* S3C - USB host port information
|
||||
*
|
||||
* 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 __ASM_ARCH_USBCONTROL_H
|
||||
#define __ASM_ARCH_USBCONTROL_H
|
||||
|
||||
#define S3C_HCDFLG_USED (1)
|
||||
|
||||
struct s3c2410_hcd_port {
|
||||
unsigned char flags;
|
||||
unsigned char power;
|
||||
unsigned char oc_status;
|
||||
unsigned char oc_changed;
|
||||
};
|
||||
|
||||
struct s3c2410_hcd_info {
|
||||
struct usb_hcd *hcd;
|
||||
struct s3c2410_hcd_port port[2];
|
||||
|
||||
void (*power_control)(int port, int to);
|
||||
void (*enable_oc)(struct s3c2410_hcd_info *, int on);
|
||||
void (*report_oc)(struct s3c2410_hcd_info *, int ports);
|
||||
};
|
||||
|
||||
static void inline s3c2410_usb_report_oc(struct s3c2410_hcd_info *info, int ports)
|
||||
{
|
||||
if (info->report_oc != NULL) {
|
||||
(info->report_oc)(info, ports);
|
||||
}
|
||||
}
|
||||
|
||||
#endif /*__ASM_ARCH_USBCONTROL_H */
|
Reference in New Issue
Block a user