Masahiro Yamada | b6036bc | 2015-01-13 12:44:35 +0900 | [diff] [blame] | 1 | config DM_I2C |
| 2 | bool "Enable Driver Model for I2C drivers" |
| 3 | depends on DM |
| 4 | help |
Simon Glass | f94a1be | 2015-02-05 21:41:35 -0700 | [diff] [blame] | 5 | Enable driver model for I2C. This SPI flash interface |
| 6 | (spi_flash_probe(), spi_flash_write(), etc.) is then |
| 7 | implemented by the SPI flash uclass. There is one standard |
| 8 | SPI flash driver which knows how to probe most chips |
| 9 | supported by U-Boot. The uclass interface is defined in |
| 10 | include/spi_flash.h, but is currently fully compatible |
| 11 | with the old interface to avoid confusion and duplication |
| 12 | during the transition parent. SPI and SPI flash must be |
| 13 | enabled together (it is not possible to use driver model |
| 14 | for one and not the other). |
Masahiro Yamada | 26f820f | 2015-01-13 12:44:36 +0900 | [diff] [blame] | 15 | |
Simon Glass | 4bba9d3 | 2015-02-13 12:20:48 -0700 | [diff] [blame] | 16 | config DM_I2C_COMPAT |
| 17 | bool "Enable I2C compatibility layer" |
| 18 | depends on DM |
| 19 | help |
| 20 | Enable old-style I2C functions for compatibility with existing code. |
| 21 | This option can be enabled as a temporary measure to avoid needing |
| 22 | to convert all code for a board in a single commit. It should not |
| 23 | be enabled for any board in an official release. |
| 24 | |
Masahiro Yamada | 26f820f | 2015-01-13 12:44:36 +0900 | [diff] [blame] | 25 | config SYS_I2C_UNIPHIER |
| 26 | bool "UniPhier I2C driver" |
| 27 | depends on ARCH_UNIPHIER && DM_I2C |
| 28 | default y |
| 29 | help |
| 30 | Support for Panasonic UniPhier I2C controller driver. This I2C |
| 31 | controller is used on PH1-LD4, PH1-sLD8 or older UniPhier SoCs. |
Masahiro Yamada | 238bd0b | 2015-01-13 12:44:37 +0900 | [diff] [blame] | 32 | |
| 33 | config SYS_I2C_UNIPHIER_F |
| 34 | bool "UniPhier FIFO-builtin I2C driver" |
| 35 | depends on ARCH_UNIPHIER && DM_I2C |
| 36 | default y |
| 37 | help |
| 38 | Support for Panasonic UniPhier FIFO-builtin I2C controller driver. |
| 39 | This I2C controller is used on PH1-Pro4 or newer UniPhier SoCs. |