提交 80403b23 编写于 作者: J Julian Scheel 提交者: Tomi Valkeinen

fbdev: ssd1307fb: Fix charge pump setting

Make sure bit 4 is set for the charge pump setting. It is required according
to SSD1306 App Note.
Signed-off-by: NJulian Scheel <julian@jusst.de>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 ad6a2d0f
......@@ -389,7 +389,7 @@ static int ssd1307fb_init(struct ssd1307fb_par *par)
return ret;
ret = ssd1307fb_write_cmd(par->client,
(par->device_info->need_chargepump & 0x1 << 2) & 0x14);
BIT(4) | (par->device_info->need_chargepump ? BIT(2) : 0));
if (ret < 0)
return ret;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册