GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
if TARGET_MINNOWMAX
|
||||
|
||||
config SYS_BOARD
|
||||
default "minnowmax"
|
||||
|
||||
config SYS_VENDOR
|
||||
default "intel"
|
||||
|
||||
config SYS_SOC
|
||||
default "baytrail"
|
||||
|
||||
config SYS_CONFIG_NAME
|
||||
default "minnowmax"
|
||||
|
||||
config SYS_TEXT_BASE
|
||||
default 0xfff00000
|
||||
|
||||
config BOARD_SPECIFIC_OPTIONS # dummy
|
||||
def_bool y
|
||||
select X86_RESET_VECTOR
|
||||
select INTEL_BAYTRAIL
|
||||
select BOARD_ROMSIZE_KB_8192
|
||||
select SPI_FLASH_STMICRO
|
||||
|
||||
config PCIE_ECAM_BASE
|
||||
default 0xe0000000
|
||||
|
||||
endif
|
||||
@@ -0,0 +1,6 @@
|
||||
CircuitCo Minnowboard Max
|
||||
M: Simon Glass <sjg@chromium.org>
|
||||
S: Maintained
|
||||
F: board/intel/minnowmax
|
||||
F: include/configs/minnowmax.h
|
||||
F: configs/minnowmax_defconfig
|
||||
@@ -0,0 +1,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
# Copyright (C) 2015, Google, Inc
|
||||
|
||||
obj-y += minnowmax.o start.o
|
||||
obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o
|
||||
@@ -0,0 +1,10 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/*
|
||||
* Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
|
||||
*/
|
||||
|
||||
/* Power Button */
|
||||
Device (PWRB)
|
||||
{
|
||||
Name(_HID, EISAID("PNP0C0C"))
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/*
|
||||
* Copyright (C) 2016, Bin Meng <bmeng.cn@gmail.com>
|
||||
*/
|
||||
|
||||
DefinitionBlock("dsdt.aml", "DSDT", 2, "U-BOOT", "U-BOOTBL", 0x00010000)
|
||||
{
|
||||
/* platform specific */
|
||||
#include <asm/arch/acpi/platform.asl>
|
||||
|
||||
/* board specific */
|
||||
#include "acpi/mainboard.asl"
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* Copyright (C) 2015, Google, Inc
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <dm.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <dm/device-internal.h>
|
||||
#include <dm/uclass-internal.h>
|
||||
|
||||
#define GPIO_BANKE_NAME "gpioe"
|
||||
|
||||
int misc_init_r(void)
|
||||
{
|
||||
struct udevice *dev;
|
||||
struct gpio_desc desc;
|
||||
int ret;
|
||||
|
||||
/*
|
||||
* Turn on USB VBUS for the two USB ports on the board.
|
||||
* Each port's VBUS is controlled by a GPIO pin.
|
||||
*/
|
||||
|
||||
ret = uclass_find_device_by_name(UCLASS_GPIO, GPIO_BANKE_NAME, &dev);
|
||||
if (ret) {
|
||||
debug("%s: GPIO %s device cannot be not found (ret=%d)\n",
|
||||
__func__, GPIO_BANKE_NAME, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = device_probe(dev);
|
||||
if (ret) {
|
||||
debug("%s: GPIO %s device probe failed (ret=%d)\n",
|
||||
__func__, GPIO_BANKE_NAME, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
desc.dev = dev;
|
||||
desc.flags = GPIOD_IS_OUT;
|
||||
|
||||
/* GPIO E8 controls the bottom port */
|
||||
desc.offset = 8;
|
||||
|
||||
ret = dm_gpio_request(&desc, "usb_host_en0");
|
||||
if (ret)
|
||||
return ret;
|
||||
dm_gpio_set_value(&desc, 1);
|
||||
|
||||
/* GPIO E9 controls the upper port */
|
||||
desc.offset = 9;
|
||||
|
||||
ret = dm_gpio_request(&desc, "usb_host_en1");
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
dm_gpio_set_value(&desc, 1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0+ */
|
||||
/*
|
||||
* Copyright (C) 2015, Google, Inc
|
||||
*/
|
||||
|
||||
.globl early_board_init
|
||||
early_board_init:
|
||||
jmp early_board_init_ret
|
||||
Reference in New Issue
Block a user