commit
3313e90844
@ -1,52 +0,0 @@ |
||||
/dts-v1/; |
||||
|
||||
/include/ "skeleton.dtsi" |
||||
/include/ "serial.dtsi" |
||||
/include/ "reset.dtsi" |
||||
/include/ "rtc.dtsi" |
||||
/include/ "tsc_timer.dtsi" |
||||
/include/ "coreboot_fb.dtsi" |
||||
|
||||
/ { |
||||
model = "Advantech SOM-6896"; |
||||
compatible = "advantech,som-6896", "intel,broadwell"; |
||||
|
||||
aliases { |
||||
spi0 = &spi; |
||||
}; |
||||
|
||||
config { |
||||
silent_console = <0>; |
||||
}; |
||||
|
||||
chosen { |
||||
stdout-path = "/serial"; |
||||
}; |
||||
|
||||
pci { |
||||
compatible = "pci-x86"; |
||||
#address-cells = <3>; |
||||
#size-cells = <2>; |
||||
u-boot,dm-pre-reloc; |
||||
ranges = <0x02000000 0x0 0xe0000000 0xe0000000 0 0x10000000 |
||||
0x42000000 0x0 0xd0000000 0xd0000000 0 0x10000000 |
||||
0x01000000 0x0 0x2000 0x2000 0 0xe000>; |
||||
|
||||
pch@1f,0 { |
||||
reg = <0x0000f800 0 0 0 0>; |
||||
compatible = "intel,pch9"; |
||||
|
||||
spi: spi { |
||||
#address-cells = <1>; |
||||
#size-cells = <0>; |
||||
compatible = "intel,ich9-spi"; |
||||
spi-flash@0 { |
||||
reg = <0>; |
||||
compatible = "winbond,w25q128", "spi-flash"; |
||||
memory-map = <0xff000000 0x01000000>; |
||||
}; |
||||
}; |
||||
}; |
||||
}; |
||||
|
||||
}; |
@ -0,0 +1,45 @@ |
||||
// SPDX-License-Identifier: GPL-2.0+ |
||||
/* |
||||
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com> |
||||
* |
||||
* Generic coreboot payload device tree for x86 targets |
||||
*/ |
||||
|
||||
/dts-v1/; |
||||
|
||||
/include/ "skeleton.dtsi" |
||||
/include/ "serial.dtsi" |
||||
/include/ "keyboard.dtsi" |
||||
/include/ "reset.dtsi" |
||||
/include/ "rtc.dtsi" |
||||
/include/ "tsc_timer.dtsi" |
||||
|
||||
/ { |
||||
model = "coreboot x86 payload"; |
||||
compatible = "coreboot,x86-payload"; |
||||
|
||||
aliases { |
||||
serial0 = &serial; |
||||
}; |
||||
|
||||
config { |
||||
silent_console = <0>; |
||||
}; |
||||
|
||||
chosen { |
||||
stdout-path = "/serial"; |
||||
}; |
||||
|
||||
tsc-timer { |
||||
clock-frequency = <1000000000>; |
||||
}; |
||||
|
||||
pci { |
||||
compatible = "pci-x86"; |
||||
u-boot,dm-pre-reloc; |
||||
}; |
||||
|
||||
coreboot-fb { |
||||
compatible = "coreboot-fb"; |
||||
}; |
||||
}; |
@ -1,5 +0,0 @@ |
||||
/ { |
||||
coreboot-fb { |
||||
compatible = "coreboot-fb"; |
||||
}; |
||||
}; |
@ -0,0 +1,17 @@ |
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com> |
||||
*/ |
||||
|
||||
#include <common.h> |
||||
|
||||
int board_early_init_r(void) |
||||
{ |
||||
/*
|
||||
* Make sure PCI bus is enumerated so that peripherals on the PCI bus |
||||
* can be discovered by their drivers |
||||
*/ |
||||
pci_init(); |
||||
|
||||
return 0; |
||||
} |
@ -0,0 +1,32 @@ |
||||
/* SPDX-License-Identifier: GPL-2.0+ */ |
||||
/*
|
||||
* Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com> |
||||
*/ |
||||
|
||||
/*
|
||||
* 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_STD_DEVICES_SETTINGS "stdin=serial,i8042-kbd,usbkbd\0" \ |
||||
"stdout=serial,vidconsole\0" \
|
||||
"stderr=serial,vidconsole\0" |
||||
|
||||
/* ATA/IDE support */ |
||||
#define CONFIG_SYS_IDE_MAXBUS 2 |
||||
#define CONFIG_SYS_IDE_MAXDEVICE 4 |
||||
#define CONFIG_SYS_ATA_BASE_ADDR 0 |
||||
#define CONFIG_SYS_ATA_DATA_OFFSET 0 |
||||
#define CONFIG_SYS_ATA_REG_OFFSET 0 |
||||
#define CONFIG_SYS_ATA_ALT_OFFSET 0 |
||||
#define CONFIG_SYS_ATA_IDE0_OFFSET 0x1f0 |
||||
#define CONFIG_SYS_ATA_IDE1_OFFSET 0x170 |
||||
#define CONFIG_ATAPI |
||||
|
||||
#endif /* __CONFIG_H */ |
@ -1,26 +0,0 @@ |
||||
/* SPDX-License-Identifier: GPL-2.0+ */ |
||||
/*
|
||||
* Configuration settings for the SOM-6896 |
||||
* |
||||
* Copyright (C) 2015 NovaTech LLC |
||||
* George McCollister <george.mccollister@gmail.com> |
||||
*/ |
||||
|
||||
#ifndef __CONFIG_H |
||||
#define __CONFIG_H |
||||
|
||||
#include <configs/x86-common.h> |
||||
|
||||
#define CONFIG_SYS_MONITOR_LEN (1 << 20) |
||||
|
||||
#define VIDEO_IO_OFFSET 0 |
||||
#define CONFIG_X86EMU_RAW_IO |
||||
|
||||
#define CONFIG_STD_DEVICES_SETTINGS "stdin=serial,usbkbd\0" \ |
||||
"stdout=serial,vidconsole\0" \
|
||||
"stderr=serial,vidconsole\0" |
||||
|
||||
#define CONFIG_ENV_SECT_SIZE 0x1000 |
||||
#define CONFIG_ENV_OFFSET 0x00ff0000 |
||||
|
||||
#endif /* __CONFIG_H */ |
Loading…
Reference in new issue