Thomas Gleixner | c942fdd | 2019-05-27 08:55:06 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 2 | /* |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 3 | * atxp1.c - kernel module for setting CPU VID and general purpose |
| 4 | * I/Os using the Attansic ATXP1 chip. |
| 5 | * |
Guenter Roeck | e892b75 | 2015-05-27 16:17:19 -0700 | [diff] [blame] | 6 | * The ATXP1 can reside on I2C addresses 0x37 or 0x4e. The chip is |
| 7 | * not auto-detected by the driver and must be instantiated explicitly. |
Mauro Carvalho Chehab | ccf988b | 2019-07-26 09:51:16 -0300 | [diff] [blame] | 8 | * See Documentation/i2c/instantiating-devices.rst for more information. |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 9 | */ |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 10 | |
| 11 | #include <linux/kernel.h> |
| 12 | #include <linux/init.h> |
| 13 | #include <linux/module.h> |
Jean Delvare | 0cacdf2 | 2005-07-29 12:15:12 -0700 | [diff] [blame] | 14 | #include <linux/jiffies.h> |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 15 | #include <linux/i2c.h> |
Mark M. Hoffman | 943b083 | 2005-07-15 21:39:18 -0400 | [diff] [blame] | 16 | #include <linux/hwmon.h> |
Jean Delvare | 303760b | 2005-07-31 21:52:01 +0200 | [diff] [blame] | 17 | #include <linux/hwmon-vid.h> |
Mark M. Hoffman | 943b083 | 2005-07-15 21:39:18 -0400 | [diff] [blame] | 18 | #include <linux/err.h> |
Ingo Molnar | 9a61bf6 | 2006-01-18 23:19:26 +0100 | [diff] [blame] | 19 | #include <linux/mutex.h> |
Jean Delvare | a5ebe66 | 2006-09-24 21:24:46 +0200 | [diff] [blame] | 20 | #include <linux/sysfs.h> |
Tejun Heo | 5a0e3ad | 2010-03-24 17:04:11 +0900 | [diff] [blame] | 21 | #include <linux/slab.h> |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 22 | |
| 23 | MODULE_LICENSE("GPL"); |
| 24 | MODULE_DESCRIPTION("System voltages control via Attansic ATXP1"); |
Jean Delvare | 13b3c3f | 2008-09-20 10:25:19 +0200 | [diff] [blame] | 25 | MODULE_VERSION("0.6.3"); |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 26 | MODULE_AUTHOR("Sebastian Witt <se.witt@gmx.net>"); |
| 27 | |
| 28 | #define ATXP1_VID 0x00 |
| 29 | #define ATXP1_CVID 0x01 |
| 30 | #define ATXP1_GPIO1 0x06 |
| 31 | #define ATXP1_GPIO2 0x0a |
| 32 | #define ATXP1_VIDENA 0x20 |
| 33 | #define ATXP1_VIDMASK 0x1f |
| 34 | #define ATXP1_GPIO1MASK 0x0f |
| 35 | |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 36 | struct atxp1_data { |
Axel Lin | 11f7e49 | 2014-06-07 07:55:10 +0800 | [diff] [blame] | 37 | struct i2c_client *client; |
Ingo Molnar | 9a61bf6 | 2006-01-18 23:19:26 +0100 | [diff] [blame] | 38 | struct mutex update_lock; |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 39 | unsigned long last_updated; |
| 40 | u8 valid; |
| 41 | struct { |
| 42 | u8 vid; /* VID output register */ |
| 43 | u8 cpu_vid; /* VID input from CPU */ |
| 44 | u8 gpio1; /* General purpose I/O register 1 */ |
| 45 | u8 gpio2; /* General purpose I/O register 2 */ |
| 46 | } reg; |
| 47 | u8 vrm; /* Detected CPU VRM */ |
| 48 | }; |
| 49 | |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 50 | static struct atxp1_data *atxp1_update_device(struct device *dev) |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 51 | { |
Axel Lin | 11f7e49 | 2014-06-07 07:55:10 +0800 | [diff] [blame] | 52 | struct atxp1_data *data = dev_get_drvdata(dev); |
| 53 | struct i2c_client *client = data->client; |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 54 | |
Ingo Molnar | 9a61bf6 | 2006-01-18 23:19:26 +0100 | [diff] [blame] | 55 | mutex_lock(&data->update_lock); |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 56 | |
Jean Delvare | 0cacdf2 | 2005-07-29 12:15:12 -0700 | [diff] [blame] | 57 | if (time_after(jiffies, data->last_updated + HZ) || !data->valid) { |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 58 | |
| 59 | /* Update local register data */ |
| 60 | data->reg.vid = i2c_smbus_read_byte_data(client, ATXP1_VID); |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 61 | data->reg.cpu_vid = i2c_smbus_read_byte_data(client, |
| 62 | ATXP1_CVID); |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 63 | data->reg.gpio1 = i2c_smbus_read_byte_data(client, ATXP1_GPIO1); |
| 64 | data->reg.gpio2 = i2c_smbus_read_byte_data(client, ATXP1_GPIO2); |
| 65 | |
| 66 | data->valid = 1; |
| 67 | } |
| 68 | |
Ingo Molnar | 9a61bf6 | 2006-01-18 23:19:26 +0100 | [diff] [blame] | 69 | mutex_unlock(&data->update_lock); |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 70 | |
Frans Meulenbroeks | 7fe83ad | 2012-01-05 19:50:18 +0100 | [diff] [blame] | 71 | return data; |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 72 | } |
| 73 | |
| 74 | /* sys file functions for cpu0_vid */ |
Julia Lawall | 0acf2a5 | 2016-12-22 13:04:37 +0100 | [diff] [blame] | 75 | static ssize_t cpu0_vid_show(struct device *dev, |
| 76 | struct device_attribute *attr, char *buf) |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 77 | { |
| 78 | int size; |
| 79 | struct atxp1_data *data; |
| 80 | |
| 81 | data = atxp1_update_device(dev); |
| 82 | |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 83 | size = sprintf(buf, "%d\n", vid_from_reg(data->reg.vid & ATXP1_VIDMASK, |
| 84 | data->vrm)); |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 85 | |
| 86 | return size; |
| 87 | } |
| 88 | |
Julia Lawall | 0acf2a5 | 2016-12-22 13:04:37 +0100 | [diff] [blame] | 89 | static ssize_t cpu0_vid_store(struct device *dev, |
| 90 | struct device_attribute *attr, const char *buf, |
| 91 | size_t count) |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 92 | { |
Axel Lin | 11f7e49 | 2014-06-07 07:55:10 +0800 | [diff] [blame] | 93 | struct atxp1_data *data = atxp1_update_device(dev); |
| 94 | struct i2c_client *client = data->client; |
Alexey Dobriyan | c41bdb5 | 2006-08-28 14:18:14 +0200 | [diff] [blame] | 95 | int vid, cvid; |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 96 | unsigned long vcore; |
| 97 | int err; |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 98 | |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 99 | err = kstrtoul(buf, 10, &vcore); |
| 100 | if (err) |
| 101 | return err; |
| 102 | |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 103 | vcore /= 25; |
| 104 | vcore *= 25; |
| 105 | |
| 106 | /* Calculate VID */ |
| 107 | vid = vid_to_reg(vcore, data->vrm); |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 108 | if (vid < 0) { |
| 109 | dev_err(dev, "VID calculation failed.\n"); |
Guenter Roeck | 674d0ed | 2013-09-13 10:59:27 -0700 | [diff] [blame] | 110 | return vid; |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 111 | } |
| 112 | |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 113 | /* |
| 114 | * If output enabled, use control register value. |
| 115 | * Otherwise original CPU VID |
| 116 | */ |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 117 | if (data->reg.vid & ATXP1_VIDENA) |
| 118 | cvid = data->reg.vid & ATXP1_VIDMASK; |
| 119 | else |
| 120 | cvid = data->reg.cpu_vid; |
| 121 | |
| 122 | /* Nothing changed, aborting */ |
| 123 | if (vid == cvid) |
| 124 | return count; |
| 125 | |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 126 | dev_dbg(dev, "Setting VCore to %d mV (0x%02x)\n", (int)vcore, vid); |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 127 | |
| 128 | /* Write every 25 mV step to increase stability */ |
| 129 | if (cvid > vid) { |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 130 | for (; cvid >= vid; cvid--) |
| 131 | i2c_smbus_write_byte_data(client, |
| 132 | ATXP1_VID, cvid | ATXP1_VIDENA); |
| 133 | } else { |
| 134 | for (; cvid <= vid; cvid++) |
| 135 | i2c_smbus_write_byte_data(client, |
| 136 | ATXP1_VID, cvid | ATXP1_VIDENA); |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 137 | } |
| 138 | |
| 139 | data->valid = 0; |
| 140 | |
| 141 | return count; |
| 142 | } |
| 143 | |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 144 | /* |
| 145 | * CPU core reference voltage |
| 146 | * unit: millivolt |
| 147 | */ |
Julia Lawall | 0acf2a5 | 2016-12-22 13:04:37 +0100 | [diff] [blame] | 148 | static DEVICE_ATTR_RW(cpu0_vid); |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 149 | |
| 150 | /* sys file functions for GPIO1 */ |
Julia Lawall | 0acf2a5 | 2016-12-22 13:04:37 +0100 | [diff] [blame] | 151 | static ssize_t gpio1_show(struct device *dev, struct device_attribute *attr, |
| 152 | char *buf) |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 153 | { |
| 154 | int size; |
| 155 | struct atxp1_data *data; |
| 156 | |
| 157 | data = atxp1_update_device(dev); |
| 158 | |
| 159 | size = sprintf(buf, "0x%02x\n", data->reg.gpio1 & ATXP1_GPIO1MASK); |
| 160 | |
| 161 | return size; |
| 162 | } |
| 163 | |
Julia Lawall | 0acf2a5 | 2016-12-22 13:04:37 +0100 | [diff] [blame] | 164 | static ssize_t gpio1_store(struct device *dev, struct device_attribute *attr, |
| 165 | const char *buf, size_t count) |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 166 | { |
Axel Lin | 11f7e49 | 2014-06-07 07:55:10 +0800 | [diff] [blame] | 167 | struct atxp1_data *data = atxp1_update_device(dev); |
| 168 | struct i2c_client *client = data->client; |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 169 | unsigned long value; |
| 170 | int err; |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 171 | |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 172 | err = kstrtoul(buf, 16, &value); |
| 173 | if (err) |
| 174 | return err; |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 175 | |
| 176 | value &= ATXP1_GPIO1MASK; |
| 177 | |
| 178 | if (value != (data->reg.gpio1 & ATXP1_GPIO1MASK)) { |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 179 | dev_info(dev, "Writing 0x%x to GPIO1.\n", (unsigned int)value); |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 180 | |
| 181 | i2c_smbus_write_byte_data(client, ATXP1_GPIO1, value); |
| 182 | |
| 183 | data->valid = 0; |
| 184 | } |
| 185 | |
| 186 | return count; |
| 187 | } |
| 188 | |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 189 | /* |
| 190 | * GPIO1 data register |
| 191 | * unit: Four bit as hex (e.g. 0x0f) |
| 192 | */ |
Julia Lawall | 0acf2a5 | 2016-12-22 13:04:37 +0100 | [diff] [blame] | 193 | static DEVICE_ATTR_RW(gpio1); |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 194 | |
| 195 | /* sys file functions for GPIO2 */ |
Julia Lawall | 0acf2a5 | 2016-12-22 13:04:37 +0100 | [diff] [blame] | 196 | static ssize_t gpio2_show(struct device *dev, struct device_attribute *attr, |
| 197 | char *buf) |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 198 | { |
| 199 | int size; |
| 200 | struct atxp1_data *data; |
| 201 | |
| 202 | data = atxp1_update_device(dev); |
| 203 | |
| 204 | size = sprintf(buf, "0x%02x\n", data->reg.gpio2); |
| 205 | |
| 206 | return size; |
| 207 | } |
| 208 | |
Julia Lawall | 0acf2a5 | 2016-12-22 13:04:37 +0100 | [diff] [blame] | 209 | static ssize_t gpio2_store(struct device *dev, struct device_attribute *attr, |
| 210 | const char *buf, size_t count) |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 211 | { |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 212 | struct atxp1_data *data = atxp1_update_device(dev); |
Axel Lin | 11f7e49 | 2014-06-07 07:55:10 +0800 | [diff] [blame] | 213 | struct i2c_client *client = data->client; |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 214 | unsigned long value; |
| 215 | int err; |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 216 | |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 217 | err = kstrtoul(buf, 16, &value); |
| 218 | if (err) |
| 219 | return err; |
| 220 | value &= 0xff; |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 221 | |
| 222 | if (value != data->reg.gpio2) { |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 223 | dev_info(dev, "Writing 0x%x to GPIO1.\n", (unsigned int)value); |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 224 | |
| 225 | i2c_smbus_write_byte_data(client, ATXP1_GPIO2, value); |
| 226 | |
| 227 | data->valid = 0; |
| 228 | } |
| 229 | |
| 230 | return count; |
| 231 | } |
| 232 | |
Guenter Roeck | f24d548 | 2012-01-14 13:21:59 -0800 | [diff] [blame] | 233 | /* |
| 234 | * GPIO2 data register |
| 235 | * unit: Eight bit as hex (e.g. 0xff) |
| 236 | */ |
Julia Lawall | 0acf2a5 | 2016-12-22 13:04:37 +0100 | [diff] [blame] | 237 | static DEVICE_ATTR_RW(gpio2); |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 238 | |
Axel Lin | 11f7e49 | 2014-06-07 07:55:10 +0800 | [diff] [blame] | 239 | static struct attribute *atxp1_attrs[] = { |
Jean Delvare | a5ebe66 | 2006-09-24 21:24:46 +0200 | [diff] [blame] | 240 | &dev_attr_gpio1.attr, |
| 241 | &dev_attr_gpio2.attr, |
| 242 | &dev_attr_cpu0_vid.attr, |
| 243 | NULL |
| 244 | }; |
Axel Lin | 11f7e49 | 2014-06-07 07:55:10 +0800 | [diff] [blame] | 245 | ATTRIBUTE_GROUPS(atxp1); |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 246 | |
Stephen Kitt | 6748703 | 2020-08-13 18:02:22 +0200 | [diff] [blame] | 247 | static int atxp1_probe(struct i2c_client *client) |
Jean Delvare | 71163c7 | 2008-07-16 19:30:11 +0200 | [diff] [blame] | 248 | { |
Axel Lin | 11f7e49 | 2014-06-07 07:55:10 +0800 | [diff] [blame] | 249 | struct device *dev = &client->dev; |
Jean Delvare | 71163c7 | 2008-07-16 19:30:11 +0200 | [diff] [blame] | 250 | struct atxp1_data *data; |
Axel Lin | 11f7e49 | 2014-06-07 07:55:10 +0800 | [diff] [blame] | 251 | struct device *hwmon_dev; |
Jean Delvare | 71163c7 | 2008-07-16 19:30:11 +0200 | [diff] [blame] | 252 | |
Axel Lin | 11f7e49 | 2014-06-07 07:55:10 +0800 | [diff] [blame] | 253 | data = devm_kzalloc(dev, sizeof(struct atxp1_data), GFP_KERNEL); |
Guenter Roeck | d466a35 | 2012-06-02 09:58:03 -0700 | [diff] [blame] | 254 | if (!data) |
| 255 | return -ENOMEM; |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 256 | |
| 257 | /* Get VRM */ |
Jean Delvare | 303760b | 2005-07-31 21:52:01 +0200 | [diff] [blame] | 258 | data->vrm = vid_which_vrm(); |
Guenter Roeck | e892b75 | 2015-05-27 16:17:19 -0700 | [diff] [blame] | 259 | if (data->vrm != 90 && data->vrm != 91) { |
| 260 | dev_err(dev, "atxp1: Not supporting VRM %d.%d\n", |
| 261 | data->vrm / 10, data->vrm % 10); |
| 262 | return -ENODEV; |
| 263 | } |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 264 | |
Axel Lin | 11f7e49 | 2014-06-07 07:55:10 +0800 | [diff] [blame] | 265 | data->client = client; |
Ingo Molnar | 9a61bf6 | 2006-01-18 23:19:26 +0100 | [diff] [blame] | 266 | mutex_init(&data->update_lock); |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 267 | |
Axel Lin | 11f7e49 | 2014-06-07 07:55:10 +0800 | [diff] [blame] | 268 | hwmon_dev = devm_hwmon_device_register_with_groups(dev, client->name, |
| 269 | data, |
| 270 | atxp1_groups); |
| 271 | if (IS_ERR(hwmon_dev)) |
| 272 | return PTR_ERR(hwmon_dev); |
Jean Delvare | a5ebe66 | 2006-09-24 21:24:46 +0200 | [diff] [blame] | 273 | |
Axel Lin | 11f7e49 | 2014-06-07 07:55:10 +0800 | [diff] [blame] | 274 | dev_info(dev, "Using VRM: %d.%d\n", data->vrm / 10, data->vrm % 10); |
Mark M. Hoffman | 943b083 | 2005-07-15 21:39:18 -0400 | [diff] [blame] | 275 | |
Jean Delvare | 71163c7 | 2008-07-16 19:30:11 +0200 | [diff] [blame] | 276 | return 0; |
Sebastian Witt | 9cb7d18 | 2005-04-13 22:27:53 +0200 | [diff] [blame] | 277 | }; |
| 278 | |
Axel Lin | 8dea1b4 | 2014-06-06 17:50:56 +0800 | [diff] [blame] | 279 | static const struct i2c_device_id atxp1_id[] = { |
| 280 | { "atxp1", 0 }, |
| 281 | { } |
| 282 | }; |
| 283 | MODULE_DEVICE_TABLE(i2c, atxp1_id); |
| 284 | |
| 285 | static struct i2c_driver atxp1_driver = { |
| 286 | .class = I2C_CLASS_HWMON, |
| 287 | .driver = { |
| 288 | .name = "atxp1", |
| 289 | }, |
Stephen Kitt | 6748703 | 2020-08-13 18:02:22 +0200 | [diff] [blame] | 290 | .probe_new = atxp1_probe, |
Axel Lin | 8dea1b4 | 2014-06-06 17:50:56 +0800 | [diff] [blame] | 291 | .id_table = atxp1_id, |
Axel Lin | 8dea1b4 | 2014-06-06 17:50:56 +0800 | [diff] [blame] | 292 | }; |
| 293 | |
Axel Lin | f0967ee | 2012-01-20 15:38:18 +0800 | [diff] [blame] | 294 | module_i2c_driver(atxp1_driver); |