All of lore.kernel.org
 help / color / mirror / Atom feed
From: Archit Taneja <archit-l0cyMroinI0@public.gmane.org>
To: Rob Clark <robdclark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>,
	linux-omap <linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"Valkeinen, Tomi" <tomi.valkeinen-l0cyMroinI0@public.gmane.org>,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Andy Gross <andygro-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	DRI Development
	<dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: [PATCH 3/4] drm: omap: Enable DT support for DMM
Date: Mon, 16 Sep 2013 11:58:19 +0530	[thread overview]
Message-ID: <5236A503.90507@ti.com> (raw)
In-Reply-To: <CAF6AEGu7eRFhrQZUD-43AOHNQtRWeyxYga1dnir=qUo1mQ9ebA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Friday 13 September 2013 07:44 PM, Rob Clark wrote:
> On Fri, Sep 13, 2013 at 5:14 AM, Archit Taneja <archit-l0cyMroinI0@public.gmane.org> wrote:
>> Enable use of DT for DMM/Tiler.
>>
>> Originally worked on by Andy Gross.
>
> looks good.. but do we want to get information about # of LUT's, etc,
> from DT?  Or did we decide that we can reliably get this from the hw?
> I lost track of that discussion (I guess Andy would remember)..

I am not aware of the discussion either. But looks like we get the LUT 
info from the HW registers in omap_dmm_probe:

         hwinfo = readl(omap_dmm->base + DMM_PAT_HWINFO);
         omap_dmm->num_engines = (hwinfo >> 24) & 0x1F;
         omap_dmm->num_lut = (hwinfo >> 16) & 0x1F;
         omap_dmm->container_width = 256;
         omap_dmm->container_height = 128;

         atomic_set(&omap_dmm->engine_counter, omap_dmm->num_engines);

         /* read out actual LUT width and height */
         pat_geom = readl(omap_dmm->base + DMM_PAT_GEOMETRY);
         omap_dmm->lut_width = ((pat_geom >> 16) & 0xF) << 5;
         omap_dmm->lut_height = ((pat_geom >> 24) & 0xF) << 5;

         /* increment LUT by one if on OMAP5 */
         /* LUT has twice the height, and is split into a separate 
container */
         if (omap_dmm->lut_height != omap_dmm->container_height)
                 omap_dmm->num_lut++;


Archit
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2013-09-16  6:28 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-13  9:14 [PATCH 0/4] arm: omap: DMM DT adaptation Archit Taneja
2013-09-13  9:14 ` [PATCH 1/4] arm: omap: display: Create omapdrm inside omap_display_init Archit Taneja
     [not found]   ` <1379063679-4869-2-git-send-email-archit-l0cyMroinI0@public.gmane.org>
2013-09-13  9:24     ` Tomi Valkeinen
2013-09-13  9:38       ` Archit Taneja
     [not found]         ` <5232DCFE.5050700-l0cyMroinI0@public.gmane.org>
2013-09-13  9:39           ` Archit Taneja
     [not found]             ` <5232DD53.3010706-l0cyMroinI0@public.gmane.org>
2013-09-13  9:48               ` Tomi Valkeinen
     [not found]                 ` <5232DF61.6000109-l0cyMroinI0@public.gmane.org>
2013-09-13  9:51                   ` Archit Taneja
2013-09-13 10:02                     ` Tomi Valkeinen
2013-09-13 10:17                       ` Archit Taneja
2013-09-13 10:24                         ` Tomi Valkeinen
     [not found]                           ` <5232E7E2.7050606-l0cyMroinI0@public.gmane.org>
2013-09-13 10:32                             ` Archit Taneja
2013-09-13  9:42           ` Tomi Valkeinen
     [not found] ` <1379063679-4869-1-git-send-email-archit-l0cyMroinI0@public.gmane.org>
2013-09-13  9:14   ` [PATCH 2/4] ARM: dts: OMAP4+: Add DMM bindings Archit Taneja
2013-09-13  9:14   ` [PATCH 3/4] drm: omap: Enable DT support for DMM Archit Taneja
     [not found]     ` <1379063679-4869-4-git-send-email-archit-l0cyMroinI0@public.gmane.org>
2013-09-13 14:14       ` Rob Clark
     [not found]         ` <CAF6AEGu7eRFhrQZUD-43AOHNQtRWeyxYga1dnir=qUo1mQ9ebA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-09-16  6:28           ` Archit Taneja [this message]
     [not found]             ` <5236A503.90507-l0cyMroinI0@public.gmane.org>
2013-09-16 11:56               ` Rob Clark
2013-09-13  9:14   ` [PATCH 4/4] arm: omap: display: Don't build device " Archit Taneja
     [not found]     ` <1379063679-4869-5-git-send-email-archit-l0cyMroinI0@public.gmane.org>
2013-09-13  9:29       ` Tomi Valkeinen
2013-09-16  9:30   ` [PATCH v2 0/2] DMM DT adaptation Archit Taneja
2013-09-16  9:30     ` [PATCH v2 1/2] arm: dts: omap4+: Add DMM bindings Archit Taneja
2013-09-16 11:19       ` Tomi Valkeinen
     [not found]         ` <5236E940.9070503-l0cyMroinI0@public.gmane.org>
2013-09-16 12:25           ` Archit Taneja
2013-09-16  9:30     ` [PATCH v2 2/2] drm: omap: Enable DT support for DMM Archit Taneja
     [not found]     ` <1379323815-14130-1-git-send-email-archit-l0cyMroinI0@public.gmane.org>
2013-09-16 11:30       ` [PATCH v2 0/2] DMM DT adaptation Tomi Valkeinen
2013-10-10  6:36 ` [PATCH v3 " Archit Taneja
2013-10-10  6:36   ` [PATCH v3 1/2] arm: dts: omap4+: Add DMM bindings Archit Taneja
2013-10-10 10:08     ` Mark Rutland
2013-10-10 10:36       ` Archit Taneja
2013-10-10  6:36   ` [PATCH v3 2/2] drm: omap: Enable DT support for DMM Archit Taneja
2013-10-15  7:04 ` [PATCH v4 0/2] DMM DT adaptation Archit Taneja
2013-10-15  7:04   ` [PATCH v4 1/2] arm: dts: omap4+: Add DMM bindings Archit Taneja
2014-03-11  7:15     ` Tomi Valkeinen
2014-03-11  8:14       ` Archit Taneja
2013-10-15  7:04   ` [PATCH v4 2/2] drm: omap: Enable DT support for DMM Archit Taneja
2013-11-01  0:40     ` Mark Rutland
2013-11-05  5:50       ` Archit Taneja
2013-12-17 10:02 ` [PATCH v5 0/2] DMM DT adaptation Archit Taneja
2013-12-17 10:02   ` [PATCH v5 1/2] arm: dts: omap4+: Add DMM bindings Archit Taneja
2014-03-02 19:53     ` Benoit Cousson
2013-12-17 10:02   ` [PATCH v5 2/2] drm: omap: Enable DT support for DMM Archit Taneja
2014-01-03 12:34   ` [PATCH v5 0/2] DMM DT adaptation Archit Taneja
2014-01-17  7:32     ` Archit Taneja

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=5236A503.90507@ti.com \
    --to=archit-l0cymroini0@public.gmane.org \
    --cc=andygro-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=robdclark-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=tomi.valkeinen-l0cyMroinI0@public.gmane.org \
    --cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.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 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.