9
0
Fork 0

Add support for MC13783 to mc13xxx driver

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Alexander Shiyan 2012-04-10 23:44:14 +04:00 committed by Sascha Hauer
parent e77e71d957
commit cacee0da04
1 changed files with 10 additions and 0 deletions

View File

@ -241,6 +241,16 @@ static int mc13xxx_query_revision(struct mc13xxx *mc13xxx)
/* Determine chip type by decode ICID bits */
switch ((rev_id >> 6) & 0x7) {
case 2:
chipname = "MC13783";
rev = (((rev_id & 0x18) >> 3) << 4) | (rev_id & 0x7);
/* Ver 0.2 is actually 3.2a. Report as 3.2 */
if (rev == 0x02) {
rev = 0x32;
revstr = "3.2a";
} else
revstr = asprintf("%d.%d", rev / 0x10, rev % 10);
break;
case 7:
chipname = "MC13892";
for (i = 0; i < ARRAY_SIZE(mc13892_revisions); i++)