summaryrefslogtreecommitdiff
path: root/arch/arm/plat-samsung
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2012-01-27 09:47:22 +0400
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2012-01-29 00:58:09 +0400
commitf7f31e505aa79d91b979a38789b1608744361bdc (patch)
tree27dba9088af5473eeefeb2f40b75a64b1ac855da /arch/arm/plat-samsung
parent05e52b4bfba0d1fa4195abbc4ac29c24033c8e96 (diff)
downloadlinux-f7f31e505aa79d91b979a38789b1608744361bdc.tar.xz
video: s3c-fb: add alpha value width setting
This patch adds alpha value width setting according to transparency value of each window format, using BLENDCON register. When alpha value is 8 bits, BLENDCON will set alpha value width as 8 bits. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Diffstat (limited to 'arch/arm/plat-samsung')
-rw-r--r--arch/arm/plat-samsung/include/plat/regs-fb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/include/plat/regs-fb.h b/arch/arm/plat-samsung/include/plat/regs-fb.h
index 8f39aa5b26ea..6bf68ed01963 100644
--- a/arch/arm/plat-samsung/include/plat/regs-fb.h
+++ b/arch/arm/plat-samsung/include/plat/regs-fb.h
@@ -384,3 +384,9 @@
#define WPALCON_W0PAL_16BPP_A555 (0x5 << 0)
#define WPALCON_W0PAL_16BPP_565 (0x6 << 0)
+/* Blending equation control */
+#define BLENDCON (0x260)
+#define BLENDCON_NEW_MASK (1 << 0)
+#define BLENDCON_NEW_8BIT_ALPHA_VALUE (1 << 0)
+#define BLENDCON_NEW_4BIT_ALPHA_VALUE (0 << 0)
+