intel_scu_ipc.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599
  1. /*
  2. * intel_scu_ipc.c: Driver for the Intel SCU IPC mechanism
  3. *
  4. * (C) Copyright 2008-2010 Intel Corporation
  5. * Author: Sreedhara DS (sreedhara.ds@intel.com)
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; version 2
  10. * of the License.
  11. *
  12. * SCU running in ARC processor communicates with other entity running in IA
  13. * core through IPC mechanism which in turn messaging between IA core ad SCU.
  14. * SCU has two IPC mechanism IPC-1 and IPC-2. IPC-1 is used between IA32 and
  15. * SCU where IPC-2 is used between P-Unit and SCU. This driver delas with
  16. * IPC-1 Driver provides an API for power control unit registers (e.g. MSIC)
  17. * along with other APIs.
  18. */
  19. #include <linux/delay.h>
  20. #include <linux/errno.h>
  21. #include <linux/init.h>
  22. #include <linux/device.h>
  23. #include <linux/pm.h>
  24. #include <linux/pci.h>
  25. #include <linux/interrupt.h>
  26. #include <linux/sfi.h>
  27. #include <linux/module.h>
  28. #include <asm/mrst.h>
  29. #include <asm/intel_scu_ipc.h>
  30. /* IPC defines the following message types */
  31. #define IPCMSG_WATCHDOG_TIMER 0xF8 /* Set Kernel Watchdog Threshold */
  32. #define IPCMSG_BATTERY 0xEF /* Coulomb Counter Accumulator */
  33. #define IPCMSG_FW_UPDATE 0xFE /* Firmware update */
  34. #define IPCMSG_PCNTRL 0xFF /* Power controller unit read/write */
  35. #define IPCMSG_FW_REVISION 0xF4 /* Get firmware revision */
  36. /* Command id associated with message IPCMSG_PCNTRL */
  37. #define IPC_CMD_PCNTRL_W 0 /* Register write */
  38. #define IPC_CMD_PCNTRL_R 1 /* Register read */
  39. #define IPC_CMD_PCNTRL_M 2 /* Register read-modify-write */
  40. /*
  41. * IPC register summary
  42. *
  43. * IPC register blocks are memory mapped at fixed address of 0xFF11C000
  44. * To read or write information to the SCU, driver writes to IPC-1 memory
  45. * mapped registers (base address 0xFF11C000). The following is the IPC
  46. * mechanism
  47. *
  48. * 1. IA core cDMI interface claims this transaction and converts it to a
  49. * Transaction Layer Packet (TLP) message which is sent across the cDMI.
  50. *
  51. * 2. South Complex cDMI block receives this message and writes it to
  52. * the IPC-1 register block, causing an interrupt to the SCU
  53. *
  54. * 3. SCU firmware decodes this interrupt and IPC message and the appropriate
  55. * message handler is called within firmware.
  56. */
  57. #define IPC_BASE_ADDR 0xFF11C000 /* IPC1 base register address */
  58. #define IPC_MAX_ADDR 0x100 /* Maximum IPC regisers */
  59. #define IPC_WWBUF_SIZE 20 /* IPC Write buffer Size */
  60. #define IPC_RWBUF_SIZE 20 /* IPC Read buffer Size */
  61. #define IPC_I2C_BASE 0xFF12B000 /* I2C control register base address */
  62. #define IPC_I2C_MAX_ADDR 0x10 /* Maximum I2C regisers */
  63. static int ipc_probe(struct pci_dev *dev, const struct pci_device_id *id);
  64. static void ipc_remove(struct pci_dev *pdev);
  65. struct intel_scu_ipc_dev {
  66. struct pci_dev *pdev;
  67. void __iomem *ipc_base;
  68. void __iomem *i2c_base;
  69. };
  70. static struct intel_scu_ipc_dev ipcdev; /* Only one for now */
  71. static int platform; /* Platform type */
  72. /*
  73. * IPC Read Buffer (Read Only):
  74. * 16 byte buffer for receiving data from SCU, if IPC command
  75. * processing results in response data
  76. */
  77. #define IPC_READ_BUFFER 0x90
  78. #define IPC_I2C_CNTRL_ADDR 0
  79. #define I2C_DATA_ADDR 0x04
  80. static DEFINE_MUTEX(ipclock); /* lock used to prevent multiple call to SCU */
  81. /*
  82. * Command Register (Write Only):
  83. * A write to this register results in an interrupt to the SCU core processor
  84. * Format:
  85. * |rfu2(8) | size(8) | command id(4) | rfu1(3) | ioc(1) | command(8)|
  86. */
  87. static inline void ipc_command(u32 cmd) /* Send ipc command */
  88. {
  89. writel(cmd, ipcdev.ipc_base);
  90. }
  91. /*
  92. * IPC Write Buffer (Write Only):
  93. * 16-byte buffer for sending data associated with IPC command to
  94. * SCU. Size of the data is specified in the IPC_COMMAND_REG register
  95. */
  96. static inline void ipc_data_writel(u32 data, u32 offset) /* Write ipc data */
  97. {
  98. writel(data, ipcdev.ipc_base + 0x80 + offset);
  99. }
  100. /*
  101. * Status Register (Read Only):
  102. * Driver will read this register to get the ready/busy status of the IPC
  103. * block and error status of the IPC command that was just processed by SCU
  104. * Format:
  105. * |rfu3(8)|error code(8)|initiator id(8)|cmd id(4)|rfu1(2)|error(1)|busy(1)|
  106. */
  107. static inline u8 ipc_read_status(void)
  108. {
  109. return __raw_readl(ipcdev.ipc_base + 0x04);
  110. }
  111. static inline u8 ipc_data_readb(u32 offset) /* Read ipc byte data */
  112. {
  113. return readb(ipcdev.ipc_base + IPC_READ_BUFFER + offset);
  114. }
  115. static inline u32 ipc_data_readl(u32 offset) /* Read ipc u32 data */
  116. {
  117. return readl(ipcdev.ipc_base + IPC_READ_BUFFER + offset);
  118. }
  119. static inline int busy_loop(void) /* Wait till scu status is busy */
  120. {
  121. u32 status = 0;
  122. u32 loop_count = 0;
  123. status = ipc_read_status();
  124. while (status & 1) {
  125. udelay(1); /* scu processing time is in few u secods */
  126. status = ipc_read_status();
  127. loop_count++;
  128. /* break if scu doesn't reset busy bit after huge retry */
  129. if (loop_count > 100000) {
  130. dev_err(&ipcdev.pdev->dev, "IPC timed out");
  131. return -ETIMEDOUT;
  132. }
  133. }
  134. if ((status >> 1) & 1)
  135. return -EIO;
  136. return 0;
  137. }
  138. /* Read/Write power control(PMIC in Langwell, MSIC in PenWell) registers */
  139. static int pwr_reg_rdwr(u16 *addr, u8 *data, u32 count, u32 op, u32 id)
  140. {
  141. int nc;
  142. u32 offset = 0;
  143. int err;
  144. u8 cbuf[IPC_WWBUF_SIZE] = { };
  145. u32 *wbuf = (u32 *)&cbuf;
  146. mutex_lock(&ipclock);
  147. memset(cbuf, 0, sizeof(cbuf));
  148. if (ipcdev.pdev == NULL) {
  149. mutex_unlock(&ipclock);
  150. return -ENODEV;
  151. }
  152. for (nc = 0; nc < count; nc++, offset += 2) {
  153. cbuf[offset] = addr[nc];
  154. cbuf[offset + 1] = addr[nc] >> 8;
  155. }
  156. if (id == IPC_CMD_PCNTRL_R) {
  157. for (nc = 0, offset = 0; nc < count; nc++, offset += 4)
  158. ipc_data_writel(wbuf[nc], offset);
  159. ipc_command((count*2) << 16 | id << 12 | 0 << 8 | op);
  160. } else if (id == IPC_CMD_PCNTRL_W) {
  161. for (nc = 0; nc < count; nc++, offset += 1)
  162. cbuf[offset] = data[nc];
  163. for (nc = 0, offset = 0; nc < count; nc++, offset += 4)
  164. ipc_data_writel(wbuf[nc], offset);
  165. ipc_command((count*3) << 16 | id << 12 | 0 << 8 | op);
  166. } else if (id == IPC_CMD_PCNTRL_M) {
  167. cbuf[offset] = data[0];
  168. cbuf[offset + 1] = data[1];
  169. ipc_data_writel(wbuf[0], 0); /* Write wbuff */
  170. ipc_command(4 << 16 | id << 12 | 0 << 8 | op);
  171. }
  172. err = busy_loop();
  173. if (id == IPC_CMD_PCNTRL_R) { /* Read rbuf */
  174. /* Workaround: values are read as 0 without memcpy_fromio */
  175. memcpy_fromio(cbuf, ipcdev.ipc_base + 0x90, 16);
  176. for (nc = 0; nc < count; nc++)
  177. data[nc] = ipc_data_readb(nc);
  178. }
  179. mutex_unlock(&ipclock);
  180. return err;
  181. }
  182. /**
  183. * intel_scu_ipc_ioread8 - read a word via the SCU
  184. * @addr: register on SCU
  185. * @data: return pointer for read byte
  186. *
  187. * Read a single register. Returns 0 on success or an error code. All
  188. * locking between SCU accesses is handled for the caller.
  189. *
  190. * This function may sleep.
  191. */
  192. int intel_scu_ipc_ioread8(u16 addr, u8 *data)
  193. {
  194. return pwr_reg_rdwr(&addr, data, 1, IPCMSG_PCNTRL, IPC_CMD_PCNTRL_R);
  195. }
  196. EXPORT_SYMBOL(intel_scu_ipc_ioread8);
  197. /**
  198. * intel_scu_ipc_ioread16 - read a word via the SCU
  199. * @addr: register on SCU
  200. * @data: return pointer for read word
  201. *
  202. * Read a register pair. Returns 0 on success or an error code. All
  203. * locking between SCU accesses is handled for the caller.
  204. *
  205. * This function may sleep.
  206. */
  207. int intel_scu_ipc_ioread16(u16 addr, u16 *data)
  208. {
  209. u16 x[2] = {addr, addr + 1 };
  210. return pwr_reg_rdwr(x, (u8 *)data, 2, IPCMSG_PCNTRL, IPC_CMD_PCNTRL_R);
  211. }
  212. EXPORT_SYMBOL(intel_scu_ipc_ioread16);
  213. /**
  214. * intel_scu_ipc_ioread32 - read a dword via the SCU
  215. * @addr: register on SCU
  216. * @data: return pointer for read dword
  217. *
  218. * Read four registers. Returns 0 on success or an error code. All
  219. * locking between SCU accesses is handled for the caller.
  220. *
  221. * This function may sleep.
  222. */
  223. int intel_scu_ipc_ioread32(u16 addr, u32 *data)
  224. {
  225. u16 x[4] = {addr, addr + 1, addr + 2, addr + 3};
  226. return pwr_reg_rdwr(x, (u8 *)data, 4, IPCMSG_PCNTRL, IPC_CMD_PCNTRL_R);
  227. }
  228. EXPORT_SYMBOL(intel_scu_ipc_ioread32);
  229. /**
  230. * intel_scu_ipc_iowrite8 - write a byte via the SCU
  231. * @addr: register on SCU
  232. * @data: byte to write
  233. *
  234. * Write a single register. Returns 0 on success or an error code. All
  235. * locking between SCU accesses is handled for the caller.
  236. *
  237. * This function may sleep.
  238. */
  239. int intel_scu_ipc_iowrite8(u16 addr, u8 data)
  240. {
  241. return pwr_reg_rdwr(&addr, &data, 1, IPCMSG_PCNTRL, IPC_CMD_PCNTRL_W);
  242. }
  243. EXPORT_SYMBOL(intel_scu_ipc_iowrite8);
  244. /**
  245. * intel_scu_ipc_iowrite16 - write a word via the SCU
  246. * @addr: register on SCU
  247. * @data: word to write
  248. *
  249. * Write two registers. Returns 0 on success or an error code. All
  250. * locking between SCU accesses is handled for the caller.
  251. *
  252. * This function may sleep.
  253. */
  254. int intel_scu_ipc_iowrite16(u16 addr, u16 data)
  255. {
  256. u16 x[2] = {addr, addr + 1 };
  257. return pwr_reg_rdwr(x, (u8 *)&data, 2, IPCMSG_PCNTRL, IPC_CMD_PCNTRL_W);
  258. }
  259. EXPORT_SYMBOL(intel_scu_ipc_iowrite16);
  260. /**
  261. * intel_scu_ipc_iowrite32 - write a dword via the SCU
  262. * @addr: register on SCU
  263. * @data: dword to write
  264. *
  265. * Write four registers. Returns 0 on success or an error code. All
  266. * locking between SCU accesses is handled for the caller.
  267. *
  268. * This function may sleep.
  269. */
  270. int intel_scu_ipc_iowrite32(u16 addr, u32 data)
  271. {
  272. u16 x[4] = {addr, addr + 1, addr + 2, addr + 3};
  273. return pwr_reg_rdwr(x, (u8 *)&data, 4, IPCMSG_PCNTRL, IPC_CMD_PCNTRL_W);
  274. }
  275. EXPORT_SYMBOL(intel_scu_ipc_iowrite32);
  276. /**
  277. * intel_scu_ipc_readvv - read a set of registers
  278. * @addr: register list
  279. * @data: bytes to return
  280. * @len: length of array
  281. *
  282. * Read registers. Returns 0 on success or an error code. All
  283. * locking between SCU accesses is handled for the caller.
  284. *
  285. * The largest array length permitted by the hardware is 5 items.
  286. *
  287. * This function may sleep.
  288. */
  289. int intel_scu_ipc_readv(u16 *addr, u8 *data, int len)
  290. {
  291. return pwr_reg_rdwr(addr, data, len, IPCMSG_PCNTRL, IPC_CMD_PCNTRL_R);
  292. }
  293. EXPORT_SYMBOL(intel_scu_ipc_readv);
  294. /**
  295. * intel_scu_ipc_writev - write a set of registers
  296. * @addr: register list
  297. * @data: bytes to write
  298. * @len: length of array
  299. *
  300. * Write registers. Returns 0 on success or an error code. All
  301. * locking between SCU accesses is handled for the caller.
  302. *
  303. * The largest array length permitted by the hardware is 5 items.
  304. *
  305. * This function may sleep.
  306. *
  307. */
  308. int intel_scu_ipc_writev(u16 *addr, u8 *data, int len)
  309. {
  310. return pwr_reg_rdwr(addr, data, len, IPCMSG_PCNTRL, IPC_CMD_PCNTRL_W);
  311. }
  312. EXPORT_SYMBOL(intel_scu_ipc_writev);
  313. /**
  314. * intel_scu_ipc_update_register - r/m/w a register
  315. * @addr: register address
  316. * @bits: bits to update
  317. * @mask: mask of bits to update
  318. *
  319. * Read-modify-write power control unit register. The first data argument
  320. * must be register value and second is mask value
  321. * mask is a bitmap that indicates which bits to update.
  322. * 0 = masked. Don't modify this bit, 1 = modify this bit.
  323. * returns 0 on success or an error code.
  324. *
  325. * This function may sleep. Locking between SCU accesses is handled
  326. * for the caller.
  327. */
  328. int intel_scu_ipc_update_register(u16 addr, u8 bits, u8 mask)
  329. {
  330. u8 data[2] = { bits, mask };
  331. return pwr_reg_rdwr(&addr, data, 1, IPCMSG_PCNTRL, IPC_CMD_PCNTRL_M);
  332. }
  333. EXPORT_SYMBOL(intel_scu_ipc_update_register);
  334. /**
  335. * intel_scu_ipc_simple_command - send a simple command
  336. * @cmd: command
  337. * @sub: sub type
  338. *
  339. * Issue a simple command to the SCU. Do not use this interface if
  340. * you must then access data as any data values may be overwritten
  341. * by another SCU access by the time this function returns.
  342. *
  343. * This function may sleep. Locking for SCU accesses is handled for
  344. * the caller.
  345. */
  346. int intel_scu_ipc_simple_command(int cmd, int sub)
  347. {
  348. int err;
  349. mutex_lock(&ipclock);
  350. if (ipcdev.pdev == NULL) {
  351. mutex_unlock(&ipclock);
  352. return -ENODEV;
  353. }
  354. ipc_command(sub << 12 | cmd);
  355. err = busy_loop();
  356. mutex_unlock(&ipclock);
  357. return err;
  358. }
  359. EXPORT_SYMBOL(intel_scu_ipc_simple_command);
  360. /**
  361. * intel_scu_ipc_command - command with data
  362. * @cmd: command
  363. * @sub: sub type
  364. * @in: input data
  365. * @inlen: input length in dwords
  366. * @out: output data
  367. * @outlein: output length in dwords
  368. *
  369. * Issue a command to the SCU which involves data transfers. Do the
  370. * data copies under the lock but leave it for the caller to interpret
  371. */
  372. int intel_scu_ipc_command(int cmd, int sub, u32 *in, int inlen,
  373. u32 *out, int outlen)
  374. {
  375. int i, err;
  376. mutex_lock(&ipclock);
  377. if (ipcdev.pdev == NULL) {
  378. mutex_unlock(&ipclock);
  379. return -ENODEV;
  380. }
  381. for (i = 0; i < inlen; i++)
  382. ipc_data_writel(*in++, 4 * i);
  383. ipc_command((inlen << 16) | (sub << 12) | cmd);
  384. err = busy_loop();
  385. for (i = 0; i < outlen; i++)
  386. *out++ = ipc_data_readl(4 * i);
  387. mutex_unlock(&ipclock);
  388. return err;
  389. }
  390. EXPORT_SYMBOL(intel_scu_ipc_command);
  391. /*I2C commands */
  392. #define IPC_I2C_WRITE 1 /* I2C Write command */
  393. #define IPC_I2C_READ 2 /* I2C Read command */
  394. /**
  395. * intel_scu_ipc_i2c_cntrl - I2C read/write operations
  396. * @addr: I2C address + command bits
  397. * @data: data to read/write
  398. *
  399. * Perform an an I2C read/write operation via the SCU. All locking is
  400. * handled for the caller. This function may sleep.
  401. *
  402. * Returns an error code or 0 on success.
  403. *
  404. * This has to be in the IPC driver for the locking.
  405. */
  406. int intel_scu_ipc_i2c_cntrl(u32 addr, u32 *data)
  407. {
  408. u32 cmd = 0;
  409. mutex_lock(&ipclock);
  410. if (ipcdev.pdev == NULL) {
  411. mutex_unlock(&ipclock);
  412. return -ENODEV;
  413. }
  414. cmd = (addr >> 24) & 0xFF;
  415. if (cmd == IPC_I2C_READ) {
  416. writel(addr, ipcdev.i2c_base + IPC_I2C_CNTRL_ADDR);
  417. /* Write not getting updated without delay */
  418. mdelay(1);
  419. *data = readl(ipcdev.i2c_base + I2C_DATA_ADDR);
  420. } else if (cmd == IPC_I2C_WRITE) {
  421. writel(*data, ipcdev.i2c_base + I2C_DATA_ADDR);
  422. mdelay(1);
  423. writel(addr, ipcdev.i2c_base + IPC_I2C_CNTRL_ADDR);
  424. } else {
  425. dev_err(&ipcdev.pdev->dev,
  426. "intel_scu_ipc: I2C INVALID_CMD = 0x%x\n", cmd);
  427. mutex_unlock(&ipclock);
  428. return -EIO;
  429. }
  430. mutex_unlock(&ipclock);
  431. return 0;
  432. }
  433. EXPORT_SYMBOL(intel_scu_ipc_i2c_cntrl);
  434. /*
  435. * Interrupt handler gets called when ioc bit of IPC_COMMAND_REG set to 1
  436. * When ioc bit is set to 1, caller api must wait for interrupt handler called
  437. * which in turn unlocks the caller api. Currently this is not used
  438. *
  439. * This is edge triggered so we need take no action to clear anything
  440. */
  441. static irqreturn_t ioc(int irq, void *dev_id)
  442. {
  443. return IRQ_HANDLED;
  444. }
  445. /**
  446. * ipc_probe - probe an Intel SCU IPC
  447. * @dev: the PCI device matching
  448. * @id: entry in the match table
  449. *
  450. * Enable and install an intel SCU IPC. This appears in the PCI space
  451. * but uses some hard coded addresses as well.
  452. */
  453. static int ipc_probe(struct pci_dev *dev, const struct pci_device_id *id)
  454. {
  455. int err;
  456. resource_size_t pci_resource;
  457. if (ipcdev.pdev) /* We support only one SCU */
  458. return -EBUSY;
  459. ipcdev.pdev = pci_dev_get(dev);
  460. err = pci_enable_device(dev);
  461. if (err)
  462. return err;
  463. err = pci_request_regions(dev, "intel_scu_ipc");
  464. if (err)
  465. return err;
  466. pci_resource = pci_resource_start(dev, 0);
  467. if (!pci_resource)
  468. return -ENOMEM;
  469. if (request_irq(dev->irq, ioc, 0, "intel_scu_ipc", &ipcdev))
  470. return -EBUSY;
  471. ipcdev.ipc_base = ioremap_nocache(IPC_BASE_ADDR, IPC_MAX_ADDR);
  472. if (!ipcdev.ipc_base)
  473. return -ENOMEM;
  474. ipcdev.i2c_base = ioremap_nocache(IPC_I2C_BASE, IPC_I2C_MAX_ADDR);
  475. if (!ipcdev.i2c_base) {
  476. iounmap(ipcdev.ipc_base);
  477. return -ENOMEM;
  478. }
  479. intel_scu_devices_create();
  480. return 0;
  481. }
  482. /**
  483. * ipc_remove - remove a bound IPC device
  484. * @pdev: PCI device
  485. *
  486. * In practice the SCU is not removable but this function is also
  487. * called for each device on a module unload or cleanup which is the
  488. * path that will get used.
  489. *
  490. * Free up the mappings and release the PCI resources
  491. */
  492. static void ipc_remove(struct pci_dev *pdev)
  493. {
  494. free_irq(pdev->irq, &ipcdev);
  495. pci_release_regions(pdev);
  496. pci_dev_put(ipcdev.pdev);
  497. iounmap(ipcdev.ipc_base);
  498. iounmap(ipcdev.i2c_base);
  499. ipcdev.pdev = NULL;
  500. intel_scu_devices_destroy();
  501. }
  502. static DEFINE_PCI_DEVICE_TABLE(pci_ids) = {
  503. {PCI_DEVICE(PCI_VENDOR_ID_INTEL, 0x082a)},
  504. { 0,}
  505. };
  506. MODULE_DEVICE_TABLE(pci, pci_ids);
  507. static struct pci_driver ipc_driver = {
  508. .name = "intel_scu_ipc",
  509. .id_table = pci_ids,
  510. .probe = ipc_probe,
  511. .remove = ipc_remove,
  512. };
  513. static int __init intel_scu_ipc_init(void)
  514. {
  515. platform = mrst_identify_cpu();
  516. if (platform == 0)
  517. return -ENODEV;
  518. return pci_register_driver(&ipc_driver);
  519. }
  520. static void __exit intel_scu_ipc_exit(void)
  521. {
  522. pci_unregister_driver(&ipc_driver);
  523. }
  524. MODULE_AUTHOR("Sreedhara DS <sreedhara.ds@intel.com>");
  525. MODULE_DESCRIPTION("Intel SCU IPC driver");
  526. MODULE_LICENSE("GPL");
  527. module_init(intel_scu_ipc_init);
  528. module_exit(intel_scu_ipc_exit);