#define to_dp(nm) container_of(nm, struct rockchip_dp_device, nm)
-struct analogix_dp_data {
+struct rockchip_dp_chip_data {
u32 lcdsel_grf_reg;
u32 lcdsel_big;
u32 lcdsel_lit;
struct regmap *grf;
struct reset_control *rst;
- const struct analogix_dp_data *data;
+ const struct rockchip_dp_chip_data *data;
+
struct analogix_dp_plat_data plat_data;
};
void *data)
{
struct rockchip_dp_device *dp = dev_get_drvdata(dev);
- const struct analogix_dp_data *dp_data;
+ const struct rockchip_dp_chip_data *dp_data;
struct drm_device *drm_dev = data;
int ret;
SET_SYSTEM_SLEEP_PM_OPS(rockchip_dp_suspend, rockchip_dp_resume)
};
-static const struct analogix_dp_data rk3399_edp = {
+static const struct rockchip_dp_chip_data rk3399_edp = {
.lcdsel_grf_reg = 0x6250,
.lcdsel_big = 0,
.lcdsel_lit = BIT(5),
.lcdsel_mask = BIT(21),
};
-static const struct analogix_dp_data rk3288_dp = {
+static const struct rockchip_dp_chip_data rk3288_dp = {
.lcdsel_grf_reg = 0x025c,
.lcdsel_big = 0,
.lcdsel_lit = BIT(5),