mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-08 05:32:39 +00:00
fix(core): adjust T3W1 display refresh rate
[no changelog]
This commit is contained in:
parent
06a722cc74
commit
64d8c18865
@ -58,7 +58,7 @@ static bool display_pll_init(void) {
|
||||
#elif HSE_VALUE == 16000000
|
||||
PLL3InitPeriph.PLL3.PLL3M = 4;
|
||||
#endif
|
||||
PLL3InitPeriph.PLL3.PLL3N = 125;
|
||||
PLL3InitPeriph.PLL3.PLL3N = ((DSI_LANE_BYTE_FREQ_HZ * 8) / 4000000);
|
||||
PLL3InitPeriph.PLL3.PLL3P = 8;
|
||||
PLL3InitPeriph.PLL3.PLL3Q = 8;
|
||||
PLL3InitPeriph.PLL3.PLL3R = 24;
|
||||
@ -144,11 +144,7 @@ static bool display_dsi_init(display_driver_t *drv) {
|
||||
drv->hlcd_dsi.Init.PHYFrequencyRange = DSI_DPHY_FRANGE_450MHZ_510MHZ;
|
||||
drv->hlcd_dsi.Init.PHYLowPowerOffset = 0;
|
||||
|
||||
#if HSE_VALUE == 32000000
|
||||
PLLInit.PLLNDIV = 62;
|
||||
#elif HSE_VALUE == 16000000
|
||||
PLLInit.PLLNDIV = 125;
|
||||
#endif
|
||||
PLLInit.PLLNDIV = ((DSI_LANE_BYTE_FREQ_HZ * 8 * 2 * 4) / (2 * HSE_VALUE));
|
||||
PLLInit.PLLIDF = 4;
|
||||
PLLInit.PLLODF = 2;
|
||||
PLLInit.PLLVCORange = DSI_DPHY_VCO_FRANGE_800MHZ_1GHZ;
|
||||
|
@ -21,6 +21,8 @@
|
||||
|
||||
#include <trezor_types.h>
|
||||
|
||||
#define DSI_LANE_BYTE_FREQ_HZ 62500000ULL
|
||||
|
||||
#define VSYNC 4
|
||||
#define VBP 4
|
||||
#define VFP 660
|
||||
|
@ -21,13 +21,15 @@
|
||||
|
||||
#include <trezor_types.h>
|
||||
|
||||
#define DSI_LANE_BYTE_FREQ_HZ 56000000ULL
|
||||
|
||||
#define VSYNC 2
|
||||
#define VBP 26
|
||||
#define VFP 16
|
||||
#define VACT 520
|
||||
#define HSYNC 6 // 16
|
||||
#define HBP 2 // 32
|
||||
#define HFP 6 // 26
|
||||
#define HSYNC 6
|
||||
#define HBP 2
|
||||
#define HFP 56
|
||||
#define HACT 480
|
||||
#define LCD_WIDTH 480
|
||||
#define LCD_HEIGHT 520
|
||||
|
@ -19,6 +19,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define DSI_LANE_BYTE_FREQ_HZ 62500000ULL
|
||||
|
||||
#define VSYNC 1
|
||||
#define VBP 12
|
||||
#define VFP 50
|
||||
|
Loading…
Reference in New Issue
Block a user