From: Chanho Park <chanho61.park@samsusng.com>
To: 'Sachin Kamat' <sachin.kamat@linaro.org>,
'Chanho Park' <chanho61.park@samsung.com>
Cc: inki.dae@samsung.com, kgene.kim@samsung.com,
dri-devel@lists.freedesktop.org, kyungmin.park@samsung.com,
mark.rutland@arm.com, l.stach@pengutronix.de,
s.nawrocki@samsung.com, tomasz.figa@gmail.com,
linux-samsung-soc@vger.kernel.org,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org
Subject: RE: [PATCHv2 1/5] drm/exynos: add device tree support for rotator
Date: Fri, 09 Aug 2013 19:29:50 +0900 [thread overview]
Message-ID: <011101ce94eb$612ae6b0$2380b410$@samsusng.com> (raw)
In-Reply-To: <CAK9yfHwrE8pnc=jF+7=wuqyemmZFMi5WX+giXYizbP_yy34Wfw@mail.gmail.com>
Hi Sachin,
> -----Original Message-----
> From: Sachin Kamat [mailto:sachin.kamat@linaro.org]
> Sent: Friday, August 09, 2013 6:49 PM
> To: Chanho Park
> Cc: inki.dae@samsung.com; kgene.kim@samsung.com; dri-
> devel@lists.freedesktop.org; kyungmin.park@samsung.com;
> mark.rutland@arm.com; l.stach@pengutronix.de; s.nawrocki@samsung.com;
> tomasz.figa@gmail.com; linux-samsung-soc@vger.kernel.org; linux-arm-
> kernel@lists.infradead.org; devicetree@vger.kernel.org
> Subject: Re: [PATCHv2 1/5] drm/exynos: add device tree support for
> rotator
>
> Hi Chanho,
>
> On 9 August 2013 13:10, Chanho Park <chanho61.park@samsung.com> wrote:
> > The exynos4 platform is only dt-based since 3.10, we should convert
> > driver data and ids to dt-based parsing methods. The rotator driver
> > has a limit table to get size limit of input picture. Each SoCs has
> > slightly different limit value compared with any others.
> > For example, exynos4210's max_size of RGB888 is 16k x 16k. But, others
> > have 8k x 8k. Another example the exynos5250 should have multiple of 2
> > pixel size for its X/Y axis. Thus, we should keep different tables for
> each of them.
> >
> > Signed-off-by: Chanho Park <chanho61.park@samsung.com>
> > Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> > ---
> > drivers/gpu/drm/exynos/exynos_drm_rotator.c | 109
> > ++++++++++++++++++++-------
> > 1 file changed, 81 insertions(+), 28 deletions(-)
> [snip]
> > +
> > +static const struct of_device_id exynos_rotator_match[] = {
> > + {
> > + .compatible = "samsung,exynos4210-rotator",
> > + .data = &rot_limit_tbl_4210,
> > + },
> > + {
> > + .compatible = "samsung,exynos4212-rotator",
> > + .data = &rot_limit_tbl_4x12,
> > + },
> > + {
> > + .compatible = "samsung,exynos5250-rotator",
> > + .data = &rot_limit_tbl_5250,
> > + },
> > + {},
> > +};
> > +
> > static int rotator_probe(struct platform_device *pdev) {
> > struct device *dev = &pdev->dev; @@ -645,8 +712,19 @@ static
> > int rotator_probe(struct platform_device *pdev)
> > return -ENOMEM;
> > }
> >
> > - rot->limit_tbl = (struct rot_limit_table *)
> > -
platform_get_device_id(pdev)->driver_data;
> > + if (dev->of_node) {
> > + const struct of_device_id *match;
> > + match =
> > + of_match_node(of_match_ptr(exynos_rotator_match),
>
> of_match_ptr is not needed since exynos_rotator_match is always compiled
> in.
OK. I'll remove it.
Thanks.
>
> [snip]
> > -static struct platform_device_id rotator_driver_ids[] = {
> > - {
> > - .name = "exynos-rot",
> > - .driver_data = (unsigned long)&rot_limit_tbl,
> > - },
> > - {},
> > -};
> > -
> > static int rotator_clk_crtl(struct rot_context *rot, bool enable) {
> > if (enable) {
> > @@ -804,10 +857,10 @@ static const struct dev_pm_ops rotator_pm_ops =
> > { struct platform_driver rotator_driver = {
> > .probe = rotator_probe,
> > .remove = rotator_remove,
> > - .id_table = rotator_driver_ids,
> > .driver = {
> > .name = "exynos-rot",
> > .owner = THIS_MODULE,
> > .pm = &rotator_pm_ops,
> > + .of_match_table = of_match_ptr(exynos_rotator_match),
>
> ditto
>
> --
> With warm regards,
> Sachin
next prev parent reply other threads:[~2013-08-09 10:29 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-09 7:40 [PATCHv2 0/5] device tree support for exynos rotator Chanho Park
2013-08-09 7:40 ` [PATCHv2 1/5] drm/exynos: add device tree support for rotator Chanho Park
2013-08-09 9:48 ` Sachin Kamat
2013-08-09 10:29 ` Chanho Park [this message]
2013-08-09 12:50 ` Tomasz Figa
2013-08-12 2:48 ` Chanho Park
2013-08-09 7:40 ` [PATCHv2 2/5] ARM: dts: Add rotator node for exynos4210 Chanho Park
2013-08-09 12:56 ` Tomasz Figa
2013-08-12 2:51 ` Chanho Park
2013-08-09 7:40 ` [PATCHv2 3/5] ARM: dts: Add rotator node for exynos4x12 Chanho Park
2013-08-09 7:40 ` [PATCHv2 4/5] ARM: dts: Add rotator node for exynos5250 Chanho Park
2013-08-09 7:40 ` [PATCHv2 5/5] ARM: dts: Add dt binding documentation for exynos rotator Chanho Park
2013-08-09 9:40 ` Sachin Kamat
2013-08-09 10:22 ` Chanho Park
2013-08-09 13:15 ` Tomasz Figa
2013-08-09 16:38 ` Stephen Warren
2013-08-09 17:05 ` Tomasz Figa
2013-08-12 2:58 ` Chanho Park
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='011101ce94eb$612ae6b0$2380b410$@samsusng.com' \
--to=chanho61.park@samsusng.com \
--cc=chanho61.park@samsung.com \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=inki.dae@samsung.com \
--cc=kgene.kim@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=l.stach@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=s.nawrocki@samsung.com \
--cc=sachin.kamat@linaro.org \
--cc=tomasz.figa@gmail.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: 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