#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/pm.h>
#include <linux/platform_device.h>
#include <linux/err.h>
#include <linux/delay.h>
#include <linux/mfd/core.h>
#include <linux/mfd/ds1wm.h>
#include <linux/slab.h>
#include <asm/io.h>
#include "../w1.h"
#include "../w1_int.h"
Go to the source code of this file.
#define DS1WM_CLKDIV 0x04 /* R/W 5 bits of divisor and pre-scale */ |
#define DS1WM_CMD 0x00 /* R/W 4 bits command */ |
#define DS1WM_CMD_1W_RESET (1 << 0) /* force reset on 1-wire bus */ |
#define DS1WM_CMD_DQ_INPUT (1 << 3) /* read only - reflects state of bus */ |
#define DS1WM_CMD_DQ_OUTPUT (1 << 2) /* write only - forces bus low */ |
#define DS1WM_CMD_OD (1 << 7) /* overdrive */ |
#define DS1WM_CMD_SRA (1 << 1) /* enable Search ROM accelerator mode */ |
#define DS1WM_CNTRL 0x05 /* R/W master control register (not used yet) */ |
#define DS1WM_DATA 0x01 /* R/W 8 bits, transmit/receive buffer */ |
#define DS1WM_INT 0x02 /* R/W interrupt status */ |
#define DS1WM_INT_EN 0x03 /* R/W interrupt enable */ |
#define DS1WM_INT_PD (1 << 0) /* presence detect */ |
#define DS1WM_INT_RSRF (1 << 5) /* rx shift register full */ |
#define DS1WM_INT_TSRE (1 << 3) /* tx shift register empty */ |
#define ds1wm_resume NULL |
#define ds1wm_suspend NULL |
#define DS1WM_TIMEOUT (HZ * 5) |
MODULE_AUTHOR |
( |
"Szabolcs Gyurko <[email protected]> |
, |
|
|
""Matt Reimer< mreimer @vpop.net > |
, |
|
|
""Jean-Francois Dagenais< dagenaisj @sonatest.com >" |
|
|
) |
| |
MODULE_DESCRIPTION |
( |
"DS1WM w1 busmaster driver" |
| ) |
|
module_exit |
( |
ds1wm_exit |
| ) |
|
module_init |
( |
ds1wm_init |
| ) |
|
Initial value:= {
{ 1000000, 0x80 },
{ 2000000, 0x84 },
{ 3000000, 0x81 },
{ 4000000, 0x88 },
{ 5000000, 0x82 },
{ 6000000, 0x85 },
{ 7000000, 0x83 },
{ 8000000, 0x8c },
{ 10000000, 0x86 },
{ 12000000, 0x89 },
{ 14000000, 0x87 },
{ 16000000, 0x90 },
{ 20000000, 0x8a },
{ 24000000, 0x8d },
{ 28000000, 0x8b },
{ 32000000, 0x94 },
{ 40000000, 0x8e },
{ 48000000, 0x91 },
{ 56000000, 0x8f },
{ 64000000, 0x98 },
{ 80000000, 0x92 },
{ 96000000, 0x95 },
{ 112000000, 0x93 },
{ 128000000, 0x9c },
}
Definition at line 65 of file ds1wm.c.