Commit f077f3fc authored by Ben Dooks's avatar Ben Dooks

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: default avatarBen Dooks <ben-linux@fluff.org>
parent dc5d2e82
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <mach/irqs.h> #include <mach/irqs.h>
#include <mach/map.h> #include <mach/map.h>
#include <mach/regs-fb.h>
#include <plat/fb.h> #include <plat/fb.h>
#include <plat/devs.h> #include <plat/devs.h>
......
...@@ -15,6 +15,13 @@ ...@@ -15,6 +15,13 @@
#ifndef __PLAT_S3C_FB_H #ifndef __PLAT_S3C_FB_H
#define __PLAT_S3C_FB_H __FILE__ #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 * struct s3c_fb_pd_win - per window setup data
* @win_mode: The display parameters to initialise (not for window 0) * @win_mode: The display parameters to initialise (not for window 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment