designware_i2c.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605
  1. /*
  2. * (C) Copyright 2009
  3. * Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #include <common.h>
  8. #include <dm.h>
  9. #include <i2c.h>
  10. #include <pci.h>
  11. #include <asm/io.h>
  12. #include "designware_i2c.h"
  13. struct dw_scl_sda_cfg {
  14. u32 ss_hcnt;
  15. u32 fs_hcnt;
  16. u32 ss_lcnt;
  17. u32 fs_lcnt;
  18. u32 sda_hold;
  19. };
  20. #ifdef CONFIG_X86
  21. /* BayTrail HCNT/LCNT/SDA hold time */
  22. static struct dw_scl_sda_cfg byt_config = {
  23. .ss_hcnt = 0x200,
  24. .fs_hcnt = 0x55,
  25. .ss_lcnt = 0x200,
  26. .fs_lcnt = 0x99,
  27. .sda_hold = 0x6,
  28. };
  29. #endif
  30. struct dw_i2c {
  31. struct i2c_regs *regs;
  32. struct dw_scl_sda_cfg *scl_sda_cfg;
  33. };
  34. #ifdef CONFIG_SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED
  35. static void dw_i2c_enable(struct i2c_regs *i2c_base, bool enable)
  36. {
  37. u32 ena = enable ? IC_ENABLE_0B : 0;
  38. writel(ena, &i2c_base->ic_enable);
  39. }
  40. #else
  41. static void dw_i2c_enable(struct i2c_regs *i2c_base, bool enable)
  42. {
  43. u32 ena = enable ? IC_ENABLE_0B : 0;
  44. int timeout = 100;
  45. do {
  46. writel(ena, &i2c_base->ic_enable);
  47. if ((readl(&i2c_base->ic_enable_status) & IC_ENABLE_0B) == ena)
  48. return;
  49. /*
  50. * Wait 10 times the signaling period of the highest I2C
  51. * transfer supported by the driver (for 400KHz this is
  52. * 25us) as described in the DesignWare I2C databook.
  53. */
  54. udelay(25);
  55. } while (timeout--);
  56. printf("timeout in %sabling I2C adapter\n", enable ? "en" : "dis");
  57. }
  58. #endif
  59. /*
  60. * i2c_set_bus_speed - Set the i2c speed
  61. * @speed: required i2c speed
  62. *
  63. * Set the i2c speed.
  64. */
  65. static unsigned int __dw_i2c_set_bus_speed(struct i2c_regs *i2c_base,
  66. struct dw_scl_sda_cfg *scl_sda_cfg,
  67. unsigned int speed)
  68. {
  69. unsigned int cntl;
  70. unsigned int hcnt, lcnt;
  71. int i2c_spd;
  72. if (speed >= I2C_MAX_SPEED)
  73. i2c_spd = IC_SPEED_MODE_MAX;
  74. else if (speed >= I2C_FAST_SPEED)
  75. i2c_spd = IC_SPEED_MODE_FAST;
  76. else
  77. i2c_spd = IC_SPEED_MODE_STANDARD;
  78. /* to set speed cltr must be disabled */
  79. dw_i2c_enable(i2c_base, false);
  80. cntl = (readl(&i2c_base->ic_con) & (~IC_CON_SPD_MSK));
  81. switch (i2c_spd) {
  82. #ifndef CONFIG_X86 /* No High-speed for BayTrail yet */
  83. case IC_SPEED_MODE_MAX:
  84. cntl |= IC_CON_SPD_SS;
  85. if (scl_sda_cfg) {
  86. hcnt = scl_sda_cfg->fs_hcnt;
  87. lcnt = scl_sda_cfg->fs_lcnt;
  88. } else {
  89. hcnt = (IC_CLK * MIN_HS_SCL_HIGHTIME) / NANO_TO_MICRO;
  90. lcnt = (IC_CLK * MIN_HS_SCL_LOWTIME) / NANO_TO_MICRO;
  91. }
  92. writel(hcnt, &i2c_base->ic_hs_scl_hcnt);
  93. writel(lcnt, &i2c_base->ic_hs_scl_lcnt);
  94. break;
  95. #endif
  96. case IC_SPEED_MODE_STANDARD:
  97. cntl |= IC_CON_SPD_SS;
  98. if (scl_sda_cfg) {
  99. hcnt = scl_sda_cfg->ss_hcnt;
  100. lcnt = scl_sda_cfg->ss_lcnt;
  101. } else {
  102. hcnt = (IC_CLK * MIN_SS_SCL_HIGHTIME) / NANO_TO_MICRO;
  103. lcnt = (IC_CLK * MIN_SS_SCL_LOWTIME) / NANO_TO_MICRO;
  104. }
  105. writel(hcnt, &i2c_base->ic_ss_scl_hcnt);
  106. writel(lcnt, &i2c_base->ic_ss_scl_lcnt);
  107. break;
  108. case IC_SPEED_MODE_FAST:
  109. default:
  110. cntl |= IC_CON_SPD_FS;
  111. if (scl_sda_cfg) {
  112. hcnt = scl_sda_cfg->fs_hcnt;
  113. lcnt = scl_sda_cfg->fs_lcnt;
  114. } else {
  115. hcnt = (IC_CLK * MIN_FS_SCL_HIGHTIME) / NANO_TO_MICRO;
  116. lcnt = (IC_CLK * MIN_FS_SCL_LOWTIME) / NANO_TO_MICRO;
  117. }
  118. writel(hcnt, &i2c_base->ic_fs_scl_hcnt);
  119. writel(lcnt, &i2c_base->ic_fs_scl_lcnt);
  120. break;
  121. }
  122. writel(cntl, &i2c_base->ic_con);
  123. /* Configure SDA Hold Time if required */
  124. if (scl_sda_cfg)
  125. writel(scl_sda_cfg->sda_hold, &i2c_base->ic_sda_hold);
  126. /* Enable back i2c now speed set */
  127. dw_i2c_enable(i2c_base, true);
  128. return 0;
  129. }
  130. /*
  131. * i2c_setaddress - Sets the target slave address
  132. * @i2c_addr: target i2c address
  133. *
  134. * Sets the target slave address.
  135. */
  136. static void i2c_setaddress(struct i2c_regs *i2c_base, unsigned int i2c_addr)
  137. {
  138. /* Disable i2c */
  139. dw_i2c_enable(i2c_base, false);
  140. writel(i2c_addr, &i2c_base->ic_tar);
  141. /* Enable i2c */
  142. dw_i2c_enable(i2c_base, true);
  143. }
  144. /*
  145. * i2c_flush_rxfifo - Flushes the i2c RX FIFO
  146. *
  147. * Flushes the i2c RX FIFO
  148. */
  149. static void i2c_flush_rxfifo(struct i2c_regs *i2c_base)
  150. {
  151. while (readl(&i2c_base->ic_status) & IC_STATUS_RFNE)
  152. readl(&i2c_base->ic_cmd_data);
  153. }
  154. /*
  155. * i2c_wait_for_bb - Waits for bus busy
  156. *
  157. * Waits for bus busy
  158. */
  159. static int i2c_wait_for_bb(struct i2c_regs *i2c_base)
  160. {
  161. unsigned long start_time_bb = get_timer(0);
  162. while ((readl(&i2c_base->ic_status) & IC_STATUS_MA) ||
  163. !(readl(&i2c_base->ic_status) & IC_STATUS_TFE)) {
  164. /* Evaluate timeout */
  165. if (get_timer(start_time_bb) > (unsigned long)(I2C_BYTE_TO_BB))
  166. return 1;
  167. }
  168. return 0;
  169. }
  170. static int i2c_xfer_init(struct i2c_regs *i2c_base, uchar chip, uint addr,
  171. int alen)
  172. {
  173. if (i2c_wait_for_bb(i2c_base))
  174. return 1;
  175. i2c_setaddress(i2c_base, chip);
  176. while (alen) {
  177. alen--;
  178. /* high byte address going out first */
  179. writel((addr >> (alen * 8)) & 0xff,
  180. &i2c_base->ic_cmd_data);
  181. }
  182. return 0;
  183. }
  184. static int i2c_xfer_finish(struct i2c_regs *i2c_base)
  185. {
  186. ulong start_stop_det = get_timer(0);
  187. while (1) {
  188. if ((readl(&i2c_base->ic_raw_intr_stat) & IC_STOP_DET)) {
  189. readl(&i2c_base->ic_clr_stop_det);
  190. break;
  191. } else if (get_timer(start_stop_det) > I2C_STOPDET_TO) {
  192. break;
  193. }
  194. }
  195. if (i2c_wait_for_bb(i2c_base)) {
  196. printf("Timed out waiting for bus\n");
  197. return 1;
  198. }
  199. i2c_flush_rxfifo(i2c_base);
  200. return 0;
  201. }
  202. /*
  203. * i2c_read - Read from i2c memory
  204. * @chip: target i2c address
  205. * @addr: address to read from
  206. * @alen:
  207. * @buffer: buffer for read data
  208. * @len: no of bytes to be read
  209. *
  210. * Read from i2c memory.
  211. */
  212. static int __dw_i2c_read(struct i2c_regs *i2c_base, u8 dev, uint addr,
  213. int alen, u8 *buffer, int len)
  214. {
  215. unsigned long start_time_rx;
  216. #ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
  217. /*
  218. * EEPROM chips that implement "address overflow" are ones
  219. * like Catalyst 24WC04/08/16 which has 9/10/11 bits of
  220. * address and the extra bits end up in the "chip address"
  221. * bit slots. This makes a 24WC08 (1Kbyte) chip look like
  222. * four 256 byte chips.
  223. *
  224. * Note that we consider the length of the address field to
  225. * still be one byte because the extra address bits are
  226. * hidden in the chip address.
  227. */
  228. dev |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW);
  229. addr &= ~(CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW << (alen * 8));
  230. debug("%s: fix addr_overflow: dev %02x addr %02x\n", __func__, dev,
  231. addr);
  232. #endif
  233. if (i2c_xfer_init(i2c_base, dev, addr, alen))
  234. return 1;
  235. start_time_rx = get_timer(0);
  236. while (len) {
  237. if (len == 1)
  238. writel(IC_CMD | IC_STOP, &i2c_base->ic_cmd_data);
  239. else
  240. writel(IC_CMD, &i2c_base->ic_cmd_data);
  241. if (readl(&i2c_base->ic_status) & IC_STATUS_RFNE) {
  242. *buffer++ = (uchar)readl(&i2c_base->ic_cmd_data);
  243. len--;
  244. start_time_rx = get_timer(0);
  245. } else if (get_timer(start_time_rx) > I2C_BYTE_TO) {
  246. return 1;
  247. }
  248. }
  249. return i2c_xfer_finish(i2c_base);
  250. }
  251. /*
  252. * i2c_write - Write to i2c memory
  253. * @chip: target i2c address
  254. * @addr: address to read from
  255. * @alen:
  256. * @buffer: buffer for read data
  257. * @len: no of bytes to be read
  258. *
  259. * Write to i2c memory.
  260. */
  261. static int __dw_i2c_write(struct i2c_regs *i2c_base, u8 dev, uint addr,
  262. int alen, u8 *buffer, int len)
  263. {
  264. int nb = len;
  265. unsigned long start_time_tx;
  266. #ifdef CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW
  267. /*
  268. * EEPROM chips that implement "address overflow" are ones
  269. * like Catalyst 24WC04/08/16 which has 9/10/11 bits of
  270. * address and the extra bits end up in the "chip address"
  271. * bit slots. This makes a 24WC08 (1Kbyte) chip look like
  272. * four 256 byte chips.
  273. *
  274. * Note that we consider the length of the address field to
  275. * still be one byte because the extra address bits are
  276. * hidden in the chip address.
  277. */
  278. dev |= ((addr >> (alen * 8)) & CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW);
  279. addr &= ~(CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW << (alen * 8));
  280. debug("%s: fix addr_overflow: dev %02x addr %02x\n", __func__, dev,
  281. addr);
  282. #endif
  283. if (i2c_xfer_init(i2c_base, dev, addr, alen))
  284. return 1;
  285. start_time_tx = get_timer(0);
  286. while (len) {
  287. if (readl(&i2c_base->ic_status) & IC_STATUS_TFNF) {
  288. if (--len == 0) {
  289. writel(*buffer | IC_STOP,
  290. &i2c_base->ic_cmd_data);
  291. } else {
  292. writel(*buffer, &i2c_base->ic_cmd_data);
  293. }
  294. buffer++;
  295. start_time_tx = get_timer(0);
  296. } else if (get_timer(start_time_tx) > (nb * I2C_BYTE_TO)) {
  297. printf("Timed out. i2c write Failed\n");
  298. return 1;
  299. }
  300. }
  301. return i2c_xfer_finish(i2c_base);
  302. }
  303. /*
  304. * __dw_i2c_init - Init function
  305. * @speed: required i2c speed
  306. * @slaveaddr: slave address for the device
  307. *
  308. * Initialization function.
  309. */
  310. static void __dw_i2c_init(struct i2c_regs *i2c_base, int speed, int slaveaddr)
  311. {
  312. /* Disable i2c */
  313. dw_i2c_enable(i2c_base, false);
  314. writel((IC_CON_SD | IC_CON_SPD_FS | IC_CON_MM), &i2c_base->ic_con);
  315. writel(IC_RX_TL, &i2c_base->ic_rx_tl);
  316. writel(IC_TX_TL, &i2c_base->ic_tx_tl);
  317. writel(IC_STOP_DET, &i2c_base->ic_intr_mask);
  318. #ifndef CONFIG_DM_I2C
  319. __dw_i2c_set_bus_speed(i2c_base, NULL, speed);
  320. writel(slaveaddr, &i2c_base->ic_sar);
  321. #endif
  322. /* Enable i2c */
  323. dw_i2c_enable(i2c_base, true);
  324. }
  325. #ifndef CONFIG_DM_I2C
  326. /*
  327. * The legacy I2C functions. These need to get removed once
  328. * all users of this driver are converted to DM.
  329. */
  330. static struct i2c_regs *i2c_get_base(struct i2c_adapter *adap)
  331. {
  332. switch (adap->hwadapnr) {
  333. #if CONFIG_SYS_I2C_BUS_MAX >= 4
  334. case 3:
  335. return (struct i2c_regs *)CONFIG_SYS_I2C_BASE3;
  336. #endif
  337. #if CONFIG_SYS_I2C_BUS_MAX >= 3
  338. case 2:
  339. return (struct i2c_regs *)CONFIG_SYS_I2C_BASE2;
  340. #endif
  341. #if CONFIG_SYS_I2C_BUS_MAX >= 2
  342. case 1:
  343. return (struct i2c_regs *)CONFIG_SYS_I2C_BASE1;
  344. #endif
  345. case 0:
  346. return (struct i2c_regs *)CONFIG_SYS_I2C_BASE;
  347. default:
  348. printf("Wrong I2C-adapter number %d\n", adap->hwadapnr);
  349. }
  350. return NULL;
  351. }
  352. static unsigned int dw_i2c_set_bus_speed(struct i2c_adapter *adap,
  353. unsigned int speed)
  354. {
  355. adap->speed = speed;
  356. return __dw_i2c_set_bus_speed(i2c_get_base(adap), NULL, speed);
  357. }
  358. static void dw_i2c_init(struct i2c_adapter *adap, int speed, int slaveaddr)
  359. {
  360. __dw_i2c_init(i2c_get_base(adap), speed, slaveaddr);
  361. }
  362. static int dw_i2c_read(struct i2c_adapter *adap, u8 dev, uint addr,
  363. int alen, u8 *buffer, int len)
  364. {
  365. return __dw_i2c_read(i2c_get_base(adap), dev, addr, alen, buffer, len);
  366. }
  367. static int dw_i2c_write(struct i2c_adapter *adap, u8 dev, uint addr,
  368. int alen, u8 *buffer, int len)
  369. {
  370. return __dw_i2c_write(i2c_get_base(adap), dev, addr, alen, buffer, len);
  371. }
  372. /* dw_i2c_probe - Probe the i2c chip */
  373. static int dw_i2c_probe(struct i2c_adapter *adap, u8 dev)
  374. {
  375. struct i2c_regs *i2c_base = i2c_get_base(adap);
  376. u32 tmp;
  377. int ret;
  378. /*
  379. * Try to read the first location of the chip.
  380. */
  381. ret = __dw_i2c_read(i2c_base, dev, 0, 1, (uchar *)&tmp, 1);
  382. if (ret)
  383. dw_i2c_init(adap, adap->speed, adap->slaveaddr);
  384. return ret;
  385. }
  386. U_BOOT_I2C_ADAP_COMPLETE(dw_0, dw_i2c_init, dw_i2c_probe, dw_i2c_read,
  387. dw_i2c_write, dw_i2c_set_bus_speed,
  388. CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE, 0)
  389. #if CONFIG_SYS_I2C_BUS_MAX >= 2
  390. U_BOOT_I2C_ADAP_COMPLETE(dw_1, dw_i2c_init, dw_i2c_probe, dw_i2c_read,
  391. dw_i2c_write, dw_i2c_set_bus_speed,
  392. CONFIG_SYS_I2C_SPEED1, CONFIG_SYS_I2C_SLAVE1, 1)
  393. #endif
  394. #if CONFIG_SYS_I2C_BUS_MAX >= 3
  395. U_BOOT_I2C_ADAP_COMPLETE(dw_2, dw_i2c_init, dw_i2c_probe, dw_i2c_read,
  396. dw_i2c_write, dw_i2c_set_bus_speed,
  397. CONFIG_SYS_I2C_SPEED2, CONFIG_SYS_I2C_SLAVE2, 2)
  398. #endif
  399. #if CONFIG_SYS_I2C_BUS_MAX >= 4
  400. U_BOOT_I2C_ADAP_COMPLETE(dw_3, dw_i2c_init, dw_i2c_probe, dw_i2c_read,
  401. dw_i2c_write, dw_i2c_set_bus_speed,
  402. CONFIG_SYS_I2C_SPEED3, CONFIG_SYS_I2C_SLAVE3, 3)
  403. #endif
  404. #else /* CONFIG_DM_I2C */
  405. /* The DM I2C functions */
  406. static int designware_i2c_xfer(struct udevice *bus, struct i2c_msg *msg,
  407. int nmsgs)
  408. {
  409. struct dw_i2c *i2c = dev_get_priv(bus);
  410. int ret;
  411. debug("i2c_xfer: %d messages\n", nmsgs);
  412. for (; nmsgs > 0; nmsgs--, msg++) {
  413. debug("i2c_xfer: chip=0x%x, len=0x%x\n", msg->addr, msg->len);
  414. if (msg->flags & I2C_M_RD) {
  415. ret = __dw_i2c_read(i2c->regs, msg->addr, 0, 0,
  416. msg->buf, msg->len);
  417. } else {
  418. ret = __dw_i2c_write(i2c->regs, msg->addr, 0, 0,
  419. msg->buf, msg->len);
  420. }
  421. if (ret) {
  422. debug("i2c_write: error sending\n");
  423. return -EREMOTEIO;
  424. }
  425. }
  426. return 0;
  427. }
  428. static int designware_i2c_set_bus_speed(struct udevice *bus, unsigned int speed)
  429. {
  430. struct dw_i2c *i2c = dev_get_priv(bus);
  431. return __dw_i2c_set_bus_speed(i2c->regs, i2c->scl_sda_cfg, speed);
  432. }
  433. static int designware_i2c_probe_chip(struct udevice *bus, uint chip_addr,
  434. uint chip_flags)
  435. {
  436. struct dw_i2c *i2c = dev_get_priv(bus);
  437. struct i2c_regs *i2c_base = i2c->regs;
  438. u32 tmp;
  439. int ret;
  440. /* Try to read the first location of the chip */
  441. ret = __dw_i2c_read(i2c_base, chip_addr, 0, 1, (uchar *)&tmp, 1);
  442. if (ret)
  443. __dw_i2c_init(i2c_base, 0, 0);
  444. return ret;
  445. }
  446. static int designware_i2c_probe(struct udevice *bus)
  447. {
  448. struct dw_i2c *priv = dev_get_priv(bus);
  449. if (device_is_on_pci_bus(bus)) {
  450. #ifdef CONFIG_DM_PCI
  451. /* Save base address from PCI BAR */
  452. priv->regs = (struct i2c_regs *)
  453. dm_pci_map_bar(bus, PCI_BASE_ADDRESS_0, PCI_REGION_MEM);
  454. #ifdef CONFIG_X86
  455. /* Use BayTrail specific timing values */
  456. priv->scl_sda_cfg = &byt_config;
  457. #endif
  458. #endif
  459. } else {
  460. priv->regs = (struct i2c_regs *)dev_get_addr_ptr(bus);
  461. }
  462. __dw_i2c_init(priv->regs, 0, 0);
  463. return 0;
  464. }
  465. static int designware_i2c_bind(struct udevice *dev)
  466. {
  467. static int num_cards;
  468. char name[20];
  469. /* Create a unique device name for PCI type devices */
  470. if (device_is_on_pci_bus(dev)) {
  471. /*
  472. * ToDo:
  473. * Setting req_seq in the driver is probably not recommended.
  474. * But without a DT alias the number is not configured. And
  475. * using this driver is impossible for PCIe I2C devices.
  476. * This can be removed, once a better (correct) way for this
  477. * is found and implemented.
  478. */
  479. dev->req_seq = num_cards;
  480. sprintf(name, "i2c_designware#%u", num_cards++);
  481. device_set_name(dev, name);
  482. }
  483. return 0;
  484. }
  485. static const struct dm_i2c_ops designware_i2c_ops = {
  486. .xfer = designware_i2c_xfer,
  487. .probe_chip = designware_i2c_probe_chip,
  488. .set_bus_speed = designware_i2c_set_bus_speed,
  489. };
  490. static const struct udevice_id designware_i2c_ids[] = {
  491. { .compatible = "snps,designware-i2c" },
  492. { }
  493. };
  494. U_BOOT_DRIVER(i2c_designware) = {
  495. .name = "i2c_designware",
  496. .id = UCLASS_I2C,
  497. .of_match = designware_i2c_ids,
  498. .bind = designware_i2c_bind,
  499. .probe = designware_i2c_probe,
  500. .priv_auto_alloc_size = sizeof(struct dw_i2c),
  501. .ops = &designware_i2c_ops,
  502. };
  503. #ifdef CONFIG_X86
  504. static struct pci_device_id designware_pci_supported[] = {
  505. /* Intel BayTrail has 7 I2C controller located on the PCI bus */
  506. { PCI_VDEVICE(INTEL, 0x0f41) },
  507. { PCI_VDEVICE(INTEL, 0x0f42) },
  508. { PCI_VDEVICE(INTEL, 0x0f43) },
  509. { PCI_VDEVICE(INTEL, 0x0f44) },
  510. { PCI_VDEVICE(INTEL, 0x0f45) },
  511. { PCI_VDEVICE(INTEL, 0x0f46) },
  512. { PCI_VDEVICE(INTEL, 0x0f47) },
  513. {},
  514. };
  515. U_BOOT_PCI_DEVICE(i2c_designware, designware_pci_supported);
  516. #endif
  517. #endif /* CONFIG_DM_I2C */