diff options
author | GuanXuetao <gxt@mprc.pku.edu.cn> | 2011-02-26 08:29:29 -0500 |
---|---|---|
committer | GuanXuetao <gxt@mprc.pku.edu.cn> | 2011-03-16 21:19:20 -0400 |
commit | d10e4a660d11212a41ac5d2c116a655e25e2d38a (patch) | |
tree | 4c7452a2f41569bd830bacb174c260ba95421520 /drivers/i2c/busses/Kconfig | |
parent | e5abf78b57199a417eb01ff922a5ea6ff9e10b61 (diff) |
unicore32 machine related files: add i2c bus drivers for pkunity-v3 soc
change from original version -- by advice of Jean Delvare
1. remove global variable i2c_reg, replaced by local variables
2. replace ENXIO with ENODEV when no platform resources
3. add adapter->nr assignment before i2c_add_numbered_adapter() call
4. add judgement for i2c_del_adapter() return value
5. release adapter when driver removed
6. add __devexit for puv3_i2c_remove() function
7. modify several names to more appropriated ones
Signed-off-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'drivers/i2c/busses/Kconfig')
-rw-r--r-- | drivers/i2c/busses/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig index 113505a6434e..cbfcf6fb4a61 100644 --- a/drivers/i2c/busses/Kconfig +++ b/drivers/i2c/busses/Kconfig | |||
@@ -523,6 +523,17 @@ config I2C_PNX | |||
523 | This driver can also be built as a module. If so, the module | 523 | This driver can also be built as a module. If so, the module |
524 | will be called i2c-pnx. | 524 | will be called i2c-pnx. |
525 | 525 | ||
526 | config I2C_PUV3 | ||
527 | tristate "PKUnity v3 I2C bus support" | ||
528 | depends on UNICORE32 && ARCH_PUV3 | ||
529 | select I2C_ALGOBIT | ||
530 | help | ||
531 | This driver supports the I2C IP inside the PKUnity-v3 SoC. | ||
532 | This I2C bus controller is under AMBA/AXI bus. | ||
533 | |||
534 | This driver can also be built as a module. If so, the module | ||
535 | will be called i2c-puv3. | ||
536 | |||
526 | config I2C_PXA | 537 | config I2C_PXA |
527 | tristate "Intel PXA2XX I2C adapter" | 538 | tristate "Intel PXA2XX I2C adapter" |
528 | depends on ARCH_PXA || ARCH_MMP | 539 | depends on ARCH_PXA || ARCH_MMP |