Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/freescale/imx/imx6_audmux.c
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
#include <machine/intr.h> | #include <machine/intr.h> | ||||
#define READ4(_sc, _reg) \ | #define READ4(_sc, _reg) \ | ||||
bus_space_read_4(_sc->bst, _sc->bsh, _reg) | bus_space_read_4(_sc->bst, _sc->bsh, _reg) | ||||
#define WRITE4(_sc, _reg, _val) \ | #define WRITE4(_sc, _reg, _val) \ | ||||
bus_space_write_4(_sc->bst, _sc->bsh, _reg, _val) | bus_space_write_4(_sc->bst, _sc->bsh, _reg, _val) | ||||
#define AUDMUX_PTCR(n) (0x8 * (n - 1)) /* Port Timing Control Register */ | #define AUDMUX_PTCR(n) (0x8 * (n - 1)) /* Port Timing Control Register */ | ||||
#define PTCR_TFS_DIR (1 << 31) /* Transmit Frame Sync Direction Control */ | #define PTCR_TFS_DIR (1U << 31) /* Transmit Frame Sync Direction Control */ | ||||
#define PTCR_TFSEL_S 27 /* Transmit Frame Sync Select */ | #define PTCR_TFSEL_S 27 /* Transmit Frame Sync Select */ | ||||
#define PTCR_TFSEL_M 0xf | #define PTCR_TFSEL_M 0xf | ||||
#define PTCR_TCLKDIR (1 << 26) /* Transmit Clock Direction Control */ | #define PTCR_TCLKDIR (1 << 26) /* Transmit Clock Direction Control */ | ||||
#define PTCR_TCSEL_S 22 /* Transmit Clock Select. */ | #define PTCR_TCSEL_S 22 /* Transmit Clock Select. */ | ||||
#define PTCR_TCSEL_M 0xf | #define PTCR_TCSEL_M 0xf | ||||
#define PTCR_RFS_DIR (1 << 21) /* Receive Frame Sync Direction Control */ | #define PTCR_RFS_DIR (1 << 21) /* Receive Frame Sync Direction Control */ | ||||
#define PTCR_SYN (1 << 11) | #define PTCR_SYN (1 << 11) | ||||
#define AUDMUX_PDCR(n) (0x8 * (n - 1) + 0x4) /* Port Data Control Reg */ | #define AUDMUX_PDCR(n) (0x8 * (n - 1) + 0x4) /* Port Data Control Reg */ | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |