public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: kgene.kim@samsung.com (Kukjin Kim)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/3] arm: s5pv210: GONI: add support for framebuffer
Date: Wed, 14 Jul 2010 19:26:12 +0900	[thread overview]
Message-ID: <001401cb233e$fe80ceb0$fb826c10$%kim@samsung.com> (raw)
In-Reply-To: <AANLkTinFFwWBQ3ZgjBBDVHrfVUCg3kjVjkHYURn3Jr4m@mail.gmail.com>

Kyungmin Park wrote:
> 
> On Wed, Jul 14, 2010 at 4:30 PM, Marek Szyprowski
> <m.szyprowski@samsung.com> wrote:
> > Hello,
> >
> > On Wednesday, July 14, 2010 8:48 AM Kukjin Kim wrote:
> >
> >> Marek Szyprowski wrote:
> >> >
> >> > This patch adds required platform definitions to enable s3c-fb
> >> > driver on GONI board. One framebuffer window in 480x800x16bpp mode is
> >> > defined.
> >> >
> >> > Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
> >> > Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> >> > ---
> >> > ?arch/arm/mach-s5pv210/Kconfig ? ? | ? ?2 +
> >> > ?arch/arm/mach-s5pv210/mach-goni.c | ? 39
> >> > +++++++++++++++++++++++++++++++++++++
> >> > ?2 files changed, 41 insertions(+), 0 deletions(-)
> >> >
> >> > diff --git a/arch/arm/mach-s5pv210/Kconfig b/arch/arm/mach-
> >> s5pv210/Kconfig
> >> > index 5e88941..8ab4bb0 100644
> >> > --- a/arch/arm/mach-s5pv210/Kconfig
> >> > +++ b/arch/arm/mach-s5pv210/Kconfig
> >> > @@ -59,6 +59,8 @@ config MACH_GONI
> >> > ? ? bool "GONI"
> >> > ? ? select CPU_S5PV210
> >> > ? ? select ARCH_SPARSEMEM_ENABLE
> >> > + ? select S5PV210_SETUP_FB_24BPP
> >> > + ? select S3C_DEV_FB
> >> > ? ? select S5PC110_DEV_ONENAND
> >> > ? ? help
> >> > ? ? ? Machine support for Samsung GONI board
> >> > diff --git a/arch/arm/mach-s5pv210/mach-goni.c
> >> b/arch/arm/mach-s5pv210/mach-
> >> > goni.c
> >> > index 88c38e3..05b4a1a 100644
> >> > --- a/arch/arm/mach-s5pv210/mach-goni.c
> >> > +++ b/arch/arm/mach-s5pv210/mach-goni.c
> >> > @@ -12,6 +12,9 @@
> >> > ?#include <linux/types.h>
> >> > ?#include <linux/init.h>
> >> > ?#include <linux/serial_core.h>
> >> > +#include <linux/fb.h>
> >> > +#include <linux/delay.h>
> >>
> >> need linux/delay.h in here?
> >>
> >> > +#include <linux/clk.h>
> >>
> >> same...need linux/clk.h?
> >>
> >> >
> >> > ?#include <asm/mach/arch.h>
> >> > ?#include <asm/mach/map.h>
> >> > @@ -20,11 +23,15 @@
> >> >
> >> > ?#include <mach/map.h>
> >> > ?#include <mach/regs-clock.h>
> >> > +#include <mach/regs-fb.h>
> >> > +#include <mach/gpio.h>
> >>
> >> linux/gpio.h
> >
> > Ok.
> >
> >> >
> >> > +#include <plat/gpio-cfg.h>
> >> > ?#include <plat/regs-serial.h>
> >> > ?#include <plat/s5pv210.h>
> >> > ?#include <plat/devs.h>
> >> > ?#include <plat/cpu.h>
> >> > +#include <plat/fb.h>
> >> >
> >> > ?/* Following are default values for UCON, ULCON and UFCON UART
> registers
> >> */
> >> > ?#define S5PV210_UCON_DEFAULT ? ? ? (S3C2410_UCON_TXILEVEL
> | ? ? ? ?\
> >> > @@ -73,7 +80,35 @@ static struct s3c2410_uartcfg goni_uartcfgs[]
> >> __initdata = {
> >> > ? ? },
> >> > ?};
> >> >
> >> > +/* Frame Buffer */
> >>
> >> No need this comment because we know _fb_ means frame buffer...
> >
> > Comments in the source code are imho always welcome. As you know
mach-*.c
> files
> > grows to very large sizes and it is much easier to read them if all
definitions
> > and items are grouped and commented with a header on top of them (with
such
> > comments you easily can notice where one group starts and ends without
> reading
> > the code).
> >
> >> > +static struct s3c_fb_pd_win goni_fb_win0 = {
> >>
> >> How about to use goni_fb_win[] array so that can be extended easily...
> >
> > I've just followed the style used in the other mach-*.c files. No
problem to
> > change it.
> >
> >>
> >> > + ? .win_mode = {
> >> > + ? ? ? ? ? .pixclock = 1000000000000ULL /
> >> > ((16+16+2+480)*(28+3+2+800)*55),
> 
> Marugu(?) send the patch remove pixclock at fb mailing list. So If

Yeah, I saw Maurus' patch, [PATCH v2] s3c-fb: Automatically calculate pixel
clock when none is given.

> >> > + ? ? ? ? ? .left_margin = 16,
> >> > + ? ? ? ? ? .right_margin = 16,
> >> > + ? ? ? ? ? .upper_margin = 3,
> >> > + ? ? ? ? ? .lower_margin = 28,
> >> > + ? ? ? ? ? .hsync_len = 2,
> >> > + ? ? ? ? ? .vsync_len = 2,
> >> > + ? ? ? ? ? .xres = 480,
> >> > + ? ? ? ? ? .yres = 800,
> >> > + ? ? ? ? ? .refresh = 55,
> >> > + ? },
> >> > + ? .max_bpp = 32,
> >> > + ? .default_bpp = 16,
> >>
> >> If possible, please keep the align like below...for easily reading...
> >> But...it depends on your taste...:-)
> >
> > Ok, no problem with this.
> >
> >>
> >> + ? ? .win_mode = {
> >> + ? ? ? ? ? ? .pixclock ? ? ? = 1000000000000ULL /
> >> ((16+16+2+480)*(28+3+2+800)*55),
> 
> Maurus send the patch remove pixclock calculation so I hope his patch
> merge and we just remove it at here.

But as far as I know, not applied yet.
So I think, need .pixclock member now..and maybe can be removed later.

> 
> Thank you,
> Kyungmin Park

(snip)

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

  reply	other threads:[~2010-07-14 10:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-05  9:16 [PATCH v2] Samsung Aquila & GONI update Marek Szyprowski
2010-07-05  9:16 ` [PATCH 1/3] arm: s5pv210: GONI: add support for framebuffer Marek Szyprowski
2010-07-14  6:47   ` Kukjin Kim
2010-07-14  7:30     ` Marek Szyprowski
2010-07-14  7:39       ` Kyungmin Park
2010-07-14 10:26         ` Kukjin Kim [this message]
2010-07-05  9:16 ` [PATCH 2/3] arm: s5pv210: Aquila: add support for MAX8998 PMIC Marek Szyprowski
2010-07-14  4:56   ` Kukjin Kim
2010-07-14  7:30     ` Marek Szyprowski
2010-07-05  9:16 ` [PATCH 3/3] arm: s5pv210: GONI: " Marek Szyprowski
2010-07-14  5:06   ` Kukjin Kim
  -- strict thread matches above, loose matches on Subject: below --
2010-07-14  8:16 [PATCH v3] Samsung Aquila & GONI update Marek Szyprowski
2010-07-14  8:16 ` [PATCH 1/3] ARM: S5PV210: GONI: add support for framebuffer Marek Szyprowski
2010-07-14 10:36   ` Kukjin Kim
2010-07-01  6:07 [PATCH] Samsung Aquila & GONI update Marek Szyprowski
2010-07-01  6:07 ` [PATCH 1/3] arm: s5pv210: GONI: add support for framebuffer Marek Szyprowski

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='001401cb233e$fe80ceb0$fb826c10$%kim@samsung.com' \
    --to=kgene.kim@samsung.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox