Linux Kernel
3.7.1
|
#include <linux/init.h>
#include <linux/mutex.h>
#include <linux/platform_device.h>
#include <linux/clk.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/gpio.h>
#include <linux/leds.h>
#include <linux/i2c.h>
#include <linux/i2c/dm355evm_msp.h>
Go to the source code of this file.
Macros | |
#define | msp_has_keyboard() false |
#define | msp_has_leds() false |
#define | msp_has_rtc() false |
#define | msp_has_tvp() false |
#define | MSP_GPIO(bit, reg) ((DM355EVM_MSP_ ## reg) << 3 | (bit)) |
#define | MSP_GPIO_REG(offset) (msp_gpios[(offset)] >> 3) |
#define | MSP_GPIO_MASK(offset) BIT(msp_gpios[(offset)] & 0x07) |
#define | GPIO_LED(l) .name = l, .active_low = true |
Functions | |
int | dm355evm_msp_write (u8 value, u8 reg) |
EXPORT_SYMBOL (dm355evm_msp_write) | |
int | dm355evm_msp_read (u8 reg) |
EXPORT_SYMBOL (dm355evm_msp_read) | |
MODULE_DEVICE_TABLE (i2c, dm355evm_msp_ids) | |
subsys_initcall (dm355evm_msp_init) | |
module_exit (dm355evm_msp_exit) | |
MODULE_DESCRIPTION ("Interface to MSP430 firmware on DM355EVM") | |
MODULE_LICENSE ("GPL") | |
Definition at line 98 of file dm355evm_msp.c.
Definition at line 124 of file dm355evm_msp.c.
Definition at line 123 of file dm355evm_msp.c.
#define msp_has_keyboard | ( | ) | false |
Definition at line 39 of file dm355evm_msp.c.
#define msp_has_leds | ( | ) | false |
Definition at line 45 of file dm355evm_msp.c.
#define msp_has_rtc | ( | ) | false |
Definition at line 51 of file dm355evm_msp.c.
#define msp_has_tvp | ( | ) | false |
Definition at line 57 of file dm355evm_msp.c.
dm355evm_msp_read - Reads a register from dm355evm_msp : register address
Returns result of operation - value, or negative errno
Definition at line 86 of file dm355evm_msp.c.
dm355evm_msp_write - Writes a register in dm355evm_msp : the value to be written : register address
Returns result of operation - 0 is success, else negative errno
Definition at line 74 of file dm355evm_msp.c.
EXPORT_SYMBOL | ( | dm355evm_msp_write | ) |
EXPORT_SYMBOL | ( | dm355evm_msp_read | ) |
MODULE_DESCRIPTION | ( | "Interface to MSP430 firmware on DM355EVM" | ) |
MODULE_DEVICE_TABLE | ( | i2c | , |
dm355evm_msp_ids | |||
) |
module_exit | ( | dm355evm_msp_exit | ) |
MODULE_LICENSE | ( | "GPL" | ) |
subsys_initcall | ( | dm355evm_msp_init | ) |