1
0

0006-spi-add-rb4xx-SPI-driver.patch 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. From 97ffc04a7528abe1d84c069d99afb19704d50224 Mon Sep 17 00:00:00 2001
  2. From: Phil Sutter <phil@nwl.cc>
  3. Date: Tue, 13 May 2014 00:18:58 +0200
  4. Subject: [PATCH] spi: add rb4xx SPI driver
  5. ---
  6. drivers/spi/Kconfig | 6 +
  7. drivers/spi/Makefile | 1 +
  8. drivers/spi/spi-rb4xx.c | 507 ++++++++++++++++++++++++++++++++++++++++++++++++
  9. 3 files changed, 514 insertions(+)
  10. create mode 100644 drivers/spi/spi-rb4xx.c
  11. diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
  12. index 581ee2a..721f3a7 100644
  13. --- a/drivers/spi/Kconfig
  14. +++ b/drivers/spi/Kconfig
  15. @@ -381,6 +381,12 @@ config SPI_RSPI
  16. help
  17. SPI driver for Renesas RSPI and QSPI blocks.
  18. +config SPI_RB4XX
  19. + tristate "Mikrotik RB4XX SPI master"
  20. + depends on SPI_MASTER && ATH79_MACH_RB4XX
  21. + help
  22. + SPI controller driver for the Mikrotik RB4xx series boards.
  23. +
  24. config SPI_S3C24XX
  25. tristate "Samsung S3C24XX series SPI"
  26. depends on ARCH_S3C24XX
  27. diff --git a/drivers/spi/Makefile b/drivers/spi/Makefile
  28. index 95af48d..e738c7a 100644
  29. --- a/drivers/spi/Makefile
  30. +++ b/drivers/spi/Makefile
  31. @@ -59,6 +59,7 @@ spi-pxa2xx-platform-$(CONFIG_SPI_PXA2XX_PXADMA) += spi-pxa2xx-pxadma.o
  32. spi-pxa2xx-platform-$(CONFIG_SPI_PXA2XX_DMA) += spi-pxa2xx-dma.o
  33. obj-$(CONFIG_SPI_PXA2XX) += spi-pxa2xx-platform.o
  34. obj-$(CONFIG_SPI_PXA2XX_PCI) += spi-pxa2xx-pci.o
  35. +obj-$(CONFIG_SPI_RB4XX) += spi-rb4xx.o
  36. obj-$(CONFIG_SPI_RSPI) += spi-rspi.o
  37. obj-$(CONFIG_SPI_S3C24XX) += spi-s3c24xx-hw.o
  38. spi-s3c24xx-hw-y := spi-s3c24xx.o
  39. diff --git a/drivers/spi/spi-rb4xx.c b/drivers/spi/spi-rb4xx.c
  40. new file mode 100644
  41. index 0000000..56260ff
  42. --- /dev/null
  43. +++ b/drivers/spi/spi-rb4xx.c
  44. @@ -0,0 +1,507 @@
  45. +/*
  46. + * SPI controller driver for the Mikrotik RB4xx boards
  47. + *
  48. + * Copyright (C) 2010 Gabor Juhos <juhosg@openwrt.org>
  49. + *
  50. + * This file was based on the patches for Linux 2.6.27.39 published by
  51. + * MikroTik for their RouterBoard 4xx series devices.
  52. + *
  53. + * This program is free software; you can redistribute it and/or modify
  54. + * it under the terms of the GNU General Public License version 2 as
  55. + * published by the Free Software Foundation.
  56. + *
  57. + */
  58. +
  59. +#include <linux/clk.h>
  60. +#include <linux/err.h>
  61. +#include <linux/kernel.h>
  62. +#include <linux/module.h>
  63. +#include <linux/init.h>
  64. +#include <linux/delay.h>
  65. +#include <linux/spinlock.h>
  66. +#include <linux/workqueue.h>
  67. +#include <linux/platform_device.h>
  68. +#include <linux/spi/spi.h>
  69. +
  70. +#include <asm/mach-ath79/ar71xx_regs.h>
  71. +#include <asm/mach-ath79/ath79.h>
  72. +
  73. +#define DRV_NAME "rb4xx-spi"
  74. +#define DRV_DESC "Mikrotik RB4xx SPI controller driver"
  75. +#define DRV_VERSION "0.1.0"
  76. +
  77. +#define SPI_CTRL_FASTEST 0x40
  78. +#define SPI_FLASH_HZ 33333334
  79. +#define SPI_CPLD_HZ 33333334
  80. +
  81. +#define CPLD_CMD_READ_FAST 0x0b
  82. +
  83. +#undef RB4XX_SPI_DEBUG
  84. +
  85. +struct rb4xx_spi {
  86. + void __iomem *base;
  87. + struct spi_master *master;
  88. +
  89. + unsigned spi_ctrl_flash;
  90. + unsigned spi_ctrl_fread;
  91. +
  92. + struct clk *ahb_clk;
  93. + unsigned long ahb_freq;
  94. +
  95. + spinlock_t lock;
  96. + struct list_head queue;
  97. + int busy:1;
  98. + int cs_wait;
  99. +};
  100. +
  101. +static unsigned spi_clk_low = AR71XX_SPI_IOC_CS1;
  102. +
  103. +#ifdef RB4XX_SPI_DEBUG
  104. +static inline void do_spi_delay(void)
  105. +{
  106. + ndelay(20000);
  107. +}
  108. +#else
  109. +static inline void do_spi_delay(void) { }
  110. +#endif
  111. +
  112. +static inline void do_spi_init(struct spi_device *spi)
  113. +{
  114. + unsigned cs = AR71XX_SPI_IOC_CS0 | AR71XX_SPI_IOC_CS1;
  115. +
  116. + if (!(spi->mode & SPI_CS_HIGH))
  117. + cs ^= (spi->chip_select == 2) ? AR71XX_SPI_IOC_CS1 :
  118. + AR71XX_SPI_IOC_CS0;
  119. +
  120. + spi_clk_low = cs;
  121. +}
  122. +
  123. +static inline void do_spi_finish(void __iomem *base)
  124. +{
  125. + do_spi_delay();
  126. + __raw_writel(AR71XX_SPI_IOC_CS0 | AR71XX_SPI_IOC_CS1,
  127. + base + AR71XX_SPI_REG_IOC);
  128. +}
  129. +
  130. +static inline void do_spi_clk(void __iomem *base, int bit)
  131. +{
  132. + unsigned bval = spi_clk_low | ((bit & 1) ? AR71XX_SPI_IOC_DO : 0);
  133. +
  134. + do_spi_delay();
  135. + __raw_writel(bval, base + AR71XX_SPI_REG_IOC);
  136. + do_spi_delay();
  137. + __raw_writel(bval | AR71XX_SPI_IOC_CLK, base + AR71XX_SPI_REG_IOC);
  138. +}
  139. +
  140. +static void do_spi_byte(void __iomem *base, unsigned char byte)
  141. +{
  142. + do_spi_clk(base, byte >> 7);
  143. + do_spi_clk(base, byte >> 6);
  144. + do_spi_clk(base, byte >> 5);
  145. + do_spi_clk(base, byte >> 4);
  146. + do_spi_clk(base, byte >> 3);
  147. + do_spi_clk(base, byte >> 2);
  148. + do_spi_clk(base, byte >> 1);
  149. + do_spi_clk(base, byte);
  150. +
  151. + pr_debug("spi_byte sent 0x%02x got 0x%02x\n",
  152. + (unsigned)byte,
  153. + (unsigned char)__raw_readl(base + AR71XX_SPI_REG_RDS));
  154. +}
  155. +
  156. +static inline void do_spi_clk_fast(void __iomem *base, unsigned bit1,
  157. + unsigned bit2)
  158. +{
  159. + unsigned bval = (spi_clk_low |
  160. + ((bit1 & 1) ? AR71XX_SPI_IOC_DO : 0) |
  161. + ((bit2 & 1) ? AR71XX_SPI_IOC_CS2 : 0));
  162. + do_spi_delay();
  163. + __raw_writel(bval, base + AR71XX_SPI_REG_IOC);
  164. + do_spi_delay();
  165. + __raw_writel(bval | AR71XX_SPI_IOC_CLK, base + AR71XX_SPI_REG_IOC);
  166. +}
  167. +
  168. +static void do_spi_byte_fast(void __iomem *base, unsigned char byte)
  169. +{
  170. + do_spi_clk_fast(base, byte >> 7, byte >> 6);
  171. + do_spi_clk_fast(base, byte >> 5, byte >> 4);
  172. + do_spi_clk_fast(base, byte >> 3, byte >> 2);
  173. + do_spi_clk_fast(base, byte >> 1, byte >> 0);
  174. +
  175. + pr_debug("spi_byte_fast sent 0x%02x got 0x%02x\n",
  176. + (unsigned)byte,
  177. + (unsigned char) __raw_readl(base + AR71XX_SPI_REG_RDS));
  178. +}
  179. +
  180. +static int rb4xx_spi_txrx(void __iomem *base, struct spi_transfer *t)
  181. +{
  182. + const unsigned char *rxv_ptr = NULL;
  183. + const unsigned char *tx_ptr = t->tx_buf;
  184. + unsigned char *rx_ptr = t->rx_buf;
  185. + unsigned i;
  186. +
  187. + pr_debug("spi_txrx len %u tx %u rx %u\n",
  188. + t->len,
  189. + (t->tx_buf ? 1 : 0),
  190. + (t->rx_buf ? 1 : 0));
  191. +
  192. + if (t->verify) {
  193. + rxv_ptr = tx_ptr;
  194. + tx_ptr = NULL;
  195. + }
  196. +
  197. + for (i = 0; i < t->len; ++i) {
  198. + unsigned char sdata = tx_ptr ? tx_ptr[i] : 0;
  199. +
  200. + if (t->fast_write)
  201. + do_spi_byte_fast(base, sdata);
  202. + else
  203. + do_spi_byte(base, sdata);
  204. +
  205. + if (rx_ptr) {
  206. + rx_ptr[i] = __raw_readl(base + AR71XX_SPI_REG_RDS) & 0xff;
  207. + } else if (rxv_ptr) {
  208. + unsigned char c = __raw_readl(base + AR71XX_SPI_REG_RDS);
  209. + if (rxv_ptr[i] != c)
  210. + return i;
  211. + }
  212. + }
  213. +
  214. + return i;
  215. +}
  216. +
  217. +static int rb4xx_spi_read_fast(struct rb4xx_spi *rbspi,
  218. + struct spi_message *m)
  219. +{
  220. + struct spi_transfer *t;
  221. + const unsigned char *tx_ptr;
  222. + unsigned addr;
  223. + void __iomem *base = rbspi->base;
  224. +
  225. + /* check for exactly two transfers */
  226. + if (list_empty(&m->transfers) ||
  227. + list_is_last(m->transfers.next, &m->transfers) ||
  228. + !list_is_last(m->transfers.next->next, &m->transfers)) {
  229. + return -1;
  230. + }
  231. +
  232. + /* first transfer contains command and address */
  233. + t = list_entry(m->transfers.next,
  234. + struct spi_transfer, transfer_list);
  235. +
  236. + if (t->len != 5 || t->tx_buf == NULL)
  237. + return -1;
  238. +
  239. + tx_ptr = t->tx_buf;
  240. + if (tx_ptr[0] != CPLD_CMD_READ_FAST)
  241. + return -1;
  242. +
  243. + addr = tx_ptr[1];
  244. + addr = tx_ptr[2] | (addr << 8);
  245. + addr = tx_ptr[3] | (addr << 8);
  246. + addr += (unsigned) base;
  247. +
  248. + m->actual_length += t->len;
  249. +
  250. + /* second transfer contains data itself */
  251. + t = list_entry(m->transfers.next->next,
  252. + struct spi_transfer, transfer_list);
  253. +
  254. + if (t->tx_buf && !t->verify)
  255. + return -1;
  256. +
  257. + __raw_writel(AR71XX_SPI_FS_GPIO, base + AR71XX_SPI_REG_FS);
  258. + __raw_writel(rbspi->spi_ctrl_fread, base + AR71XX_SPI_REG_CTRL);
  259. + __raw_writel(0, base + AR71XX_SPI_REG_FS);
  260. +
  261. + if (t->rx_buf) {
  262. + memcpy(t->rx_buf, (const void *)addr, t->len);
  263. + } else if (t->tx_buf) {
  264. + unsigned char buf[t->len];
  265. + memcpy(buf, (const void *)addr, t->len);
  266. + if (memcmp(t->tx_buf, buf, t->len) != 0)
  267. + m->status = -EMSGSIZE;
  268. + }
  269. + m->actual_length += t->len;
  270. +
  271. + if (rbspi->spi_ctrl_flash != rbspi->spi_ctrl_fread) {
  272. + __raw_writel(AR71XX_SPI_FS_GPIO, base + AR71XX_SPI_REG_FS);
  273. + __raw_writel(rbspi->spi_ctrl_flash, base + AR71XX_SPI_REG_CTRL);
  274. + __raw_writel(0, base + AR71XX_SPI_REG_FS);
  275. + }
  276. +
  277. + return 0;
  278. +}
  279. +
  280. +static int rb4xx_spi_msg(struct rb4xx_spi *rbspi, struct spi_message *m)
  281. +{
  282. + struct spi_transfer *t = NULL;
  283. + void __iomem *base = rbspi->base;
  284. +
  285. + m->status = 0;
  286. + if (list_empty(&m->transfers))
  287. + return -1;
  288. +
  289. + if (m->fast_read)
  290. + if (rb4xx_spi_read_fast(rbspi, m) == 0)
  291. + return -1;
  292. +
  293. + __raw_writel(AR71XX_SPI_FS_GPIO, base + AR71XX_SPI_REG_FS);
  294. + __raw_writel(SPI_CTRL_FASTEST, base + AR71XX_SPI_REG_CTRL);
  295. + do_spi_init(m->spi);
  296. +
  297. + list_for_each_entry(t, &m->transfers, transfer_list) {
  298. + int len;
  299. +
  300. + len = rb4xx_spi_txrx(base, t);
  301. + if (len != t->len) {
  302. + m->status = -EMSGSIZE;
  303. + break;
  304. + }
  305. + m->actual_length += len;
  306. +
  307. + if (t->cs_change) {
  308. + if (list_is_last(&t->transfer_list, &m->transfers)) {
  309. + /* wait for continuation */
  310. + return m->spi->chip_select;
  311. + }
  312. + do_spi_finish(base);
  313. + ndelay(100);
  314. + }
  315. + }
  316. +
  317. + do_spi_finish(base);
  318. + __raw_writel(rbspi->spi_ctrl_flash, base + AR71XX_SPI_REG_CTRL);
  319. + __raw_writel(0, base + AR71XX_SPI_REG_FS);
  320. + return -1;
  321. +}
  322. +
  323. +static void rb4xx_spi_process_queue_locked(struct rb4xx_spi *rbspi,
  324. + unsigned long *flags)
  325. +{
  326. + int cs = rbspi->cs_wait;
  327. +
  328. + rbspi->busy = 1;
  329. + while (!list_empty(&rbspi->queue)) {
  330. + struct spi_message *m;
  331. +
  332. + list_for_each_entry(m, &rbspi->queue, queue)
  333. + if (cs < 0 || cs == m->spi->chip_select)
  334. + break;
  335. +
  336. + if (&m->queue == &rbspi->queue)
  337. + break;
  338. +
  339. + list_del_init(&m->queue);
  340. + spin_unlock_irqrestore(&rbspi->lock, *flags);
  341. +
  342. + cs = rb4xx_spi_msg(rbspi, m);
  343. + m->complete(m->context);
  344. +
  345. + spin_lock_irqsave(&rbspi->lock, *flags);
  346. + }
  347. +
  348. + rbspi->cs_wait = cs;
  349. + rbspi->busy = 0;
  350. +
  351. + if (cs >= 0) {
  352. + /* TODO: add timer to unlock cs after 1s inactivity */
  353. + }
  354. +}
  355. +
  356. +static int rb4xx_spi_transfer(struct spi_device *spi,
  357. + struct spi_message *m)
  358. +{
  359. + struct rb4xx_spi *rbspi = spi_master_get_devdata(spi->master);
  360. + unsigned long flags;
  361. +
  362. + m->actual_length = 0;
  363. + m->status = -EINPROGRESS;
  364. +
  365. + spin_lock_irqsave(&rbspi->lock, flags);
  366. + list_add_tail(&m->queue, &rbspi->queue);
  367. + if (rbspi->busy ||
  368. + (rbspi->cs_wait >= 0 && rbspi->cs_wait != m->spi->chip_select)) {
  369. + /* job will be done later */
  370. + spin_unlock_irqrestore(&rbspi->lock, flags);
  371. + return 0;
  372. + }
  373. +
  374. + /* process job in current context */
  375. + rb4xx_spi_process_queue_locked(rbspi, &flags);
  376. + spin_unlock_irqrestore(&rbspi->lock, flags);
  377. +
  378. + return 0;
  379. +}
  380. +
  381. +static int rb4xx_spi_setup(struct spi_device *spi)
  382. +{
  383. + struct rb4xx_spi *rbspi = spi_master_get_devdata(spi->master);
  384. + unsigned long flags;
  385. +
  386. + if (spi->mode & ~(SPI_CS_HIGH)) {
  387. + dev_err(&spi->dev, "mode %x not supported\n",
  388. + (unsigned) spi->mode);
  389. + return -EINVAL;
  390. + }
  391. +
  392. + if (spi->bits_per_word != 8 && spi->bits_per_word != 0) {
  393. + dev_err(&spi->dev, "bits_per_word %u not supported\n",
  394. + (unsigned) spi->bits_per_word);
  395. + return -EINVAL;
  396. + }
  397. +
  398. + spin_lock_irqsave(&rbspi->lock, flags);
  399. + if (rbspi->cs_wait == spi->chip_select && !rbspi->busy) {
  400. + rbspi->cs_wait = -1;
  401. + rb4xx_spi_process_queue_locked(rbspi, &flags);
  402. + }
  403. + spin_unlock_irqrestore(&rbspi->lock, flags);
  404. +
  405. + return 0;
  406. +}
  407. +
  408. +static unsigned get_spi_ctrl(struct rb4xx_spi *rbspi, unsigned hz_max,
  409. + const char *name)
  410. +{
  411. + unsigned div;
  412. +
  413. + div = (rbspi->ahb_freq - 1) / (2 * hz_max);
  414. +
  415. + /*
  416. + * CPU has a bug at (div == 0) - first bit read is random
  417. + */
  418. + if (div == 0)
  419. + ++div;
  420. +
  421. + if (name) {
  422. + unsigned ahb_khz = (rbspi->ahb_freq + 500) / 1000;
  423. + unsigned div_real = 2 * (div + 1);
  424. + pr_debug("rb4xx: %s SPI clock %u kHz (AHB %u kHz / %u)\n",
  425. + name,
  426. + ahb_khz / div_real,
  427. + ahb_khz, div_real);
  428. + }
  429. +
  430. + return SPI_CTRL_FASTEST + div;
  431. +}
  432. +
  433. +static int rb4xx_spi_probe(struct platform_device *pdev)
  434. +{
  435. + struct spi_master *master;
  436. + struct rb4xx_spi *rbspi;
  437. + struct resource *r;
  438. + int err = 0;
  439. +
  440. + master = spi_alloc_master(&pdev->dev, sizeof(*rbspi));
  441. + if (master == NULL) {
  442. + dev_err(&pdev->dev, "no memory for spi_master\n");
  443. + err = -ENOMEM;
  444. + goto err_out;
  445. + }
  446. +
  447. + master->bus_num = 0;
  448. + master->num_chipselect = 3;
  449. + master->setup = rb4xx_spi_setup;
  450. + master->transfer = rb4xx_spi_transfer;
  451. +
  452. + rbspi = spi_master_get_devdata(master);
  453. +
  454. + rbspi->ahb_clk = clk_get(&pdev->dev, "ahb");
  455. + if (IS_ERR(rbspi->ahb_clk)) {
  456. + err = PTR_ERR(rbspi->ahb_clk);
  457. + goto err_put_master;
  458. + }
  459. +
  460. + err = clk_enable(rbspi->ahb_clk);
  461. + if (err)
  462. + goto err_clk_put;
  463. +
  464. + rbspi->ahb_freq = clk_get_rate(rbspi->ahb_clk);
  465. + if (!rbspi->ahb_freq) {
  466. + err = -EINVAL;
  467. + goto err_clk_disable;
  468. + }
  469. +
  470. + platform_set_drvdata(pdev, rbspi);
  471. +
  472. + r = platform_get_resource(pdev, IORESOURCE_MEM, 0);
  473. + if (r == NULL) {
  474. + err = -ENOENT;
  475. + goto err_clk_disable;
  476. + }
  477. +
  478. + rbspi->base = ioremap(r->start, r->end - r->start + 1);
  479. + if (!rbspi->base) {
  480. + err = -ENXIO;
  481. + goto err_clk_disable;
  482. + }
  483. +
  484. + rbspi->master = master;
  485. + rbspi->spi_ctrl_flash = get_spi_ctrl(rbspi, SPI_FLASH_HZ, "FLASH");
  486. + rbspi->spi_ctrl_fread = get_spi_ctrl(rbspi, SPI_CPLD_HZ, "CPLD");
  487. + rbspi->cs_wait = -1;
  488. +
  489. + spin_lock_init(&rbspi->lock);
  490. + INIT_LIST_HEAD(&rbspi->queue);
  491. +
  492. + err = spi_register_master(master);
  493. + if (err) {
  494. + dev_err(&pdev->dev, "failed to register SPI master\n");
  495. + goto err_iounmap;
  496. + }
  497. +
  498. + return 0;
  499. +
  500. +err_iounmap:
  501. + iounmap(rbspi->base);
  502. +err_clk_disable:
  503. + clk_disable(rbspi->ahb_clk);
  504. +err_clk_put:
  505. + clk_put(rbspi->ahb_clk);
  506. +err_put_master:
  507. + platform_set_drvdata(pdev, NULL);
  508. + spi_master_put(master);
  509. +err_out:
  510. + return err;
  511. +}
  512. +
  513. +static int rb4xx_spi_remove(struct platform_device *pdev)
  514. +{
  515. + struct rb4xx_spi *rbspi = platform_get_drvdata(pdev);
  516. +
  517. + iounmap(rbspi->base);
  518. + clk_disable(rbspi->ahb_clk);
  519. + clk_put(rbspi->ahb_clk);
  520. + platform_set_drvdata(pdev, NULL);
  521. + spi_master_put(rbspi->master);
  522. +
  523. + return 0;
  524. +}
  525. +
  526. +static struct platform_driver rb4xx_spi_drv = {
  527. + .probe = rb4xx_spi_probe,
  528. + .remove = rb4xx_spi_remove,
  529. + .driver = {
  530. + .name = DRV_NAME,
  531. + .owner = THIS_MODULE,
  532. + },
  533. +};
  534. +
  535. +static int __init rb4xx_spi_init(void)
  536. +{
  537. + return platform_driver_register(&rb4xx_spi_drv);
  538. +}
  539. +subsys_initcall(rb4xx_spi_init);
  540. +
  541. +static void __exit rb4xx_spi_exit(void)
  542. +{
  543. + platform_driver_unregister(&rb4xx_spi_drv);
  544. +}
  545. +
  546. +module_exit(rb4xx_spi_exit);
  547. +
  548. +MODULE_DESCRIPTION(DRV_DESC);
  549. +MODULE_VERSION(DRV_VERSION);
  550. +MODULE_AUTHOR("Gabor Juhos <juhosg@openwrt.org>");
  551. +MODULE_LICENSE("GPL v2");
  552. --
  553. 1.8.5.3