From: Ajay Kumar <ajaykumar.rs@samsung.com> To: kgene.kim@samsung.com, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jg1.han@samsung.com, m.szyprowski@samsung.com Subject: [PATCH RESEND 1/7] video: s3c-fb: Add S5P64X0 specific s3c_fb_driverdata Date: Mon, 25 Jul 2011 16:00:19 -0400 [thread overview] Message-ID: <1311624025-2643-2-git-send-email-ajaykumar.rs@samsung.com> (raw) In-Reply-To: <1311624025-2643-1-git-send-email-ajaykumar.rs@samsung.com> This patch: Adds s3c_fb_driverdata for S5P64X0, which supports 3 windows. Also, register "s5p64x0-fb" type driver_data. Existing s3c_fb_driverdata definitions in s3c-fb.c supports 5 or 2 windows. Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com> acked-by: Jingoo Han <jg1.han@samsung.com> --- drivers/video/s3c-fb.c | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index 4aecf21..0fda252 100644 --- a/drivers/video/s3c-fb.c +++ b/drivers/video/s3c-fb.c @@ -1859,6 +1859,30 @@ static struct s3c_fb_driverdata s3c_fb_data_s3c2443 = { }, }; +static struct s3c_fb_driverdata s3c_fb_data_s5p64x0 = { + .variant = { + .nr_windows = 3, + .vidtcon = VIDTCON0, + .wincon = WINCON(0), + .winmap = WINxMAP(0), + .keycon = WKEYCON, + .osd = VIDOSD_BASE, + .osd_stride = 16, + .buf_start = VIDW_BUF_START(0), + .buf_size = VIDW_BUF_SIZE(0), + .buf_end = VIDW_BUF_END(0), + + .palette = { + [0] = 0x2400, + [1] = 0x2800, + [2] = 0x2c00, + }, + }, + .win[0] = &s3c_fb_data_s5p_wins[0], + .win[1] = &s3c_fb_data_s5p_wins[1], + .win[2] = &s3c_fb_data_s5p_wins[2], +}; + static struct platform_device_id s3c_fb_driver_ids[] = { { .name = "s3c-fb", @@ -1872,6 +1896,9 @@ static struct platform_device_id s3c_fb_driver_ids[] = { }, { .name = "s3c2443-fb", .driver_data = (unsigned long)&s3c_fb_data_s3c2443, + }, { + .name = "s5p64x0-fb", + .driver_data = (unsigned long)&s3c_fb_data_s5p64x0, }, {}, }; -- 1.7.0.4
WARNING: multiple messages have this Message-ID (diff)
From: ajaykumar.rs@samsung.com (Ajay Kumar) To: linux-arm-kernel@lists.infradead.org Subject: [PATCH RESEND 1/7] video: s3c-fb: Add S5P64X0 specific s3c_fb_driverdata Date: Mon, 25 Jul 2011 16:00:19 -0400 [thread overview] Message-ID: <1311624025-2643-2-git-send-email-ajaykumar.rs@samsung.com> (raw) In-Reply-To: <1311624025-2643-1-git-send-email-ajaykumar.rs@samsung.com> This patch: Adds s3c_fb_driverdata for S5P64X0, which supports 3 windows. Also, register "s5p64x0-fb" type driver_data. Existing s3c_fb_driverdata definitions in s3c-fb.c supports 5 or 2 windows. Signed-off-by: Ajay Kumar <ajaykumar.rs@samsung.com> acked-by: Jingoo Han <jg1.han@samsung.com> --- drivers/video/s3c-fb.c | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index 4aecf21..0fda252 100644 --- a/drivers/video/s3c-fb.c +++ b/drivers/video/s3c-fb.c @@ -1859,6 +1859,30 @@ static struct s3c_fb_driverdata s3c_fb_data_s3c2443 = { }, }; +static struct s3c_fb_driverdata s3c_fb_data_s5p64x0 = { + .variant = { + .nr_windows = 3, + .vidtcon = VIDTCON0, + .wincon = WINCON(0), + .winmap = WINxMAP(0), + .keycon = WKEYCON, + .osd = VIDOSD_BASE, + .osd_stride = 16, + .buf_start = VIDW_BUF_START(0), + .buf_size = VIDW_BUF_SIZE(0), + .buf_end = VIDW_BUF_END(0), + + .palette = { + [0] = 0x2400, + [1] = 0x2800, + [2] = 0x2c00, + }, + }, + .win[0] = &s3c_fb_data_s5p_wins[0], + .win[1] = &s3c_fb_data_s5p_wins[1], + .win[2] = &s3c_fb_data_s5p_wins[2], +}; + static struct platform_device_id s3c_fb_driver_ids[] = { { .name = "s3c-fb", @@ -1872,6 +1896,9 @@ static struct platform_device_id s3c_fb_driver_ids[] = { }, { .name = "s3c2443-fb", .driver_data = (unsigned long)&s3c_fb_data_s3c2443, + }, { + .name = "s5p64x0-fb", + .driver_data = (unsigned long)&s3c_fb_data_s5p64x0, }, {}, }; -- 1.7.0.4
next prev parent reply other threads:[~2011-07-25 14:08 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-07-25 20:00 [PATCH V2 0/7] ARM: S5P64X0: Add Framebuffer support Ajay Kumar 2011-07-25 20:00 ` Ajay Kumar 2011-07-25 20:00 ` Ajay Kumar [this message] 2011-07-25 20:00 ` [PATCH RESEND 1/7] video: s3c-fb: Add S5P64X0 specific s3c_fb_driverdata Ajay Kumar 2011-07-25 20:00 ` [PATCH V2 2/7] ARM: S5P64X0: Add register base and IRQ for Framebuffer Ajay Kumar 2011-07-25 20:00 ` Ajay Kumar 2011-07-25 20:00 ` [PATCH RESEND 3/7] ARM: S5P64X0: Set s3c_device_fb name Ajay Kumar 2011-07-25 20:00 ` Ajay Kumar 2011-07-25 20:00 ` [PATCH V2 4/7] ARM: S5P64X0: Add GPIO and SPCON settings for LCD Ajay Kumar 2011-07-25 20:00 ` Ajay Kumar 2011-07-25 20:00 ` [PATCH V2 5/7] ARM: S5P64X0: Add file to hold common Framebuffer and LCD code Ajay Kumar 2011-07-25 20:00 ` Ajay Kumar 2011-07-26 8:00 ` Russell King - ARM Linux 2011-07-26 8:00 ` Russell King - ARM Linux 2011-07-25 20:00 ` [PATCH V2 6/7] ARM: S5P6440: Enable LCD-LTE480 and Framebuffer support Ajay Kumar 2011-07-25 20:00 ` Ajay Kumar 2011-07-25 20:00 ` [PATCH V2 7/7] ARM: S5P6450: " Ajay Kumar 2011-07-25 20:00 ` Ajay Kumar
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=1311624025-2643-2-git-send-email-ajaykumar.rs@samsung.com \ --to=ajaykumar.rs@samsung.com \ --cc=jg1.han@samsung.com \ --cc=kgene.kim@samsung.com \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-samsung-soc@vger.kernel.org \ --cc=m.szyprowski@samsung.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.