#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/io.h>
#include <mach/hardware.h>
#include <asm/irq.h>
#include <asm/mach/irq.h>
#include <asm/hardware/locomo.h>
Go to the source code of this file.
|
void | locomo_gpio_set_dir (struct device *dev, unsigned int bits, unsigned int dir) |
|
| EXPORT_SYMBOL (locomo_gpio_set_dir) |
|
int | locomo_gpio_read_level (struct device *dev, unsigned int bits) |
|
| EXPORT_SYMBOL (locomo_gpio_read_level) |
|
int | locomo_gpio_read_output (struct device *dev, unsigned int bits) |
|
| EXPORT_SYMBOL (locomo_gpio_read_output) |
|
void | locomo_gpio_write (struct device *dev, unsigned int bits, unsigned int set) |
|
| EXPORT_SYMBOL (locomo_gpio_write) |
|
void | locomo_m62332_senddata (struct locomo_dev *ldev, unsigned int dac_data, int channel) |
|
| EXPORT_SYMBOL (locomo_m62332_senddata) |
|
void | locomo_frontlight_set (struct locomo_dev *dev, int duty, int vr, int bpwf) |
|
| EXPORT_SYMBOL (locomo_frontlight_set) |
|
int | locomo_driver_register (struct locomo_driver *driver) |
|
| EXPORT_SYMBOL (locomo_driver_register) |
|
void | locomo_driver_unregister (struct locomo_driver *driver) |
|
| EXPORT_SYMBOL (locomo_driver_unregister) |
|
| module_init (locomo_init) |
|
| module_exit (locomo_exit) |
|
| MODULE_DESCRIPTION ("Sharp LoCoMo core driver") |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_AUTHOR ("John Lenz <[email protected]>") |
|
#define DAC_BUS_FREE_TIME 5 /* 4.7 us */ |
#define DAC_DATA_HOLD_TIME 1 /* 300 ns */ |
#define DAC_DATA_SETUP_TIME 1 /* 250 ns */ |
#define DAC_HIGH_SETUP_TIME 1 /* 1000 ns */ |
#define DAC_LOW_SETUP_TIME 1 /* 300 ns */ |
#define DAC_SCL_HIGH_HOLD_TIME 4 /* 4.0 us */ |
#define DAC_SCL_LOW_HOLD_TIME 5 /* 4.7 us */ |
#define DAC_START_HOLD_TIME 5 /* 4.7 us */ |
#define DAC_START_SETUP_TIME 5 /* 4.7 us */ |
#define DAC_STOP_SETUP_TIME 4 /* 4.0 us */ |
#define IRQ_LOCOMO_GPIO (1) |
#define IRQ_LOCOMO_KEY (0) |
#define IRQ_LOCOMO_LT (2) |
#define IRQ_LOCOMO_SPI (3) |
#define M62332_A_BIT 0x00 /* A bit (0 only) */ |
#define M62332_SLAVE_ADDR 0x4e /* Slave address */ |
#define M62332_SUB_ADDR 0x00 /* Sub address */ |
#define M62332_W_BIT 0x00 /* W bit (0 only) */ |
module_exit |
( |
locomo_exit |
| ) |
|
module_init |
( |
locomo_init |
| ) |
|
Initial value:= {
.name = "locomo-bus",
.match = locomo_match,
.probe = locomo_bus_probe,
.remove = locomo_bus_remove,
.suspend = locomo_bus_suspend,
.resume = locomo_bus_resume,
}
Definition at line 873 of file locomo.c.