summaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-samsung/include/plat/fb.h
diff options
context:
space:
mode:
authorBen Dooks <ben-linux@fluff.org>2010-05-13 14:44:50 +0900
committerBen Dooks <ben-linux@fluff.org>2010-05-18 18:46:27 +0900
commitf077f3fc055b329787783a1ab0efb9a8f8ecc874 (patch)
tree8bce88e7cf179b2be87f8e9cf7a4af83fa295f4c /arch/arm/plat-samsung/include/plat/fb.h
parentdc5d2e8236e2eec461e8c34d302635142e93ab49 (diff)
downloadblackbird-op-linux-f077f3fc055b329787783a1ab0efb9a8f8ecc874.tar.gz
blackbird-op-linux-f077f3fc055b329787783a1ab0efb9a8f8ecc874.zip
ARM: SAMSUNG: Set S3C_FB_MAX_WIN in <plat/fb.h>
Move the S3C_FB_MAX_WIN to the platform data to avoid having to include the registers with the platform data. Set S3C_FB_MAX_WIN to 5, which is the maximum that any of the current hardware can do and the cost of having it set to this for all is minimal (at least for the platform data case), then always leave this as the maximum for the systems supported. Also remove the inclusion of <mach/regs-fb.h> from the device definition in arch/arm/plat-samsung Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/plat-samsung/include/plat/fb.h')
-rw-r--r--arch/arm/plat-samsung/include/plat/fb.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/plat-samsung/include/plat/fb.h b/arch/arm/plat-samsung/include/plat/fb.h
index ffc01a76b7ce..1f85649d8c18 100644
--- a/arch/arm/plat-samsung/include/plat/fb.h
+++ b/arch/arm/plat-samsung/include/plat/fb.h
@@ -15,6 +15,13 @@
#ifndef __PLAT_S3C_FB_H
#define __PLAT_S3C_FB_H __FILE__
+/* S3C_FB_MAX_WIN
+ * Set to the maximum number of windows that any of the supported hardware
+ * can use. Since the platform data uses this for an array size, having it
+ * set to the maximum of any version of the hardware can do is safe.
+ */
+#define S3C_FB_MAX_WIN (5)
+
/**
* struct s3c_fb_pd_win - per window setup data
* @win_mode: The display parameters to initialise (not for window 0)
OpenPOWER on IntegriCloud