* [U-Boot] lcd-console / display rotation
@ 2015-03-02 10:12 Hannes Petermaier
2015-03-02 21:42 ` Simon Glass
2015-03-02 22:04 ` Anatolij Gustschin
0 siblings, 2 replies; 5+ messages in thread
From: Hannes Petermaier @ 2015-03-02 10:12 UTC (permalink / raw)
To: u-boot
Hello everybody,
A short question about lcd-console:
Today u-boot only supports a 'linear framebuffer', meaning the next pixel
of a character is allways right after left and the framebuffer address is
incrementing.
We call this the display is mounted with 0? rotation.
In some cases we have a rotated display.
Maybe rotated by 90? to have portrait mode or even 180? due to mechanical
issues.
My question is:
Is anybody currently working around this, having rotated display ?
If not so, i would like start a implementation.
180? is quite easy, we only need to add some offset (total len of
framebuffer) to our framebuffer base address and do -- instead ++ for
drawing characters. Font can be reused.
In the other cases, 90? and 270? it will maybe a bit tricky. I think a
?rotated font? is also necessary.
Of course we have to think about the other functions like scroll up/down.
best regards,
hannes
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] lcd-console / display rotation
2015-03-02 10:12 [U-Boot] lcd-console / display rotation Hannes Petermaier
@ 2015-03-02 21:42 ` Simon Glass
2015-03-03 10:31 ` Hannes Petermaier
2015-03-02 22:04 ` Anatolij Gustschin
1 sibling, 1 reply; 5+ messages in thread
From: Simon Glass @ 2015-03-02 21:42 UTC (permalink / raw)
To: u-boot
+Anatolij, Nikita
Hi,
On 2 March 2015 at 03:12, Hannes Petermaier
<Hannes.Petermaier@br-automation.com> wrote:
> Hello everybody,
>
> A short question about lcd-console:
>
> Today u-boot only supports a 'linear framebuffer', meaning the next pixel
> of a character is allways right after left and the framebuffer address is
> incrementing.
> We call this the display is mounted with 0? rotation.
>
> In some cases we have a rotated display.
> Maybe rotated by 90? to have portrait mode or even 180? due to mechanical
> issues.
>
> My question is:
> Is anybody currently working around this, having rotated display ?
> If not so, i would like start a implementation.
>
> 180? is quite easy, we only need to add some offset (total len of
> framebuffer) to our framebuffer base address and do -- instead ++ for
> drawing characters. Font can be reused.
>
> In the other cases, 90? and 270? it will maybe a bit tricky. I think a
> ?rotated font? is also necessary.
>
> Of course we have to think about the other functions like scroll up/down.
I don't know of anything, but it sounds useful.
Also I wonder if some hardware has support for this?
Nikita (on CC) is tidying up this part of U-Boot so get in touch with him.
Regards,
Simon
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] lcd-console / display rotation
2015-03-02 10:12 [U-Boot] lcd-console / display rotation Hannes Petermaier
2015-03-02 21:42 ` Simon Glass
@ 2015-03-02 22:04 ` Anatolij Gustschin
1 sibling, 0 replies; 5+ messages in thread
From: Anatolij Gustschin @ 2015-03-02 22:04 UTC (permalink / raw)
To: u-boot
Hi,
On Mon, 2 Mar 2015 11:12:23 +0100
Hannes Petermaier <Hannes.Petermaier@br-automation.com> wrote:
> Hello everybody,
>
> A short question about lcd-console:
>
> Today u-boot only supports a 'linear framebuffer', meaning the next pixel
> of a character is allways right after left and the framebuffer address is
> incrementing.
> We call this the display is mounted with 0? rotation.
>
> In some cases we have a rotated display.
> Maybe rotated by 90? to have portrait mode or even 180? due to mechanical
> issues.
>
> My question is:
> Is anybody currently working around this, having rotated display ?
not that I am aware of.
Best regards,
Anatolij
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] lcd-console / display rotation
2015-03-02 21:42 ` Simon Glass
@ 2015-03-03 10:31 ` Hannes Petermaier
2015-03-04 11:58 ` Nikita Kiryanov
0 siblings, 1 reply; 5+ messages in thread
From: Hannes Petermaier @ 2015-03-03 10:31 UTC (permalink / raw)
To: u-boot
>
> +Anatolij, Nikita
>
> Hi,
Hi,
many thanks for response.
>
> On 2 March 2015 at 03:12, Hannes Petermaier
> <Hannes.Petermaier@br-automation.com> wrote:
> > Hello everybody,
> >
> > A short question about lcd-console:
> >
> > Today u-boot only supports a 'linear framebuffer', meaning the next
pixel
> > of a character is allways right after left and the framebuffer address
is
> > incrementing.
> > We call this the display is mounted with 0? rotation.
> >
> > In some cases we have a rotated display.
> > Maybe rotated by 90? to have portrait mode or even 180? due to
mechanical
> > issues.
> >
> > My question is:
> > Is anybody currently working around this, having rotated display ?
> > If not so, i would like start a implementation.
> >
> > 180? is quite easy, we only need to add some offset (total len of
> > framebuffer) to our framebuffer base address and do -- instead ++ for
> > drawing characters. Font can be reused.
> >
> > In the other cases, 90? and 270? it will maybe a bit tricky. I think a
> > ?rotated font? is also necessary.
> >
> > Of course we have to think about the other functions like scroll
up/down.
>
> I don't know of anything, but it sounds useful.
Okay, Anatolij doesn't also know anything that there is something going
on.
I will start to form some ideas how to implement such feature.
>
> Also I wonder if some hardware has support for this?
"Support" is the wrong word, sometimes the the lcd is mechanical built in
rotated and the logical start of the framebuffer isn't as usual at
top-left, rather it it bottom-right - means rotated by 180?.
>
> Nikita (on CC) is tidying up this part of U-Boot so get in touch with
him.
Nikita, whats your opinion around that ?
> Regards,
> Simon
best regards,
Hannes
^ permalink raw reply [flat|nested] 5+ messages in thread
* [U-Boot] lcd-console / display rotation
2015-03-03 10:31 ` Hannes Petermaier
@ 2015-03-04 11:58 ` Nikita Kiryanov
0 siblings, 0 replies; 5+ messages in thread
From: Nikita Kiryanov @ 2015-03-04 11:58 UTC (permalink / raw)
To: u-boot
Hi Hannes,
On 03/03/2015 12:31 PM, Hannes Petermaier wrote:
>>
>> +Anatolij, Nikita
>>
>> Hi,
> Hi,
> many thanks for response.
>
>>
>> On 2 March 2015 at 03:12, Hannes Petermaier
>> <Hannes.Petermaier@br-automation.com> wrote:
>>> Hello everybody,
>>>
>>> A short question about lcd-console:
>>>
>>> Today u-boot only supports a 'linear framebuffer', meaning the next
> pixel
>>> of a character is allways right after left and the framebuffer address
> is
>>> incrementing.
>>> We call this the display is mounted with 0? rotation.
>>>
>>> In some cases we have a rotated display.
>>> Maybe rotated by 90? to have portrait mode or even 180? due to
> mechanical
>>> issues.
>>>
>>> My question is:
>>> Is anybody currently working around this, having rotated display ?
>>> If not so, i would like start a implementation.
>>>
>>> 180? is quite easy, we only need to add some offset (total len of
>>> framebuffer) to our framebuffer base address and do -- instead ++ for
>>> drawing characters. Font can be reused.
>>>
>>> In the other cases, 90? and 270? it will maybe a bit tricky. I think a
>>> ?rotated font? is also necessary.
>>>
>>> Of course we have to think about the other functions like scroll
> up/down.
>>
>> I don't know of anything, but it sounds useful.
> Okay, Anatolij doesn't also know anything that there is something going
> on.
> I will start to form some ideas how to implement such feature.
>
>>
>> Also I wonder if some hardware has support for this?
> "Support" is the wrong word, sometimes the the lcd is mechanical built in
> rotated and the logical start of the framebuffer isn't as usual at
> top-left, rather it it bottom-right - means rotated by 180?.
>>
>> Nikita (on CC) is tidying up this part of U-Boot so get in touch with
> him.
> Nikita, whats your opinion around that ?
Sounds like a useful feature. I do not anticipate much changes to lcd_console.c
in the near future (not until I try to merge video console with the lcd console
anyway), so for now you can work with it fairly uninterrupted. I only ask that
you avoid adding platform specific code to it. The only platform specific thing
in there right now is a mention of panel_info, and that should disappear soon
as well (replaced with a function call).
--
Regards,
Nikita Kiryanov
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-03-04 11:58 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-02 10:12 [U-Boot] lcd-console / display rotation Hannes Petermaier
2015-03-02 21:42 ` Simon Glass
2015-03-03 10:31 ` Hannes Petermaier
2015-03-04 11:58 ` Nikita Kiryanov
2015-03-02 22:04 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox