Skip to content
Snippets Groups Projects
Commit f95ce352 authored by Tobias Kahlki's avatar Tobias Kahlki
Browse files

touch:wm97xx: Added debug messages

BCS 746-000965
parent 213a4cdb
No related branches found
No related tags found
2 merge requests!455CI: Update gitlab-ci,!197touch:wm9705: Fixed infinite mode on WM9705
......@@ -267,13 +267,16 @@ static void wm9705_phy_init(struct wm97xx *wm)
static void wm9705_dig_enable(struct wm97xx *wm, int enable)
{
if (enable) {
dev_dbg(wm->dev, "Pen digitiser powered up");
wm97xx_reg_write(wm, AC97_WM97XX_DIGITISER2,
wm->dig[2] | WM97XX_PRP_DET_DIG);
wm97xx_reg_read(wm, AC97_WM97XX_DIGITISER_RD); /* dummy read */
} else
} else {
dev_dbg(wm->dev, "Pen digitiser powered down");
wm97xx_reg_write(wm, AC97_WM97XX_DIGITISER2,
wm->dig[2] & ~WM97XX_PRP_DET_DIG);
}
}
static void wm9705_aux_prepare(struct wm97xx *wm)
{
......@@ -284,6 +287,8 @@ static void wm9705_aux_prepare(struct wm97xx *wm)
static void wm9705_dig_restore(struct wm97xx *wm)
{
dev_dbg(wm->dev, "Restore digitiser control words");
wm97xx_reg_write(wm, AC97_WM97XX_DIGITISER1, wm->dig_save[1]);
wm97xx_reg_write(wm, AC97_WM97XX_DIGITISER2, wm->dig_save[2]);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment