Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
sx150x_platform_data Struct Reference

#include <sx150x.h>

Data Fields

unsigned gpio_base
 
bool oscio_is_gpo
 
u16 io_pullup_ena
 
u16 io_pulldn_ena
 
u16 io_open_drain_ena
 
u16 io_polarity
 
int irq_summary
 
unsigned irq_base
 
bool reset_during_probe
 

Detailed Description

struct sx150x_platform_data - config data for SX150x driver : The index number of the first GPIO assigned to this GPIO expander. The expander will create a block of consecutively numbered gpios beginning at the given base, with the size of the block depending on the model of the expander chip. : If set to true, the driver will configure OSCIO as a GPO instead of as an oscillator, increasing the size of the GP(I)O pool created by this expander by one. The output-only GPO pin will be added at the end of the block. : A bit-mask which enables or disables the pull-up resistor for each IO line in the expander. Setting the bit at position n will enable the pull-up for the IO at the corresponding offset. For chips with fewer than 16 IO pins, high-end bits are ignored. : A bit-mask which enables-or disables the pull-down resistor for each IO line in the expander. Setting the bit at position n will enable the pull-down for the IO at the corresponding offset. For chips with fewer than 16 IO pins, high-end bits are ignored. : A bit-mask which enables-or disables open-drain operation for each IO line in the expander. Setting the bit at position n enables open-drain operation for the IO at the corresponding offset. Clearing the bit enables regular push-pull operation for that IO. For chips with fewer than 16 IO pins, high-end bits are ignored. : A bit-mask which enables polarity inversion for each IO line in the expander. Setting the bit at position n inverts the polarity of that IO line, while clearing it results in normal polarity. For chips with fewer than 16 IO pins, high-end bits are ignored. : The 'summary IRQ' line to which the GPIO expander's INT line is connected, via which it reports interrupt events across all GPIO lines. This must be a real, pre-existing IRQ line. Setting this value < 0 disables the irq_chip functionality of the driver. : The first 'virtual IRQ' line at which our block of GPIO-based IRQ lines will appear. Similarly to gpio_base, the expander will create a block of irqs beginning at this number. This value is ignored if irq_summary is < 0. : If set to true, the driver will trigger a full reset of the chip at the beginning of the probe in order to place it in a known state.

Definition at line 70 of file sx150x.h.

Field Documentation

unsigned gpio_base

Definition at line 71 of file sx150x.h.

u16 io_open_drain_ena

Definition at line 75 of file sx150x.h.

u16 io_polarity

Definition at line 76 of file sx150x.h.

u16 io_pulldn_ena

Definition at line 74 of file sx150x.h.

u16 io_pullup_ena

Definition at line 73 of file sx150x.h.

unsigned irq_base

Definition at line 78 of file sx150x.h.

int irq_summary

Definition at line 77 of file sx150x.h.

bool oscio_is_gpo

Definition at line 72 of file sx150x.h.

bool reset_during_probe

Definition at line 79 of file sx150x.h.


The documentation for this struct was generated from the following file: