[coreboot-gerrit] Change in coreboot[master]: nb/intel/gm45: Add a Kconfig option to add backlight_pwm fil...

Arthur Heymans (Code Review) gerrit at coreboot.org
Mon Apr 3 22:50:04 CEST 2017


Arthur Heymans has uploaded a new change for review. ( https://review.coreboot.org/19091 )

Change subject: nb/intel/gm45: Add a Kconfig option to add backlight_pwm file to CBFS
......................................................................

nb/intel/gm45: Add a Kconfig option to add backlight_pwm file to CBFS

This allow the user to specify an overwrite value off the default
backlight frequency using menuconfig.

Change-Id: I6d2453304328dfbf2cbc114cf9e4192627b22400
Signed-off-by: Arthur Heymans <arthur at aheymans.xyz>
---
M Makefile.inc
M src/northbridge/intel/gm45/Kconfig
2 files changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/91/19091/1

diff --git a/Makefile.inc b/Makefile.inc
index 5ab3524..1b55144 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -891,6 +891,14 @@
 endif
 endif
 endif
+ifneq ($(CONFIG_OVERWRITE_BACKLIGHT_PWM),)
+ifneq ($(CONFIG_OVERWRITE_BACKLIGHT_PWM),0)
+ifneq ($(CONFIG_UPDATE_IMAGE),y)
+	@printf "    Creating a file holding the the backlight pwm frequency\n"
+	$(CBFSTOOL) $@.tmp add-int -i $(CONFIG_OVERWRITE_BACKLIGHT_PWM) -n backlight_pwm
+endif
+endif
+endif
 ifeq ($(CONFIG_CPU_INTEL_FIRMWARE_INTERFACE_TABLE),y)
 ifeq ($(CONFIG_CPU_MICROCODE_CBFS_EXTERNAL_HEADER),y)
 	@printf "    UPDATE-FIT\n"
diff --git a/src/northbridge/intel/gm45/Kconfig b/src/northbridge/intel/gm45/Kconfig
index ea6933d..231b600 100644
--- a/src/northbridge/intel/gm45/Kconfig
+++ b/src/northbridge/intel/gm45/Kconfig
@@ -39,4 +39,7 @@
 	string
 	default "8086,2a42"
 
+config OVERWRITE_BACKLIGHT_PWM
+        int "Overwrite the default backlight frequency"
+
 endif

-- 
To view, visit https://review.coreboot.org/19091
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6d2453304328dfbf2cbc114cf9e4192627b22400
Gerrit-PatchSet: 1
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Owner: Arthur Heymans <arthur at aheymans.xyz>



More information about the coreboot-gerrit mailing list