mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-27 01:21:33 +00:00
lpc32xx: i2c: finish DM/OF code
Add the of_match/compatible string to the lpc32xx i2c driver so it works correctly with device-tree. Signed-off-by: Trevor Woerner <twoerner@gmail.com>
This commit is contained in:
parent
3f70acdb7d
commit
103f233ebf
1 changed files with 7 additions and 1 deletions
|
@ -348,9 +348,15 @@ static const struct dm_i2c_ops lpc32xx_i2c_ops = {
|
|||
.set_bus_speed = lpc32xx_i2c_set_bus_speed,
|
||||
};
|
||||
|
||||
static const struct udevice_id lpc32xx_i2c_ids[] = {
|
||||
{ .compatible = "nxp,pnx-i2c" },
|
||||
{ }
|
||||
};
|
||||
|
||||
U_BOOT_DRIVER(i2c_lpc32xx) = {
|
||||
.id = UCLASS_I2C,
|
||||
.name = "i2c_lpc32xx",
|
||||
.id = UCLASS_I2C,
|
||||
.of_match = lpc32xx_i2c_ids,
|
||||
.probe = lpc32xx_i2c_probe,
|
||||
.ops = &lpc32xx_i2c_ops,
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue