Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
reform-boundary-uboot
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jack Humbert
reform-boundary-uboot
Commits
053b795e
Commit
053b795e
authored
10 years ago
by
Eric Benard
Committed by
Stefano Babic
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
mx6sabresd: use common board_video_skip
Signed-off-by:
Eric Bénard
<
eric@eukrea.com
>
parent
a47e4495
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
board/freescale/mx6sabresd/mx6sabresd.c
+3
-56
3 additions, 56 deletions
board/freescale/mx6sabresd/mx6sabresd.c
include/configs/mx6sabresd.h
+1
-0
1 addition, 0 deletions
include/configs/mx6sabresd.h
with
4 additions
and
56 deletions
board/freescale/mx6sabresd/mx6sabresd.c
+
3
−
56
View file @
053b795e
...
...
@@ -14,14 +14,13 @@
#include
<asm/gpio.h>
#include
<asm/imx-common/iomux-v3.h>
#include
<asm/imx-common/boot_mode.h>
#include
<asm/imx-common/video.h>
#include
<mmc.h>
#include
<fsl_esdhc.h>
#include
<miiphy.h>
#include
<netdev.h>
#include
<asm/arch/mxc_hdmi.h>
#include
<asm/arch/crm_regs.h>
#include
<linux/fb.h>
#include
<ipu_pixfmt.h>
#include
<asm/io.h>
#include
<asm/arch/sys_proto.h>
DECLARE_GLOBAL_DATA_PTR
;
...
...
@@ -265,14 +264,6 @@ int board_phy_config(struct phy_device *phydev)
}
#if defined(CONFIG_VIDEO_IPUV3)
struct
display_info_t
{
int
bus
;
int
addr
;
int
pixfmt
;
int
(
*
detect
)(
struct
display_info_t
const
*
dev
);
void
(
*
enable
)(
struct
display_info_t
const
*
dev
);
struct
fb_videomode
mode
;
};
static
int
detect_hdmi
(
struct
display_info_t
const
*
dev
)
{
...
...
@@ -309,7 +300,7 @@ static void enable_lvds(struct display_info_t const *dev)
writel
(
reg
,
&
iomux
->
gpr
[
2
]);
}
static
struct
display_info_t
const
displays
[]
=
{{
struct
display_info_t
const
displays
[]
=
{{
.
bus
=
-
1
,
.
addr
=
0
,
.
pixfmt
=
IPU_PIX_FMT_RGB666
,
...
...
@@ -350,51 +341,7 @@ static struct display_info_t const displays[] = {{
.
sync
=
FB_SYNC_EXT
,
.
vmode
=
FB_VMODE_NONINTERLACED
}
}
};
int
board_video_skip
(
void
)
{
int
i
;
int
ret
;
char
const
*
panel
=
getenv
(
"panel"
);
if
(
!
panel
)
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
displays
);
i
++
)
{
struct
display_info_t
const
*
dev
=
displays
+
i
;
if
(
dev
->
detect
&&
dev
->
detect
(
dev
))
{
panel
=
dev
->
mode
.
name
;
printf
(
"auto-detected panel %s
\n
"
,
panel
);
break
;
}
}
if
(
!
panel
)
{
panel
=
displays
[
0
].
mode
.
name
;
printf
(
"No panel detected: default to %s
\n
"
,
panel
);
i
=
0
;
}
}
else
{
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
displays
);
i
++
)
{
if
(
!
strcmp
(
panel
,
displays
[
i
].
mode
.
name
))
break
;
}
}
if
(
i
<
ARRAY_SIZE
(
displays
))
{
ret
=
ipuv3_fb_init
(
&
displays
[
i
].
mode
,
0
,
displays
[
i
].
pixfmt
);
if
(
!
ret
)
{
displays
[
i
].
enable
(
displays
+
i
);
printf
(
"Display: %s (%ux%u)
\n
"
,
displays
[
i
].
mode
.
name
,
displays
[
i
].
mode
.
xres
,
displays
[
i
].
mode
.
yres
);
}
else
printf
(
"LCD %s cannot be configured: %d
\n
"
,
displays
[
i
].
mode
.
name
,
ret
);
}
else
{
printf
(
"unsupported panel %s
\n
"
,
panel
);
return
-
EINVAL
;
}
return
0
;
}
size_t
display_count
=
ARRAY_SIZE
(
displays
);
static
void
setup_display
(
void
)
{
...
...
This diff is collapsed.
Click to expand it.
include/configs/mx6sabresd.h
+
1
−
0
View file @
053b795e
...
...
@@ -47,6 +47,7 @@
#define CONFIG_VIDEO_BMP_LOGO
#define CONFIG_IPUV3_CLK 260000000
#define CONFIG_IMX_HDMI
#define CONFIG_IMX_VIDEO_SKIP
#define CONFIG_CMD_PCI
#ifdef CONFIG_CMD_PCI
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment