setprop persist.vendor.framebuffer.main 1920x1080@60.000000
1280x800@60.000000
persist.vendor.resolution.main
kernel/drivers/gpu/drm/drm_edid.c
kernel/drivers/gpu/drm/rockchip/inno_hdmi.c
kernel/drivers/gpu/drm/rockchip/inno_hdmi.h
kernel/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c
kernel/drivers/video/rockchip/hdmi/rockchip-hdmi.h
kernel/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
kernel/drivers/phy/rockchip/phy-Rockchip-inno-hdmi-phy.c
device/rockchip/rk322x/rk322x_box/system.prop
frameworks/base/services/core/jni/com_android_server_rkdisplay_RkDisplayModes.cpp
hardware/rockchip/hwcomposer/hwcomposer.cpp
// hd->framebuffer_height = 1080;
else {
hd->framebuffer_width = mode.h_display();
hd->framebuffer_height = mode.v_display();
}
// hd->framebuffer_width = 1280;
// hd->framebuffer_height = 800;
hd->framebuffer_width = 1920;
hd->framebuffer_height = 1080;
device/rockchip/common/resolution_white.xml
rk3229-evb-android.dtsi
&hdmi {
status = "okay";
rockchip,defaultmode = <16>;
#sound-dai-cells = <0>;
ddc-i2c-scl-high-time-ns = <9625>;
ddc-i2c-scl-low-time-ns = <10000>;
};
video/rockchip-hdmi.h
#define HDMI_VIDEO_DEFAULT_MODE HDMI_1920X1080P_60HZ
/*HDMI_1920X1080P_60HZ HDMI_1280X800P_60HZ*/
gpu/dw-hdmi.c
static int dw_hdmi_connector_get_modes(struct drm_connector *connector)
{
struct dw_hdmi *hdmi = container_of(connector, struct dw_hdmi,
connector);
struct edid *edid;
struct drm_display_mode *mode;
//const u8 def_modes[6] = {4, 16, 31, 19, 17, 2};
//const u8 def_modes[6] = {108, 16, 4, 19, 17, 2};
const u8 def_modes[18] = {16, 101, 100, 97, 96, 95, 90, 89, 88, 83, 82, 20, 108, 19, 5, 4, 3, 1};
CONFIG_DRM=y
CONFIG_DRM_IGNORE_IOTCL_PERMIT=y
CONFIG_DRM_MIPI_DSI=y
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_KMS_FB_HELPER=y
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_LOAD_EDID_FIRMWARE=y
# CONFIG_DRM_DP_CEC is not set
# CONFIG_DRM_SCDC_HELPER is not set
# CONFIG_DRM_DMA_SYNC is not set
#
# I2C encoder or helper chips
#
# CONFIG_DRM_I2C_ADV7511 is not set
# CONFIG_DRM_I2C_CH7006 is not set
# CONFIG_DRM_I2C_SIL164 is not set
# CONFIG_DRM_I2C_NXP_TDA998X is not set
# CONFIG_DRM_VGEM is not set
CONFIG_DRM_ROCKCHIP=y
CONFIG_ROCKCHIP_DRM_DEBUG=y
CONFIG_ROCKCHIP_DW_HDMI=y
CONFIG_ROCKCHIP_DW_MIPI_DSI=y