mfd: Add WM8350 revision H support
No other software changes are required. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@openedhand.com>
This commit is contained in:
parent
858e674466
commit
0c8a601678
@ -1202,9 +1202,14 @@ int wm8350_device_init(struct wm8350 *wm8350, int irq,
|
|||||||
dev_info(wm8350->dev, "Found Rev G device\n");
|
dev_info(wm8350->dev, "Found Rev G device\n");
|
||||||
wm8350->rev = WM8350_REV_G;
|
wm8350->rev = WM8350_REV_G;
|
||||||
break;
|
break;
|
||||||
|
case WM8350_REV_H:
|
||||||
|
dev_info(wm8350->dev, "Found Rev H device\n");
|
||||||
|
wm8350->rev = WM8350_REV_H;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
/* For safety we refuse to run on unknown hardware */
|
/* For safety we refuse to run on unknown hardware */
|
||||||
dev_info(wm8350->dev, "Found unknown rev\n");
|
dev_info(wm8350->dev, "Found unknown rev %x\n",
|
||||||
|
(id2 & WM8350_CHIP_REV_MASK) >> 12);
|
||||||
ret = -ENODEV;
|
ret = -ENODEV;
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
@ -536,6 +536,7 @@
|
|||||||
#define WM8350_REV_E 0x4
|
#define WM8350_REV_E 0x4
|
||||||
#define WM8350_REV_F 0x5
|
#define WM8350_REV_F 0x5
|
||||||
#define WM8350_REV_G 0x6
|
#define WM8350_REV_G 0x6
|
||||||
|
#define WM8350_REV_H 0x7
|
||||||
|
|
||||||
#define WM8350_NUM_IRQ 63
|
#define WM8350_NUM_IRQ 63
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user