#include "../../lms2012/source/lms2012.h"
#include "../../lms2012/source/am1808.h"
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/sched.h>
#include <linux/hrtimer.h>
#include <linux/mm.h>
#include <linux/init.h>
#include <linux/uaccess.h>
#include <linux/debugfs.h>
#include <linux/ioport.h>
#include <asm/gpio.h>
#include <asm/io.h>
#include <linux/module.h>
#include <linux/miscdevice.h>
#include <asm/uaccess.h>
Go to the source code of this file.
#define CC_B_NO_SHADOW 0x40 |
#define CC_CTR_A_ZERO 0x0 |
#define CC_CTR_B_ZERO 0x0 |
#define DEFAULT_FREQUENCY 16499 |
#define DEFAULT_LEVEL 1000 |
#define DEVICE1_NAME SOUND_DEVICE |
#define EHRPWMClkEnableTone |
#define MODULE_NAME "sound_module" |
#define NPAGES ((SHM_LENGTH + PAGE_SIZE - 1) / PAGE_SIZE) |
#define PLL_MASTER_LOCK 0x00001000 |
#define SETPwmPeriod |
( |
|
Prd | ) |
|
#define SETSoundLevel |
( |
|
Level | ) |
|
#define SHM_LENGTH (sizeof(SoundDefault)) |
#define SOUND_RESERVED 0x0000 |
#define SOUNDPwmModuleSetupPcm |
#define SOUNDPwmModuleSetupTone |
Value:{ \
\
\
\
}
#define EHRPWMClkEnableTone
Definition at line 263 of file d_sound.c.
Value:{\
iowrite32(0x00000003, &PSC1[0x291]); \
iowrite32(0x00000003, &PSC1[0x48]); \
}
Definition at line 287 of file d_sound.c.
Value:{\
iowrite16(0x00, &eHRPWM0[
TBCTL]);\
iowrite16(0x00, &eHRPWM0[
CMPCTL]);
\
}
Definition at line 244 of file d_sound.c.
#define TB_SYNC_DISABLE 0x30 |
Enumerator |
---|
TIMING_SAMPLES |
|
ONE_SHOT |
|
MANUAL |
|
READY_FOR_SAMPLES |
|
IDLE |
|
Definition at line 81 of file d_sound.c.
Enumerator |
---|
SOUNDEN |
|
SOUND_ARMA |
|
SOUND_PINS |
|
Definition at line 292 of file d_sound.c.
GetPeriphealBasePtr.
Helper function for getting the peripheal HW base address
Definition at line 454 of file d_sound.c.
MODULE_AUTHOR |
( |
"The LEGO Group" |
| ) |
|
module_exit |
( |
ModuleExit |
| ) |
|
module_init |
( |
ModuleInit |
| ) |
|
module_param |
( |
HwId |
, |
|
|
charp |
, |
|
|
0 |
|
|
) |
| |