/* * SMSC ECE1099 * * Copyright 2012 Texas Instruments Inc. * * Author: Sourav Poddar <sourav.poddar@ti.com> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. * */ #ifndef __LINUX_MFD_SMSC_H #define __LINUX_MFD_SMSC_H #include <linux/regmap.h> #define SMSC_ID_ECE1099 1 #define SMSC_NUM_CLIENTS 2 #define SMSC_BASE_ADDR 0x38 #define OMAP_GPIO_SMSC_IRQ 151 #define SMSC_MAXGPIO 32 #define SMSC_BANK(offs) ((offs) >> 3) #define SMSC_BIT(offs) (1u << ((offs) & 0x7)) struct smsc { struct device *dev; struct i2c_client *i2c_clients[SMSC_NUM_CLIENTS]; struct regmap *regmap; int clk; /* Stored chip id */ int id; }; struct smsc_gpio; struct smsc_keypad;
static inline int smsc_read(struct device *child, unsigned int reg, unsigned int *dest) { struct smsc *smsc = dev_get_drvdata(child->parent); return regmap_read(smsc->regmap, reg, dest); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Sourav Poddar | 45 | 100.00% | 1 | 100.00% |
Total | 45 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Sourav Poddar | 44 | 100.00% | 1 | 100.00% |
Total | 44 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Sourav Poddar | 309 | 100.00% | 1 | 100.00% |
Total | 309 | 100.00% | 1 | 100.00% |