chromeos_laptop.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647
  1. /*
  2. * chromeos_laptop.c - Driver to instantiate Chromebook i2c/smbus devices.
  3. *
  4. * Author : Benson Leung <bleung@chromium.org>
  5. *
  6. * Copyright (C) 2012 Google, Inc.
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. *
  22. */
  23. #include <linux/dmi.h>
  24. #include <linux/i2c.h>
  25. #include <linux/platform_data/atmel_mxt_ts.h>
  26. #include <linux/input.h>
  27. #include <linux/interrupt.h>
  28. #include <linux/module.h>
  29. #include <linux/platform_device.h>
  30. #define ATMEL_TP_I2C_ADDR 0x4b
  31. #define ATMEL_TP_I2C_BL_ADDR 0x25
  32. #define ATMEL_TS_I2C_ADDR 0x4a
  33. #define ATMEL_TS_I2C_BL_ADDR 0x26
  34. #define CYAPA_TP_I2C_ADDR 0x67
  35. #define ISL_ALS_I2C_ADDR 0x44
  36. #define TAOS_ALS_I2C_ADDR 0x29
  37. #define MAX_I2C_DEVICE_DEFERRALS 5
  38. static struct i2c_client *als;
  39. static struct i2c_client *tp;
  40. static struct i2c_client *ts;
  41. static const char *i2c_adapter_names[] = {
  42. "SMBus I801 adapter",
  43. "i915 gmbus vga",
  44. "i915 gmbus panel",
  45. "Synopsys DesignWare I2C adapter",
  46. "Synopsys DesignWare I2C adapter",
  47. };
  48. /* Keep this enum consistent with i2c_adapter_names */
  49. enum i2c_adapter_type {
  50. I2C_ADAPTER_SMBUS = 0,
  51. I2C_ADAPTER_VGADDC,
  52. I2C_ADAPTER_PANEL,
  53. I2C_ADAPTER_DESIGNWARE_0,
  54. I2C_ADAPTER_DESIGNWARE_1,
  55. };
  56. enum i2c_peripheral_state {
  57. UNPROBED = 0,
  58. PROBED,
  59. TIMEDOUT,
  60. };
  61. struct i2c_peripheral {
  62. int (*add)(enum i2c_adapter_type type);
  63. enum i2c_adapter_type type;
  64. enum i2c_peripheral_state state;
  65. int tries;
  66. };
  67. #define MAX_I2C_PERIPHERALS 3
  68. struct chromeos_laptop {
  69. struct i2c_peripheral i2c_peripherals[MAX_I2C_PERIPHERALS];
  70. };
  71. static struct chromeos_laptop *cros_laptop;
  72. static struct i2c_board_info cyapa_device = {
  73. I2C_BOARD_INFO("cyapa", CYAPA_TP_I2C_ADDR),
  74. .flags = I2C_CLIENT_WAKE,
  75. };
  76. static struct i2c_board_info isl_als_device = {
  77. I2C_BOARD_INFO("isl29018", ISL_ALS_I2C_ADDR),
  78. };
  79. static struct i2c_board_info tsl2583_als_device = {
  80. I2C_BOARD_INFO("tsl2583", TAOS_ALS_I2C_ADDR),
  81. };
  82. static struct i2c_board_info tsl2563_als_device = {
  83. I2C_BOARD_INFO("tsl2563", TAOS_ALS_I2C_ADDR),
  84. };
  85. static int mxt_t19_keys[] = {
  86. KEY_RESERVED,
  87. KEY_RESERVED,
  88. KEY_RESERVED,
  89. KEY_RESERVED,
  90. KEY_RESERVED,
  91. BTN_LEFT
  92. };
  93. static struct mxt_platform_data atmel_224s_tp_platform_data = {
  94. .irqflags = IRQF_TRIGGER_FALLING,
  95. .t19_num_keys = ARRAY_SIZE(mxt_t19_keys),
  96. .t19_keymap = mxt_t19_keys,
  97. .suspend_mode = MXT_SUSPEND_T9_CTRL,
  98. };
  99. static struct i2c_board_info atmel_224s_tp_device = {
  100. I2C_BOARD_INFO("atmel_mxt_tp", ATMEL_TP_I2C_ADDR),
  101. .platform_data = &atmel_224s_tp_platform_data,
  102. .flags = I2C_CLIENT_WAKE,
  103. };
  104. static struct mxt_platform_data atmel_1664s_platform_data = {
  105. .irqflags = IRQF_TRIGGER_FALLING,
  106. .suspend_mode = MXT_SUSPEND_T9_CTRL,
  107. };
  108. static struct i2c_board_info atmel_1664s_device = {
  109. I2C_BOARD_INFO("atmel_mxt_ts", ATMEL_TS_I2C_ADDR),
  110. .platform_data = &atmel_1664s_platform_data,
  111. .flags = I2C_CLIENT_WAKE,
  112. };
  113. static struct i2c_client *__add_probed_i2c_device(
  114. const char *name,
  115. int bus,
  116. struct i2c_board_info *info,
  117. const unsigned short *alt_addr_list)
  118. {
  119. const struct dmi_device *dmi_dev;
  120. const struct dmi_dev_onboard *dev_data;
  121. struct i2c_adapter *adapter;
  122. struct i2c_client *client = NULL;
  123. const unsigned short addr_list[] = { info->addr, I2C_CLIENT_END };
  124. if (bus < 0)
  125. return NULL;
  126. /*
  127. * If a name is specified, look for irq platform information stashed
  128. * in DMI_DEV_TYPE_DEV_ONBOARD by the Chrome OS custom system firmware.
  129. */
  130. if (name) {
  131. dmi_dev = dmi_find_device(DMI_DEV_TYPE_DEV_ONBOARD, name, NULL);
  132. if (!dmi_dev) {
  133. pr_err("%s failed to dmi find device %s.\n",
  134. __func__,
  135. name);
  136. return NULL;
  137. }
  138. dev_data = (struct dmi_dev_onboard *)dmi_dev->device_data;
  139. if (!dev_data) {
  140. pr_err("%s failed to get data from dmi for %s.\n",
  141. __func__, name);
  142. return NULL;
  143. }
  144. info->irq = dev_data->instance;
  145. }
  146. adapter = i2c_get_adapter(bus);
  147. if (!adapter) {
  148. pr_err("%s failed to get i2c adapter %d.\n", __func__, bus);
  149. return NULL;
  150. }
  151. /*
  152. * Add the i2c device. If we can't detect it at the primary
  153. * address we scan secondary addresses. In any case the client
  154. * structure gets assigned primary address.
  155. */
  156. client = i2c_new_probed_device(adapter, info, addr_list, NULL);
  157. if (!client && alt_addr_list) {
  158. struct i2c_board_info dummy_info = {
  159. I2C_BOARD_INFO("dummy", info->addr),
  160. };
  161. struct i2c_client *dummy;
  162. dummy = i2c_new_probed_device(adapter, &dummy_info,
  163. alt_addr_list, NULL);
  164. if (dummy) {
  165. pr_debug("%s %d-%02x is probed at %02x\n",
  166. __func__, bus, info->addr, dummy->addr);
  167. i2c_unregister_device(dummy);
  168. client = i2c_new_device(adapter, info);
  169. }
  170. }
  171. if (!client)
  172. pr_notice("%s failed to register device %d-%02x\n",
  173. __func__, bus, info->addr);
  174. else
  175. pr_debug("%s added i2c device %d-%02x\n",
  176. __func__, bus, info->addr);
  177. i2c_put_adapter(adapter);
  178. return client;
  179. }
  180. struct i2c_lookup {
  181. const char *name;
  182. int instance;
  183. int n;
  184. };
  185. static int __find_i2c_adap(struct device *dev, void *data)
  186. {
  187. struct i2c_lookup *lookup = data;
  188. static const char *prefix = "i2c-";
  189. struct i2c_adapter *adapter;
  190. if (strncmp(dev_name(dev), prefix, strlen(prefix)) != 0)
  191. return 0;
  192. adapter = to_i2c_adapter(dev);
  193. if (strncmp(adapter->name, lookup->name, strlen(lookup->name)) == 0 &&
  194. lookup->n++ == lookup->instance)
  195. return 1;
  196. return 0;
  197. }
  198. static int find_i2c_adapter_num(enum i2c_adapter_type type)
  199. {
  200. struct device *dev = NULL;
  201. struct i2c_adapter *adapter;
  202. struct i2c_lookup lookup;
  203. memset(&lookup, 0, sizeof(lookup));
  204. lookup.name = i2c_adapter_names[type];
  205. lookup.instance = (type == I2C_ADAPTER_DESIGNWARE_1) ? 1 : 0;
  206. /* find the adapter by name */
  207. dev = bus_find_device(&i2c_bus_type, NULL, &lookup, __find_i2c_adap);
  208. if (!dev) {
  209. /* Adapters may appear later. Deferred probing will retry */
  210. pr_notice("%s: i2c adapter %s not found on system.\n", __func__,
  211. lookup.name);
  212. return -ENODEV;
  213. }
  214. adapter = to_i2c_adapter(dev);
  215. return adapter->nr;
  216. }
  217. /*
  218. * Takes a list of addresses in addrs as such :
  219. * { addr1, ... , addrn, I2C_CLIENT_END };
  220. * add_probed_i2c_device will use i2c_new_probed_device
  221. * and probe for devices at all of the addresses listed.
  222. * Returns NULL if no devices found.
  223. * See Documentation/i2c/instantiating-devices for more information.
  224. */
  225. static struct i2c_client *add_probed_i2c_device(
  226. const char *name,
  227. enum i2c_adapter_type type,
  228. struct i2c_board_info *info,
  229. const unsigned short *addrs)
  230. {
  231. return __add_probed_i2c_device(name,
  232. find_i2c_adapter_num(type),
  233. info,
  234. addrs);
  235. }
  236. /*
  237. * Probes for a device at a single address, the one provided by
  238. * info->addr.
  239. * Returns NULL if no device found.
  240. */
  241. static struct i2c_client *add_i2c_device(const char *name,
  242. enum i2c_adapter_type type,
  243. struct i2c_board_info *info)
  244. {
  245. return __add_probed_i2c_device(name,
  246. find_i2c_adapter_num(type),
  247. info,
  248. NULL);
  249. }
  250. static int setup_cyapa_tp(enum i2c_adapter_type type)
  251. {
  252. if (tp)
  253. return 0;
  254. /* add cyapa touchpad */
  255. tp = add_i2c_device("trackpad", type, &cyapa_device);
  256. return (!tp) ? -EAGAIN : 0;
  257. }
  258. static int setup_atmel_224s_tp(enum i2c_adapter_type type)
  259. {
  260. const unsigned short addr_list[] = { ATMEL_TP_I2C_BL_ADDR,
  261. I2C_CLIENT_END };
  262. if (tp)
  263. return 0;
  264. /* add atmel mxt touchpad */
  265. tp = add_probed_i2c_device("trackpad", type,
  266. &atmel_224s_tp_device, addr_list);
  267. return (!tp) ? -EAGAIN : 0;
  268. }
  269. static int setup_atmel_1664s_ts(enum i2c_adapter_type type)
  270. {
  271. const unsigned short addr_list[] = { ATMEL_TS_I2C_BL_ADDR,
  272. I2C_CLIENT_END };
  273. if (ts)
  274. return 0;
  275. /* add atmel mxt touch device */
  276. ts = add_probed_i2c_device("touchscreen", type,
  277. &atmel_1664s_device, addr_list);
  278. return (!ts) ? -EAGAIN : 0;
  279. }
  280. static int setup_isl29018_als(enum i2c_adapter_type type)
  281. {
  282. if (als)
  283. return 0;
  284. /* add isl29018 light sensor */
  285. als = add_i2c_device("lightsensor", type, &isl_als_device);
  286. return (!als) ? -EAGAIN : 0;
  287. }
  288. static int setup_tsl2583_als(enum i2c_adapter_type type)
  289. {
  290. if (als)
  291. return 0;
  292. /* add tsl2583 light sensor */
  293. als = add_i2c_device(NULL, type, &tsl2583_als_device);
  294. return (!als) ? -EAGAIN : 0;
  295. }
  296. static int setup_tsl2563_als(enum i2c_adapter_type type)
  297. {
  298. if (als)
  299. return 0;
  300. /* add tsl2563 light sensor */
  301. als = add_i2c_device(NULL, type, &tsl2563_als_device);
  302. return (!als) ? -EAGAIN : 0;
  303. }
  304. static int __init chromeos_laptop_dmi_matched(const struct dmi_system_id *id)
  305. {
  306. cros_laptop = (void *)id->driver_data;
  307. pr_debug("DMI Matched %s.\n", id->ident);
  308. /* Indicate to dmi_scan that processing is done. */
  309. return 1;
  310. }
  311. static int chromeos_laptop_probe(struct platform_device *pdev)
  312. {
  313. int i;
  314. int ret = 0;
  315. for (i = 0; i < MAX_I2C_PERIPHERALS; i++) {
  316. struct i2c_peripheral *i2c_dev;
  317. i2c_dev = &cros_laptop->i2c_peripherals[i];
  318. /* No more peripherals. */
  319. if (i2c_dev->add == NULL)
  320. break;
  321. if (i2c_dev->state == TIMEDOUT || i2c_dev->state == PROBED)
  322. continue;
  323. /*
  324. * Check that the i2c adapter is present.
  325. * -EPROBE_DEFER if missing as the adapter may appear much
  326. * later.
  327. */
  328. if (find_i2c_adapter_num(i2c_dev->type) == -ENODEV) {
  329. ret = -EPROBE_DEFER;
  330. continue;
  331. }
  332. /* Add the device. */
  333. if (i2c_dev->add(i2c_dev->type) == -EAGAIN) {
  334. /*
  335. * Set -EPROBE_DEFER a limited num of times
  336. * if device is not successfully added.
  337. */
  338. if (++i2c_dev->tries < MAX_I2C_DEVICE_DEFERRALS) {
  339. ret = -EPROBE_DEFER;
  340. } else {
  341. /* Ran out of tries. */
  342. pr_notice("%s: Ran out of tries for device.\n",
  343. __func__);
  344. i2c_dev->state = TIMEDOUT;
  345. }
  346. } else {
  347. i2c_dev->state = PROBED;
  348. }
  349. }
  350. return ret;
  351. }
  352. static struct chromeos_laptop samsung_series_5_550 = {
  353. .i2c_peripherals = {
  354. /* Touchpad. */
  355. { .add = setup_cyapa_tp, I2C_ADAPTER_SMBUS },
  356. /* Light Sensor. */
  357. { .add = setup_isl29018_als, I2C_ADAPTER_SMBUS },
  358. },
  359. };
  360. static struct chromeos_laptop samsung_series_5 = {
  361. .i2c_peripherals = {
  362. /* Light Sensor. */
  363. { .add = setup_tsl2583_als, I2C_ADAPTER_SMBUS },
  364. },
  365. };
  366. static struct chromeos_laptop chromebook_pixel = {
  367. .i2c_peripherals = {
  368. /* Touch Screen. */
  369. { .add = setup_atmel_1664s_ts, I2C_ADAPTER_PANEL },
  370. /* Touchpad. */
  371. { .add = setup_atmel_224s_tp, I2C_ADAPTER_VGADDC },
  372. /* Light Sensor. */
  373. { .add = setup_isl29018_als, I2C_ADAPTER_PANEL },
  374. },
  375. };
  376. static struct chromeos_laptop hp_chromebook_14 = {
  377. .i2c_peripherals = {
  378. /* Touchpad. */
  379. { .add = setup_cyapa_tp, I2C_ADAPTER_DESIGNWARE_0 },
  380. },
  381. };
  382. static struct chromeos_laptop dell_chromebook_11 = {
  383. .i2c_peripherals = {
  384. /* Touchpad. */
  385. { .add = setup_cyapa_tp, I2C_ADAPTER_DESIGNWARE_0 },
  386. },
  387. };
  388. static struct chromeos_laptop toshiba_cb35 = {
  389. .i2c_peripherals = {
  390. /* Touchpad. */
  391. { .add = setup_cyapa_tp, I2C_ADAPTER_DESIGNWARE_0 },
  392. },
  393. };
  394. static struct chromeos_laptop acer_c7_chromebook = {
  395. .i2c_peripherals = {
  396. /* Touchpad. */
  397. { .add = setup_cyapa_tp, I2C_ADAPTER_SMBUS },
  398. },
  399. };
  400. static struct chromeos_laptop acer_ac700 = {
  401. .i2c_peripherals = {
  402. /* Light Sensor. */
  403. { .add = setup_tsl2563_als, I2C_ADAPTER_SMBUS },
  404. },
  405. };
  406. static struct chromeos_laptop acer_c720 = {
  407. .i2c_peripherals = {
  408. /* Touchscreen. */
  409. { .add = setup_atmel_1664s_ts, I2C_ADAPTER_DESIGNWARE_1 },
  410. /* Touchpad. */
  411. { .add = setup_cyapa_tp, I2C_ADAPTER_DESIGNWARE_0 },
  412. /* Light Sensor. */
  413. { .add = setup_isl29018_als, I2C_ADAPTER_DESIGNWARE_1 },
  414. },
  415. };
  416. static struct chromeos_laptop hp_pavilion_14_chromebook = {
  417. .i2c_peripherals = {
  418. /* Touchpad. */
  419. { .add = setup_cyapa_tp, I2C_ADAPTER_SMBUS },
  420. },
  421. };
  422. static struct chromeos_laptop cr48 = {
  423. .i2c_peripherals = {
  424. /* Light Sensor. */
  425. { .add = setup_tsl2563_als, I2C_ADAPTER_SMBUS },
  426. },
  427. };
  428. #define _CBDD(board_) \
  429. .callback = chromeos_laptop_dmi_matched, \
  430. .driver_data = (void *)&board_
  431. static struct dmi_system_id chromeos_laptop_dmi_table[] __initdata = {
  432. {
  433. .ident = "Samsung Series 5 550",
  434. .matches = {
  435. DMI_MATCH(DMI_SYS_VENDOR, "SAMSUNG"),
  436. DMI_MATCH(DMI_PRODUCT_NAME, "Lumpy"),
  437. },
  438. _CBDD(samsung_series_5_550),
  439. },
  440. {
  441. .ident = "Samsung Series 5",
  442. .matches = {
  443. DMI_MATCH(DMI_PRODUCT_NAME, "Alex"),
  444. },
  445. _CBDD(samsung_series_5),
  446. },
  447. {
  448. .ident = "Chromebook Pixel",
  449. .matches = {
  450. DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"),
  451. DMI_MATCH(DMI_PRODUCT_NAME, "Link"),
  452. },
  453. _CBDD(chromebook_pixel),
  454. },
  455. {
  456. .ident = "Wolf",
  457. .matches = {
  458. DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"),
  459. DMI_MATCH(DMI_PRODUCT_NAME, "Wolf"),
  460. },
  461. _CBDD(dell_chromebook_11),
  462. },
  463. {
  464. .ident = "HP Chromebook 14",
  465. .matches = {
  466. DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"),
  467. DMI_MATCH(DMI_PRODUCT_NAME, "Falco"),
  468. },
  469. _CBDD(hp_chromebook_14),
  470. },
  471. {
  472. .ident = "Toshiba CB35",
  473. .matches = {
  474. DMI_MATCH(DMI_BIOS_VENDOR, "coreboot"),
  475. DMI_MATCH(DMI_PRODUCT_NAME, "Leon"),
  476. },
  477. _CBDD(toshiba_cb35),
  478. },
  479. {
  480. .ident = "Acer C7 Chromebook",
  481. .matches = {
  482. DMI_MATCH(DMI_PRODUCT_NAME, "Parrot"),
  483. },
  484. _CBDD(acer_c7_chromebook),
  485. },
  486. {
  487. .ident = "Acer AC700",
  488. .matches = {
  489. DMI_MATCH(DMI_PRODUCT_NAME, "ZGB"),
  490. },
  491. _CBDD(acer_ac700),
  492. },
  493. {
  494. .ident = "Acer C720",
  495. .matches = {
  496. DMI_MATCH(DMI_PRODUCT_NAME, "Peppy"),
  497. },
  498. _CBDD(acer_c720),
  499. },
  500. {
  501. .ident = "HP Pavilion 14 Chromebook",
  502. .matches = {
  503. DMI_MATCH(DMI_PRODUCT_NAME, "Butterfly"),
  504. },
  505. _CBDD(hp_pavilion_14_chromebook),
  506. },
  507. {
  508. .ident = "Cr-48",
  509. .matches = {
  510. DMI_MATCH(DMI_PRODUCT_NAME, "Mario"),
  511. },
  512. _CBDD(cr48),
  513. },
  514. { }
  515. };
  516. MODULE_DEVICE_TABLE(dmi, chromeos_laptop_dmi_table);
  517. static struct platform_device *cros_platform_device;
  518. static struct platform_driver cros_platform_driver = {
  519. .driver = {
  520. .name = "chromeos_laptop",
  521. },
  522. .probe = chromeos_laptop_probe,
  523. };
  524. static int __init chromeos_laptop_init(void)
  525. {
  526. int ret;
  527. if (!dmi_check_system(chromeos_laptop_dmi_table)) {
  528. pr_debug("%s unsupported system.\n", __func__);
  529. return -ENODEV;
  530. }
  531. ret = platform_driver_register(&cros_platform_driver);
  532. if (ret)
  533. return ret;
  534. cros_platform_device = platform_device_alloc("chromeos_laptop", -1);
  535. if (!cros_platform_device) {
  536. ret = -ENOMEM;
  537. goto fail_platform_device1;
  538. }
  539. ret = platform_device_add(cros_platform_device);
  540. if (ret)
  541. goto fail_platform_device2;
  542. return 0;
  543. fail_platform_device2:
  544. platform_device_put(cros_platform_device);
  545. fail_platform_device1:
  546. platform_driver_unregister(&cros_platform_driver);
  547. return ret;
  548. }
  549. static void __exit chromeos_laptop_exit(void)
  550. {
  551. if (als)
  552. i2c_unregister_device(als);
  553. if (tp)
  554. i2c_unregister_device(tp);
  555. if (ts)
  556. i2c_unregister_device(ts);
  557. platform_device_unregister(cros_platform_device);
  558. platform_driver_unregister(&cros_platform_driver);
  559. }
  560. module_init(chromeos_laptop_init);
  561. module_exit(chromeos_laptop_exit);
  562. MODULE_DESCRIPTION("Chrome OS Laptop driver");
  563. MODULE_AUTHOR("Benson Leung <bleung@chromium.org>");
  564. MODULE_LICENSE("GPL");