adv7533.c (664b0bae0b87f69bc9deb098f5e0158b9cf18e04) adv7533.c (63f8f3badf799c8b63ff33a489886bc138ce5d09)
1/*
2 * Copyright (c) 2016, The Linux Foundation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 94 unchanged lines hidden (view full) ---

103void adv7533_dsi_power_off(struct adv7511 *adv)
104{
105 /* disable hdmi */
106 regmap_write(adv->regmap_cec, 0x03, 0x0b);
107 /* disable internal timing generator */
108 regmap_write(adv->regmap_cec, 0x27, 0x0b);
109}
110
1/*
2 * Copyright (c) 2016, The Linux Foundation. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 and
6 * only version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,

--- 94 unchanged lines hidden (view full) ---

103void adv7533_dsi_power_off(struct adv7511 *adv)
104{
105 /* disable hdmi */
106 regmap_write(adv->regmap_cec, 0x03, 0x0b);
107 /* disable internal timing generator */
108 regmap_write(adv->regmap_cec, 0x27, 0x0b);
109}
110
111void adv7533_mode_set(struct adv7511 *adv, struct drm_display_mode *mode)
111void adv7533_mode_set(struct adv7511 *adv, const struct drm_display_mode *mode)
112{
113 struct mipi_dsi_device *dsi = adv->dsi;
114 int lanes, ret;
115
116 if (adv->num_dsi_lanes != 4)
117 return;
118
119 if (mode->clock > 80000)

--- 104 unchanged lines hidden ---
112{
113 struct mipi_dsi_device *dsi = adv->dsi;
114 int lanes, ret;
115
116 if (adv->num_dsi_lanes != 4)
117 return;
118
119 if (mode->clock > 80000)

--- 104 unchanged lines hidden ---