mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 14:41:26 +01:00
Merge tag 'i2c-2022-07' of https://source.denx.de/u-boot/custodians/u-boot-i2c
i2c changes for 2022.07 - i2c: ihs: intel: Fix typo in comments Patch from Michal - misc: atsha204a: Add support for atsha204 chip from Pali
This commit is contained in:
commit
b4eb577663
4
doc/device-tree-bindings/misc/atsha204.txt
Normal file
4
doc/device-tree-bindings/misc/atsha204.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
Atmel ATSHA204 and ATSHA204A i2c h/w symmetric crypto module
|
||||||
|
|
||||||
|
Required properties:
|
||||||
|
- compatible : should be "atmel,atsha204" or "atmel,atsha204a"
|
||||||
@ -195,7 +195,7 @@ static int ihs_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs)
|
|||||||
memset(&dummy, 0, sizeof(struct i2c_msg));
|
memset(&dummy, 0, sizeof(struct i2c_msg));
|
||||||
|
|
||||||
/* We expect either two messages (one with an offset and one with the
|
/* We expect either two messages (one with an offset and one with the
|
||||||
* actucal data) or one message (just data)
|
* actual data) or one message (just data)
|
||||||
*/
|
*/
|
||||||
if (nmsgs > 2 || nmsgs == 0) {
|
if (nmsgs > 2 || nmsgs == 0) {
|
||||||
debug("%s: Only one or two messages are supported\n", __func__);
|
debug("%s: Only one or two messages are supported\n", __func__);
|
||||||
|
|||||||
@ -213,7 +213,7 @@ static int intel_i2c_xfer(struct udevice *bus, struct i2c_msg *msg, int nmsgs)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* We expect either two messages (one with an offset and one with the
|
* We expect either two messages (one with an offset and one with the
|
||||||
* actucal data) or one message (just data)
|
* actual data) or one message (just data)
|
||||||
*/
|
*/
|
||||||
if (nmsgs > 2 || nmsgs == 0) {
|
if (nmsgs > 2 || nmsgs == 0) {
|
||||||
debug("%s: Only one or two messages are supported", __func__);
|
debug("%s: Only one or two messages are supported", __func__);
|
||||||
|
|||||||
@ -283,6 +283,7 @@ static int atsha204a_of_to_plat(struct udevice *dev)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const struct udevice_id atsha204a_ids[] = {
|
static const struct udevice_id atsha204a_ids[] = {
|
||||||
|
{ .compatible = "atmel,atsha204" },
|
||||||
{ .compatible = "atmel,atsha204a" },
|
{ .compatible = "atmel,atsha204a" },
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user