From 142fdf278bae1092da44e6c5cba89acfed84aef7 Mon Sep 17 00:00:00 2001 From: Tang Qijun Date: Thu, 25 Nov 2021 10:33:13 +0800 Subject: pazquel: change panel blacklight PWM frequency to 20k The noise is related to the LCD panel and brightness PWM. Change the PWM frequency of the panel backlight to 20kHz, the display is normal, and no noise can be heard. BUG=b:207585489 BRANCH=trogdor TEST=No noise can be heard when booting into the operating system, and the screen display is normal. Signed-off-by: Tang Qijun Change-Id: I2ba8f7530743bbd1ee6f462be8f79c621eb3217a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3301560 Commit-Queue: Bob Moragues Tested-by: Bob Moragues Reviewed-by: Wai-Hong Tam Reviewed-by: Alexandru M Stan --- board/pazquel/board.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/board/pazquel/board.c b/board/pazquel/board.c index 366167d7e6..8cab9ee887 100644 --- a/board/pazquel/board.c +++ b/board/pazquel/board.c @@ -218,9 +218,8 @@ const struct adc_t adc_channels[] = { BUILD_ASSERT(ARRAY_SIZE(adc_channels) == ADC_CH_COUNT); const struct pwm_t pwm_channels[] = { - [PWM_CH_KBLIGHT] = { .channel = 3, .flags = 0, .freq = 10000 }, - /* TODO(waihong): Assign a proper frequency. */ - [PWM_CH_DISPLIGHT] = { .channel = 5, .flags = 0, .freq = 4800 }, + [PWM_CH_KBLIGHT] = { .channel = 3, .flags = 0, .freq = 10000 }, + [PWM_CH_DISPLIGHT] = { .channel = 5, .flags = 0, .freq = 20000 }, }; BUILD_ASSERT(ARRAY_SIZE(pwm_channels) == PWM_CH_COUNT); -- cgit v1.2.1