Intel Bayley Bay board is a BayTrail based board. Add this board with existing baytrail fsp support. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>master
parent
2774ff720d
commit
9b911bed78
@ -0,0 +1,134 @@ |
||||
/* |
||||
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com> |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
|
||||
/dts-v1/; |
||||
|
||||
#include <dt-bindings/gpio/x86-gpio.h> |
||||
|
||||
/include/ "skeleton.dtsi" |
||||
/include/ "serial.dtsi" |
||||
/include/ "rtc.dtsi" |
||||
|
||||
/ { |
||||
model = "Intel Bayley Bay"; |
||||
compatible = "intel,bayleybay", "intel,baytrail"; |
||||
|
||||
aliases { |
||||
serial0 = &serial; |
||||
spi0 = "/spi"; |
||||
}; |
||||
|
||||
config { |
||||
silent_console = <0>; |
||||
}; |
||||
|
||||
chosen { |
||||
stdout-path = "/serial"; |
||||
}; |
||||
|
||||
cpus { |
||||
#address-cells = <1>; |
||||
#size-cells = <0>; |
||||
|
||||
cpu@0 { |
||||
device_type = "cpu"; |
||||
compatible = "intel,baytrail-cpu"; |
||||
reg = <0>; |
||||
intel,apic-id = <0>; |
||||
}; |
||||
|
||||
cpu@1 { |
||||
device_type = "cpu"; |
||||
compatible = "intel,baytrail-cpu"; |
||||
reg = <1>; |
||||
intel,apic-id = <2>; |
||||
}; |
||||
|
||||
cpu@2 { |
||||
device_type = "cpu"; |
||||
compatible = "intel,baytrail-cpu"; |
||||
reg = <2>; |
||||
intel,apic-id = <4>; |
||||
}; |
||||
|
||||
cpu@3 { |
||||
device_type = "cpu"; |
||||
compatible = "intel,baytrail-cpu"; |
||||
reg = <3>; |
||||
intel,apic-id = <6>; |
||||
}; |
||||
}; |
||||
|
||||
spi { |
||||
#address-cells = <1>; |
||||
#size-cells = <0>; |
||||
compatible = "intel,ich-spi"; |
||||
spi-flash@0 { |
||||
reg = <0>; |
||||
compatible = "winbond,w25q64dw", "spi-flash"; |
||||
memory-map = <0xff800000 0x00800000>; |
||||
}; |
||||
}; |
||||
|
||||
gpioa { |
||||
compatible = "intel,ich6-gpio"; |
||||
u-boot,dm-pre-reloc; |
||||
reg = <0 0x20>; |
||||
bank-name = "A"; |
||||
}; |
||||
|
||||
gpiob { |
||||
compatible = "intel,ich6-gpio"; |
||||
u-boot,dm-pre-reloc; |
||||
reg = <0x20 0x20>; |
||||
bank-name = "B"; |
||||
}; |
||||
|
||||
gpioc { |
||||
compatible = "intel,ich6-gpio"; |
||||
u-boot,dm-pre-reloc; |
||||
reg = <0x40 0x20>; |
||||
bank-name = "C"; |
||||
}; |
||||
|
||||
gpiod { |
||||
compatible = "intel,ich6-gpio"; |
||||
u-boot,dm-pre-reloc; |
||||
reg = <0x60 0x20>; |
||||
bank-name = "D"; |
||||
}; |
||||
|
||||
gpioe { |
||||
compatible = "intel,ich6-gpio"; |
||||
u-boot,dm-pre-reloc; |
||||
reg = <0x80 0x20>; |
||||
bank-name = "E"; |
||||
}; |
||||
|
||||
gpiof { |
||||
compatible = "intel,ich6-gpio"; |
||||
u-boot,dm-pre-reloc; |
||||
reg = <0xA0 0x20>; |
||||
bank-name = "F"; |
||||
}; |
||||
|
||||
pci { |
||||
compatible = "pci-x86"; |
||||
#address-cells = <3>; |
||||
#size-cells = <2>; |
||||
u-boot,dm-pre-reloc; |
||||
ranges = <0x02000000 0x0 0x80000000 0x80000000 0 0x40000000 |
||||
0x42000000 0x0 0xc0000000 0xc0000000 0 0x20000000 |
||||
0x01000000 0x0 0x2000 0x2000 0 0xe000>; |
||||
}; |
||||
|
||||
microcode { |
||||
update@0 { |
||||
#include "microcode/m0230671117.dtsi" |
||||
}; |
||||
}; |
||||
|
||||
}; |
@ -0,0 +1,27 @@ |
||||
if TARGET_BAYLEYBAY |
||||
|
||||
config SYS_BOARD |
||||
default "bayleybay" |
||||
|
||||
config SYS_VENDOR |
||||
default "intel" |
||||
|
||||
config SYS_SOC |
||||
default "baytrail" |
||||
|
||||
config SYS_CONFIG_NAME |
||||
default "bayleybay" |
||||
|
||||
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 |
||||
|
||||
config PCIE_ECAM_BASE |
||||
default 0xe0000000 |
||||
|
||||
endif |
@ -0,0 +1,6 @@ |
||||
Intel Bayley Bay |
||||
M: Bin Meng <bmeng.cn@gmail.com> |
||||
S: Maintained |
||||
F: board/intel/bayleybay |
||||
F: include/configs/bayleybay.h |
||||
F: configs/bayleybay_defconfig |
@ -0,0 +1,7 @@ |
||||
#
|
||||
# Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
obj-y += bayleybay.o start.o
|
@ -0,0 +1,19 @@ |
||||
/*
|
||||
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com> |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
|
||||
#include <common.h> |
||||
#include <asm/gpio.h> |
||||
#include <netdev.h> |
||||
|
||||
void setup_pch_gpios(u16 gpiobase, const struct pch_gpio_map *gpio) |
||||
{ |
||||
return; |
||||
} |
||||
|
||||
int board_eth_init(bd_t *bis) |
||||
{ |
||||
return pci_eth_init(bis); |
||||
} |
@ -0,0 +1,9 @@ |
||||
/* |
||||
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
|
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
|
||||
.globl early_board_init
|
||||
early_board_init: |
||||
jmp early_board_init_ret |
@ -0,0 +1,25 @@ |
||||
CONFIG_X86=y |
||||
CONFIG_VENDOR_INTEL=y |
||||
CONFIG_DEFAULT_DEVICE_TREE="bayleybay" |
||||
CONFIG_TARGET_BAYLEYBAY=y |
||||
CONFIG_HAVE_INTEL_ME=y |
||||
CONFIG_SMP=y |
||||
CONFIG_HAVE_VGA_BIOS=y |
||||
CONFIG_CMD_CPU=y |
||||
# CONFIG_CMD_IMLS is not set |
||||
# CONFIG_CMD_FLASH is not set |
||||
# CONFIG_CMD_SETEXPR is not set |
||||
# CONFIG_CMD_NFS is not set |
||||
CONFIG_BOOTSTAGE=y |
||||
CONFIG_BOOTSTAGE_REPORT=y |
||||
CONFIG_CMD_BOOTSTAGE=y |
||||
CONFIG_OF_CONTROL=y |
||||
CONFIG_CPU=y |
||||
CONFIG_DM_PCI=y |
||||
CONFIG_SPI_FLASH=y |
||||
CONFIG_VIDEO_VESA=y |
||||
CONFIG_FRAMEBUFFER_SET_VESA_MODE=y |
||||
CONFIG_FRAMEBUFFER_VESA_MODE_11A=y |
||||
CONFIG_DM_RTC=y |
||||
CONFIG_USE_PRIVATE_LIBGCC=y |
||||
CONFIG_SYS_VSNPRINTF=y |
@ -0,0 +1,45 @@ |
||||
/*
|
||||
* Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com> |
||||
* |
||||
* SPDX-License-Identifier: GPL-2.0+ |
||||
*/ |
||||
|
||||
/*
|
||||
* board/config.h - configuration options, board specific |
||||
*/ |
||||
|
||||
#ifndef __CONFIG_H |
||||
#define __CONFIG_H |
||||
|
||||
#include <configs/x86-common.h> |
||||
|
||||
#define CONFIG_SYS_MONITOR_LEN (1 << 20) |
||||
|
||||
#define CONFIG_X86_SERIAL |
||||
|
||||
#define CONFIG_PCI_CONFIG_HOST_BRIDGE |
||||
#define CONFIG_SYS_EARLY_PCI_INIT |
||||
#define CONFIG_PCI_PNP |
||||
#define CONFIG_E1000 |
||||
|
||||
#define CONFIG_STD_DEVICES_SETTINGS "stdin=serial,vga,usbkbd\0" \ |
||||
"stdout=serial,vga\0" \
|
||||
"stderr=serial,vga\0" |
||||
|
||||
#define CONFIG_SCSI_DEV_LIST \ |
||||
{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA} |
||||
|
||||
#define CONFIG_MMC |
||||
#define CONFIG_SDHCI |
||||
#define CONFIG_GENERIC_MMC |
||||
#define CONFIG_MMC_SDMA |
||||
#define CONFIG_CMD_MMC |
||||
|
||||
/* BayTrail IGD support */ |
||||
#define CONFIG_VGA_AS_SINGLE_DEVICE |
||||
|
||||
/* Environment configuration */ |
||||
#define CONFIG_ENV_SECT_SIZE 0x1000 |
||||
#define CONFIG_ENV_OFFSET 0x006ff000 |
||||
|
||||
#endif /* __CONFIG_H */ |
Loading…
Reference in new issue