* [U-Boot] [PATCH] video: mxc_ipuv3_fb: stash frame buffer pointer in global data.
@ 2014-04-29 21:13 Eric Nelson
2014-04-29 21:26 ` Otavio Salvador
2014-04-29 21:37 ` [U-Boot] [PATCH V2] " Eric Nelson
0 siblings, 2 replies; 7+ messages in thread
From: Eric Nelson @ 2014-04-29 21:13 UTC (permalink / raw)
To: u-boot
This patch updates the i.MX video driver to store the
frame-buffer address in the fb_base field of the global
data structure *gd.
By doing this, you can find the frame buffer address
using the 'bdinfo' command:
U-Boot > bdinfo
arch_number = 0x00000EB9
...
FB base = 0x4F35F1C0
This is very useful when debugging display connections.
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
---
drivers/video/mxc_ipuv3_fb.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/video/mxc_ipuv3_fb.c b/drivers/video/mxc_ipuv3_fb.c
index 3e21fb2..08a94c2 100644
--- a/drivers/video/mxc_ipuv3_fb.c
+++ b/drivers/video/mxc_ipuv3_fb.c
@@ -10,9 +10,9 @@
*
* SPDX-License-Identifier: GPL-2.0+
*/
-
#include <common.h>
#include <asm/errno.h>
+#include <asm/global_data.h>
#include <linux/string.h>
#include <linux/list.h>
#include <linux/fb.h>
@@ -24,6 +24,8 @@
#include "mxcfb.h"
#include "ipu_regs.h"
+DECLARE_GLOBAL_DATA_PTR;
+
static int mxcfb_map_video_memory(struct fb_info *fbi);
static int mxcfb_unmap_video_memory(struct fb_info *fbi);
@@ -415,6 +417,7 @@ static int mxcfb_map_video_memory(struct fb_info *fbi)
fbi->screen_size = fbi->fix.smem_len;
+ gd->fb_base = fbi->fix.smem_start;
/* Clear the screen */
memset((char *)fbi->screen_base, 0, fbi->fix.smem_len);
--
1.9.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH] video: mxc_ipuv3_fb: stash frame buffer pointer in global data.
2014-04-29 21:13 [U-Boot] [PATCH] video: mxc_ipuv3_fb: stash frame buffer pointer in global data Eric Nelson
@ 2014-04-29 21:26 ` Otavio Salvador
2014-04-29 21:34 ` Eric Nelson
2014-04-29 23:46 ` Marek Vasut
2014-04-29 21:37 ` [U-Boot] [PATCH V2] " Eric Nelson
1 sibling, 2 replies; 7+ messages in thread
From: Otavio Salvador @ 2014-04-29 21:26 UTC (permalink / raw)
To: u-boot
Hello Eric,
On Tue, Apr 29, 2014 at 6:13 PM, Eric Nelson
<eric.nelson@boundarydevices.com> wrote:
> This patch updates the i.MX video driver to store the
> frame-buffer address in the fb_base field of the global
> data structure *gd.
>
> By doing this, you can find the frame buffer address
> using the 'bdinfo' command:
>
> U-Boot > bdinfo
> arch_number = 0x00000EB9
> ...
> FB base = 0x4F35F1C0
>
> This is very useful when debugging display connections.
>
> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
> ---
> drivers/video/mxc_ipuv3_fb.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/video/mxc_ipuv3_fb.c b/drivers/video/mxc_ipuv3_fb.c
> index 3e21fb2..08a94c2 100644
> --- a/drivers/video/mxc_ipuv3_fb.c
> +++ b/drivers/video/mxc_ipuv3_fb.c
> @@ -10,9 +10,9 @@
> *
> * SPDX-License-Identifier: GPL-2.0+
> */
> -
Don't remove lines.
> #include <common.h>
> #include <asm/errno.h>
> +#include <asm/global_data.h>
> #include <linux/string.h>
> #include <linux/list.h>
> #include <linux/fb.h>
> @@ -24,6 +24,8 @@
> #include "mxcfb.h"
> #include "ipu_regs.h"
>
> +DECLARE_GLOBAL_DATA_PTR;
> +
> static int mxcfb_map_video_memory(struct fb_info *fbi);
> static int mxcfb_unmap_video_memory(struct fb_info *fbi);
>
> @@ -415,6 +417,7 @@ static int mxcfb_map_video_memory(struct fb_info *fbi)
>
> fbi->screen_size = fbi->fix.smem_len;
>
> + gd->fb_base = fbi->fix.smem_start;
I would add a new line after this. It looks ugly too close of the
comment and memset.
> /* Clear the screen */
> memset((char *)fbi->screen_base, 0, fbi->fix.smem_len);
Apart from that, please add my Acked-by.
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH] video: mxc_ipuv3_fb: stash frame buffer pointer in global data.
2014-04-29 21:26 ` Otavio Salvador
@ 2014-04-29 21:34 ` Eric Nelson
2014-04-29 23:46 ` Marek Vasut
1 sibling, 0 replies; 7+ messages in thread
From: Eric Nelson @ 2014-04-29 21:34 UTC (permalink / raw)
To: u-boot
Hi Otavio,
On 04/29/2014 02:26 PM, Otavio Salvador wrote:
> Hello Eric,
>
> On Tue, Apr 29, 2014 at 6:13 PM, Eric Nelson
> <eric.nelson@boundarydevices.com> wrote:
>> This patch updates the i.MX video driver to store the
>> frame-buffer address in the fb_base field of the global
>> data structure *gd.
>>
>> By doing this, you can find the frame buffer address
>> using the 'bdinfo' command:
>>
>> U-Boot > bdinfo
>> arch_number = 0x00000EB9
>> ...
>> FB base = 0x4F35F1C0
>>
>> This is very useful when debugging display connections.
>>
>> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
>> ---
>> drivers/video/mxc_ipuv3_fb.c | 5 ++++-
>> 1 file changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/video/mxc_ipuv3_fb.c b/drivers/video/mxc_ipuv3_fb.c
>> index 3e21fb2..08a94c2 100644
>> --- a/drivers/video/mxc_ipuv3_fb.c
>> +++ b/drivers/video/mxc_ipuv3_fb.c
>> @@ -10,9 +10,9 @@
>> *
>> * SPDX-License-Identifier: GPL-2.0+
>> */
>> -
>
> Don't remove lines.
>
Oops. That's where my "#define DEBUG" lived...
>> #include <common.h>
>> #include <asm/errno.h>
>> +#include <asm/global_data.h>
>> #include <linux/string.h>
>> #include <linux/list.h>
>> #include <linux/fb.h>
>> @@ -24,6 +24,8 @@
>> #include "mxcfb.h"
>> #include "ipu_regs.h"
>>
>> +DECLARE_GLOBAL_DATA_PTR;
>> +
>> static int mxcfb_map_video_memory(struct fb_info *fbi);
>> static int mxcfb_unmap_video_memory(struct fb_info *fbi);
>>
>> @@ -415,6 +417,7 @@ static int mxcfb_map_video_memory(struct fb_info *fbi)
>>
>> fbi->screen_size = fbi->fix.smem_len;
>>
>> + gd->fb_base = fbi->fix.smem_start;
>
> I would add a new line after this. It looks ugly too close of the
> comment and memset.
>
This is the part that keeps me from thinking I can ever get
a patch V1 right...
>> /* Clear the screen */
>> memset((char *)fbi->screen_base, 0, fbi->fix.smem_len);
>
> Apart from that, please add my Acked-by.
>
Will do in V2.
Regards,
Eric
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH V2] video: mxc_ipuv3_fb: stash frame buffer pointer in global data.
2014-04-29 21:13 [U-Boot] [PATCH] video: mxc_ipuv3_fb: stash frame buffer pointer in global data Eric Nelson
2014-04-29 21:26 ` Otavio Salvador
@ 2014-04-29 21:37 ` Eric Nelson
2014-04-29 23:45 ` Marek Vasut
2014-04-30 9:19 ` Anatolij Gustschin
1 sibling, 2 replies; 7+ messages in thread
From: Eric Nelson @ 2014-04-29 21:37 UTC (permalink / raw)
To: u-boot
This patch updates the i.MX video driver to store the
frame-buffer address in the fb_base field of the global
data structure *gd.
By doing this, you can find the frame buffer address
using the 'bdinfo' command:
U-Boot > bdinfo
arch_number = 0x00000EB9
...
FB base = 0x4F35F1C0
This is very useful when debugging display connections.
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
---
drivers/video/mxc_ipuv3_fb.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/video/mxc_ipuv3_fb.c b/drivers/video/mxc_ipuv3_fb.c
index 3e21fb2..f75d770 100644
--- a/drivers/video/mxc_ipuv3_fb.c
+++ b/drivers/video/mxc_ipuv3_fb.c
@@ -13,6 +13,7 @@
#include <common.h>
#include <asm/errno.h>
+#include <asm/global_data.h>
#include <linux/string.h>
#include <linux/list.h>
#include <linux/fb.h>
@@ -24,6 +25,8 @@
#include "mxcfb.h"
#include "ipu_regs.h"
+DECLARE_GLOBAL_DATA_PTR;
+
static int mxcfb_map_video_memory(struct fb_info *fbi);
static int mxcfb_unmap_video_memory(struct fb_info *fbi);
@@ -415,6 +418,8 @@ static int mxcfb_map_video_memory(struct fb_info *fbi)
fbi->screen_size = fbi->fix.smem_len;
+ gd->fb_base = fbi->fix.smem_start;
+
/* Clear the screen */
memset((char *)fbi->screen_base, 0, fbi->fix.smem_len);
--
1.9.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH V2] video: mxc_ipuv3_fb: stash frame buffer pointer in global data.
2014-04-29 21:37 ` [U-Boot] [PATCH V2] " Eric Nelson
@ 2014-04-29 23:45 ` Marek Vasut
2014-04-30 9:19 ` Anatolij Gustschin
1 sibling, 0 replies; 7+ messages in thread
From: Marek Vasut @ 2014-04-29 23:45 UTC (permalink / raw)
To: u-boot
On Tuesday, April 29, 2014 at 11:37:56 PM, Eric Nelson wrote:
> This patch updates the i.MX video driver to store the
> frame-buffer address in the fb_base field of the global
> data structure *gd.
>
> By doing this, you can find the frame buffer address
> using the 'bdinfo' command:
>
> U-Boot > bdinfo
> arch_number = 0x00000EB9
> ...
> FB base = 0x4F35F1C0
>
> This is very useful when debugging display connections.
>
> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Acked-by: Marek Vasut <marex@denx.de>
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH] video: mxc_ipuv3_fb: stash frame buffer pointer in global data.
2014-04-29 21:26 ` Otavio Salvador
2014-04-29 21:34 ` Eric Nelson
@ 2014-04-29 23:46 ` Marek Vasut
1 sibling, 0 replies; 7+ messages in thread
From: Marek Vasut @ 2014-04-29 23:46 UTC (permalink / raw)
To: u-boot
On Tuesday, April 29, 2014 at 11:26:41 PM, Otavio Salvador wrote:
[...]
> > /* Clear the screen */
> > memset((char *)fbi->screen_base, 0, fbi->fix.smem_len);
>
> Apart from that, please add my Acked-by.
Please add proper tags, otherwise patchwork cannot pick this automatically and
you are only adding work onto others' shoulders .
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 7+ messages in thread
* [U-Boot] [PATCH V2] video: mxc_ipuv3_fb: stash frame buffer pointer in global data.
2014-04-29 21:37 ` [U-Boot] [PATCH V2] " Eric Nelson
2014-04-29 23:45 ` Marek Vasut
@ 2014-04-30 9:19 ` Anatolij Gustschin
1 sibling, 0 replies; 7+ messages in thread
From: Anatolij Gustschin @ 2014-04-30 9:19 UTC (permalink / raw)
To: u-boot
On Tue, 29 Apr 2014 14:37:56 -0700
Eric Nelson <eric.nelson@boundarydevices.com> wrote:
> This patch updates the i.MX video driver to store the
> frame-buffer address in the fb_base field of the global
> data structure *gd.
>
> By doing this, you can find the frame buffer address
> using the 'bdinfo' command:
>
> U-Boot > bdinfo
> arch_number = 0x00000EB9
> ...
> FB base = 0x4F35F1C0
>
> This is very useful when debugging display connections.
>
> Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
> Acked-by: Otavio Salvador <otavio@ossystems.com.br>
> ---
> drivers/video/mxc_ipuv3_fb.c | 5 +++++
> 1 file changed, 5 insertions(+)
applied to u-boot-video/master. Thanks!
Anatolij
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-04-30 9:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-29 21:13 [U-Boot] [PATCH] video: mxc_ipuv3_fb: stash frame buffer pointer in global data Eric Nelson
2014-04-29 21:26 ` Otavio Salvador
2014-04-29 21:34 ` Eric Nelson
2014-04-29 23:46 ` Marek Vasut
2014-04-29 21:37 ` [U-Boot] [PATCH V2] " Eric Nelson
2014-04-29 23:45 ` Marek Vasut
2014-04-30 9:19 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox