GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
if TARGET_OPOS6ULDEV
|
||||
|
||||
config SYS_BOARD
|
||||
default "opos6uldev"
|
||||
|
||||
config SYS_VENDOR
|
||||
default "armadeus"
|
||||
|
||||
config SYS_CONFIG_NAME
|
||||
default "opos6uldev"
|
||||
|
||||
config IMX_CONFIG
|
||||
default "arch/arm/mach-imx/spl_sd.cfg"
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,6 @@
|
||||
OPOS6ULDev BOARD
|
||||
M: Sébastien Szymanski <sebastien.szymanski@armadeus.com>
|
||||
S: Maintained
|
||||
F: board/armadeus/opos6uldev/
|
||||
F: include/configs/opos6uldev.h
|
||||
F: configs/opos6uldev_defconfig
|
||||
@@ -0,0 +1,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
# (C) Copyright 2017 Armadeus Systems
|
||||
|
||||
obj-y := board.o
|
||||
@@ -0,0 +1,45 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* Copyright (C) 2018 Armadeus Systems
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <init.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
#ifdef CONFIG_VIDEO_MXS
|
||||
int setup_lcd(void)
|
||||
{
|
||||
struct gpio_desc backlight;
|
||||
int ret;
|
||||
|
||||
/* Set Brightness to high */
|
||||
ret = dm_gpio_lookup_name("GPIO4_10", &backlight);
|
||||
if (ret) {
|
||||
printf("Cannot get GPIO4_10\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = dm_gpio_request(&backlight, "backlight");
|
||||
if (ret) {
|
||||
printf("Cannot request GPIO4_10\n");
|
||||
return ret;
|
||||
}
|
||||
|
||||
dm_gpio_set_dir_flags(&backlight, GPIOD_IS_OUT);
|
||||
dm_gpio_set_value(&backlight, 1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
int opos6ul_board_late_init(void)
|
||||
{
|
||||
#ifdef CONFIG_VIDEO_MXS
|
||||
setup_lcd();
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user