Linux Kernel
3.7.1
|
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/types.h>
#include <linux/of_platform.h>
#include <linux/mutex.h>
#include <linux/gpio.h>
#include <linux/io.h>
#include <linux/of_gpio.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <lantiq_soc.h>
Go to the source code of this file.
Data Structures | |
struct | xway_stp |
Macros | |
#define | XWAY_STP_CON0 0x00 |
#define | XWAY_STP_CON1 0x04 |
#define | XWAY_STP_CPU0 0x08 |
#define | XWAY_STP_CPU1 0x0C |
#define | XWAY_STP_AR 0x10 |
#define | XWAY_STP_CON_SWU BIT(31) |
#define | XWAY_STP_2HZ 0 |
#define | XWAY_STP_4HZ BIT(23) |
#define | XWAY_STP_8HZ BIT(24) |
#define | XWAY_STP_10HZ (BIT(24) | BIT(23)) |
#define | XWAY_STP_SPEED_MASK (0xf << 23) |
#define | XWAY_STP_UPD_FPI BIT(31) |
#define | XWAY_STP_UPD_MASK (BIT(31) | BIT(30)) |
#define | XWAY_STP_ADSL_SHIFT 24 |
#define | XWAY_STP_ADSL_MASK 0x3 |
#define | XWAY_STP_PHY_MASK 0x3 |
#define | XWAY_STP_PHY1_SHIFT 27 |
#define | XWAY_STP_PHY2_SHIFT 15 |
#define | XWAY_STP_GROUP0 BIT(0) |
#define | XWAY_STP_GROUP1 BIT(1) |
#define | XWAY_STP_GROUP2 BIT(2) |
#define | XWAY_STP_GROUP_MASK (0x7) |
#define | XWAY_STP_FALLING BIT(26) |
#define | XWAY_STP_EDGE_MASK BIT(26) |
#define | xway_stp_r32(m, reg) __raw_readl(m + reg) |
#define | xway_stp_w32(m, val, reg) __raw_writel(val, m + reg) |
#define | xway_stp_w32_mask(m, clear, set, reg) |
Functions | |
MODULE_DEVICE_TABLE (of, xway_stp_match) | |
int __init | xway_stp_init (void) |
subsys_initcall (xway_stp_init) | |
Definition at line 49 of file gpio-stp-xway.c.
#define XWAY_STP_2HZ 0 |
Definition at line 46 of file gpio-stp-xway.c.
#define XWAY_STP_4HZ BIT(23) |
Definition at line 47 of file gpio-stp-xway.c.
#define XWAY_STP_8HZ BIT(24) |
Definition at line 48 of file gpio-stp-xway.c.
#define XWAY_STP_ADSL_MASK 0x3 |
Definition at line 58 of file gpio-stp-xway.c.
#define XWAY_STP_ADSL_SHIFT 24 |
Definition at line 57 of file gpio-stp-xway.c.
#define XWAY_STP_AR 0x10 |
Definition at line 40 of file gpio-stp-xway.c.
#define XWAY_STP_CON0 0x00 |
Definition at line 32 of file gpio-stp-xway.c.
#define XWAY_STP_CON1 0x04 |
Definition at line 34 of file gpio-stp-xway.c.
#define XWAY_STP_CON_SWU BIT(31) |
Definition at line 43 of file gpio-stp-xway.c.
#define XWAY_STP_CPU0 0x08 |
Definition at line 36 of file gpio-stp-xway.c.
#define XWAY_STP_CPU1 0x0C |
Definition at line 38 of file gpio-stp-xway.c.
#define XWAY_STP_EDGE_MASK BIT(26) |
Definition at line 73 of file gpio-stp-xway.c.
#define XWAY_STP_FALLING BIT(26) |
Definition at line 72 of file gpio-stp-xway.c.
#define XWAY_STP_GROUP0 BIT(0) |
Definition at line 66 of file gpio-stp-xway.c.
#define XWAY_STP_GROUP1 BIT(1) |
Definition at line 67 of file gpio-stp-xway.c.
#define XWAY_STP_GROUP2 BIT(2) |
Definition at line 68 of file gpio-stp-xway.c.
#define XWAY_STP_GROUP_MASK (0x7) |
Definition at line 69 of file gpio-stp-xway.c.
#define XWAY_STP_PHY1_SHIFT 27 |
Definition at line 62 of file gpio-stp-xway.c.
#define XWAY_STP_PHY2_SHIFT 15 |
Definition at line 63 of file gpio-stp-xway.c.
#define XWAY_STP_PHY_MASK 0x3 |
Definition at line 61 of file gpio-stp-xway.c.
#define xway_stp_r32 | ( | m, | |
reg | |||
) | __raw_readl(m + reg) |
Definition at line 75 of file gpio-stp-xway.c.
#define XWAY_STP_SPEED_MASK (0xf << 23) |
Definition at line 50 of file gpio-stp-xway.c.
#define XWAY_STP_UPD_FPI BIT(31) |
Definition at line 53 of file gpio-stp-xway.c.
Definition at line 54 of file gpio-stp-xway.c.
Definition at line 76 of file gpio-stp-xway.c.
MODULE_DEVICE_TABLE | ( | of | , |
xway_stp_match | |||
) |
subsys_initcall | ( | xway_stp_init | ) |
Definition at line 296 of file gpio-stp-xway.c.