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:
Tom Rini 2022-05-10 09:52:00 -04:00
commit b4eb577663
4 changed files with 7 additions and 2 deletions

View 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"

View File

@ -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));
/* 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) {
debug("%s: Only one or two messages are supported\n", __func__);

View File

@ -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
* actucal data) or one message (just data)
* actual data) or one message (just data)
*/
if (nmsgs > 2 || nmsgs == 0) {
debug("%s: Only one or two messages are supported", __func__);

View File

@ -283,6 +283,7 @@ static int atsha204a_of_to_plat(struct udevice *dev)
}
static const struct udevice_id atsha204a_ids[] = {
{ .compatible = "atmel,atsha204" },
{ .compatible = "atmel,atsha204a" },
{ }
};