#include <asm/types.h>
#include "../../lms2012/source/lms2012.h"
#include "../../lms2012/source/am1808.h"
#include "d_iic.h"
#include <linux/kernel.h>
#include <linux/fs.h>
#include <linux/sched.h>
#include <linux/circ_buf.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>
#include <linux/delay.h>
Go to the source code of this file.
|
enum | IIC_STATE {
IIC_IDLE,
IIC_INIT,
IIC_RESTART,
IIC_ENABLE,
IIC_NXT_TEMP_START,
IIC_NXT_TEMP_WRITE,
IIC_NXT_TEMP_READ,
IIC_MANUFACTURER_START,
IIC_MANUFACTURER_WRITE,
IIC_MANUFACTURER_READ,
IIC_TYPE_START,
IIC_TYPE_WRITE,
IIC_TYPE_READ,
IIC_SETUP_WAIT,
IIC_SETUP_START,
IIC_SETUP_WRITE,
IIC_SETUP_READ,
IIC_WAITING,
IIC_WRITING,
IIC_READING,
IIC_REPEAT,
IIC_ERROR,
IIC_EXIT,
IIC_STATES
} |
|
#define DEVICE1_NAME IIC_DEVICE |
#define IIC_TIMER_RESOLUTION 20 |
#define MODULE_NAME "iic_module" |
#define NO_OF_IIC_PORTS INPUTS |
#define NPAGES ((SHM_LENGTH + PAGE_SIZE - 1) / PAGE_SIZE) |
#define PUDisable iowrite32(ioread32(da8xx_syscfg1_base + 0x0C) & ~0xFFFFFFFF,da8xx_syscfg1_base + 0x0C) |
#define SHM_LENGTH (sizeof(IicDefault)) |
Enumerator |
---|
IIC_IDLE |
|
IIC_INIT |
|
IIC_RESTART |
|
IIC_ENABLE |
|
IIC_NXT_TEMP_START |
|
IIC_NXT_TEMP_WRITE |
|
IIC_NXT_TEMP_READ |
|
IIC_MANUFACTURER_START |
|
IIC_MANUFACTURER_WRITE |
|
IIC_MANUFACTURER_READ |
|
IIC_TYPE_START |
|
IIC_TYPE_WRITE |
|
IIC_TYPE_READ |
|
IIC_SETUP_WAIT |
|
IIC_SETUP_START |
|
IIC_SETUP_WRITE |
|
IIC_SETUP_READ |
|
IIC_WAITING |
|
IIC_WRITING |
|
IIC_READING |
|
IIC_REPEAT |
|
IIC_ERROR |
|
IIC_EXIT |
|
IIC_STATES |
|
Definition at line 612 of file d_iic.c.
void iic_fiq_start_transfer |
( |
unsigned int |
time, |
|
|
bool |
fiq_nirq |
|
) |
| |
MODULE_AUTHOR |
( |
"The LEGO Group" |
| ) |
|
module_exit |
( |
ModuleExit |
| ) |
|
module_init |
( |
ModuleInit |
| ) |
|
module_param |
( |
HwId |
, |
|
|
charp |
, |
|
|
0 |
|
|
) |
| |
Initial value:=
{
0,
0,
0,
0,
0,
-1,
0,
0,
0,
0,
1,
3,
"",
0,
0,
0,
0,
0,
}
Definition at line 388 of file d_iic.c.
Initial value:=
{
"IDLE\n",
"INIT",
"RESTART",
"ENABLE",
"IIC_NXT_TEMP_START",
"IIC_NXT_TEMP_WRITE",
"IIC_NXT_TEMP_READ",
"MANUFACTURER_START",
"MANUFACTURER_WRITE",
"MANUFACTURER_READ",
"TYPE_START",
"TYPE_WRITE",
"TYPE_READ",
"SETUP_WAIT",
"SETUP_START",
"SETUP_WRITE",
"SETUP_READ",
"WAITING",
"WRITING",
"READING",
"REPEAT",
"ERROR",
"EXIT"
}
Definition at line 641 of file d_iic.c.
Initial value:=
{
}
#define EP2
Schematics revision D.
#define FINAL
Final prototype.
#define FINALB
Schematics revision B and C.
Definition at line 242 of file d_iic.c.