x86: Introduce Intel Tangier SoC and Edison board
v3 cover x86: Introduce Intel Tangier SoC and Edison board
This brings support for Intel Tangier SoC and Intel Edison board which is using U-Boot as a main bootloader.
The series has implicit dependency to watchdog driver, v3 of which [1] had been sent earlier.
[1] https://lists.denx.de/pipermail/u-boot/2017-July/297224.html
Since v2:
- address misc comments (Bin)
- add Bin's tag to patch 1 and 2
- USB OTG enumeration is left the same (Felipe)
Since v1:
- split patch 1 to two (Bin)
- move enum to sfi.h (Bin)
- remove unnecessary headers (Bin)
- add comment to SFI system table search (Bin)
- append and update copyright notices: sdram.c and tangier.c are almost done by Intel (Simon)
- disable SD card slot (Simon)
- add Simon's tag to patch 1 and 2 (changes are basically technical)
- add Edison support
Andy Shevchenko (2):
x86: Add dma-mapping.h to architectural code
x86: Add Intel Edison board files
Felipe Balbi (1):
x86: Add Intel Tangier support
arch/x86/Kconfig | 1 + arch/x86/cpu/Makefile | 1 + arch/x86/cpu/tangier/Kconfig | 24 +++++ arch/x86/cpu/tangier/Makefile | 7 ++ arch/x86/cpu/tangier/car.S | 13 +++ arch/x86/cpu/tangier/sdram.c | 206 +++++++++++++++++++++++++++++++++++++ arch/x86/cpu/tangier/tangier.c | 34 ++++++ arch/x86/dts/Makefile | 1 + arch/x86/dts/edison.dts | 89 ++++++++++++++++ arch/x86/include/asm/dma-mapping.h | 41 ++++++++ arch/x86/include/asm/sfi.h | 19 ++++ board/intel/Kconfig | 8 ++ board/intel/edison/Kconfig | 26 +++++ board/intel/edison/Makefile | 7 ++ board/intel/edison/config.mk | 18 ++++ board/intel/edison/edison.c | 104 +++++++++++++++++++ board/intel/edison/start.S | 13 +++ configs/edison_defconfig | 53 ++++++++++ doc/README.x86 | 39 +++++++ include/configs/edison.h | 61 +++++++++++ 20 files changed, 765 insertions(+) create mode 100644 arch/x86/cpu/tangier/Kconfig create mode 100644 arch/x86/cpu/tangier/Makefile create mode 100644 arch/x86/cpu/tangier/car.S create mode 100644 arch/x86/cpu/tangier/sdram.c create mode 100644 arch/x86/cpu/tangier/tangier.c create mode 100644 arch/x86/dts/edison.dts create mode 100644 arch/x86/include/asm/dma-mapping.h create mode 100644 board/intel/edison/Kconfig create mode 100644 board/intel/edison/Makefile create mode 100644 board/intel/edison/config.mk create mode 100644 board/intel/edison/edison.c create mode 100644 board/intel/edison/start.S create mode 100644 configs/edison_defconfig create mode 100644 include/configs/edison.h
Signature · 1 line
2.11.0
PATCH v3 1/3 x86: Add dma-mapping.h to architectural code
Some cross-platform drivers rely on this header present. Make it so for x86.
It's just a copy'n'paste of arch/arm/include/asm/dma-mapping.h.
--- arch/x86/include/asm/dma-mapping.h | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 arch/x86/include/asm/dma-mapping.h
arch/x86/include/asm/dma-mapping.h new file +41 -0
@@ -0,0 +1,41 @@ +/* +* (C) Copyright 2007 +* Stelian Pop <[email protected]> +* Lead Tech Design <www.leadtechdesign.com> +* +* SPDX-License-Identifier: GPL-2.0+ +*/ +#ifndef __ASM_X86_DMA_MAPPING_H +#define __ASM_X86_DMA_MAPPING_H + +#define dma_mapping_error (x, y) 0 + +enum dma_data_direction { +DMA_BIDIRECTIONAL =0 , +DMA_TO_DEVICE =1 , +DMA_FROM_DEVICE =2 , +}; + +static inline void *dma_alloc_coherent (size_t len,unsigned long *handle) +{ + *handle = (unsigned long )memalign (ARCH_DMA_MINALIGN , len); +return (void *)*handle; +} + +static inline void dma_free_coherent (void *addr) +{ +free (addr); +} + +static inline unsigned long dma_map_single (volatile void *vaddr,size_t len, +enum dma_data_direction dir) +{ +return (unsigned long )vaddr; +} + +static inline void dma_unmap_single (volatile void *vaddr,size_t len, +unsigned long paddr) +{ +} + +#endif /* __ASM_X86_DMA_MAPPING_H */
Signature · 1 line
2.11.0
PATCH v3 2/3 x86: Add Intel Tangier support
In reply to Andy ShevchenkoFrom: Felipe Balbi <[email protected]>
Add Intel Tangier SoC support.
Intel Tangier SoC is a core part of Intel Merrifield platform. For example, Intel Edison board is based on such platform.
The patch is based on work done by the following people (in alphabetical order):
Aiden Park <[email protected]>
Dukjoon Jeon <[email protected]>
eric.park <[email protected]>
Fabien Chereau <[email protected]>
Scott D Phillips <[email protected]> Sebastien Colleur <[email protected]> Steve Sakoman <[email protected]>
Vincent Tinelli <[email protected]>
--- arch/x86/Kconfig | 1 + arch/x86/cpu/Makefile | 1 + arch/x86/cpu/tangier/Kconfig | 20 ++++ arch/x86/cpu/tangier/Makefile | 7 ++ arch/x86/cpu/tangier/car.S | 13 +++ arch/x86/cpu/tangier/sdram.c | 206 +++++++++++++++++++++++++++++++++++++++++ arch/x86/cpu/tangier/tangier.c | 34 +++++++ arch/x86/include/asm/sfi.h | 19 ++++ 8 files changed, 301 insertions(+) create mode 100644 arch/x86/cpu/tangier/Kconfig create mode 100644 arch/x86/cpu/tangier/Makefile create mode 100644 arch/x86/cpu/tangier/car.S create mode 100644 arch/x86/cpu/tangier/sdram.c create mode 100644 arch/x86/cpu/tangier/tangier.c
arch/x86/Kconfig +1 -0
@@ -114,6 +114,7 @@ source "arch/x86/cpu/ivybridge/Kconfig" source "arch/x86/cpu/qemu/Kconfig" source "arch/x86/cpu/quark/Kconfig" source "arch/x86/cpu/queensbay/Kconfig" +source "arch/x86/cpu/tangier/Kconfig" # architecture-specific options below
arch/x86/cpu/Makefile +1 -0
@@ -34,6 +34,7 @@ obj-$(CONFIG_QEMU) += qemu/ obj-$(CONFIG_NORTHBRIDGE_INTEL_IVYBRIDGE) += ivybridge/ obj-$(CONFIG_INTEL_QUARK) += quark/ obj-$(CONFIG_INTEL_QUEENSBAY) += queensbay/ +obj-$(CONFIG_INTEL_TANGIER) += tangier/ obj-y += lapic.o ioapic.o obj-y += irq.o ifndef CONFIG_$(SPL_)X86_64
arch/x86/cpu/tangier/Kconfig new file +20 -0
@@ -0,0 +1,20 @@ +# +# Copyright (c) 2017 Intel Corporation +# +# SPDX-License-Identifier: GPL-2.0+ +# + +config INTEL_TANGIER + bool + depends on INTEL_MID + +config SYS_CAR_ADDR + hex + default 0x19200000 + +config SYS_CAR_SIZE + hex + default 0x4000 + help + Space in bytes in eSRAM used as Cache-As-RAM (CAR). + Note this size must not exceed eSRAM's total size.
arch/x86/cpu/tangier/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +# +# Copyright (c) 2017 Intel Corporation +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y += car.o tangier.o sdram.o
arch/x86/cpu/tangier/car.S new file +13 -0
@@ -0,0 +1,13 @@ +/* + * Copyright (c) 2011 The Chromium OS Authors. + * (C) Copyright 2010-2011 + * Graeme Russ, <[email protected]> + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +.section .text + +.globl car_init +car_init: + jmp car_init_ret
arch/x86/cpu/tangier/sdram.c new file +206 -0
206 lines not on this page · raw message
arch/x86/cpu/tangier/tangier.c new file +34 -0
@@ -0,0 +1,34 @@ +/* +* Copyright (c) 2017 Intel Corporation +* +* SPDX-License-Identifier: GPL-2.0+ +*/ + +#include <common.h> +#include <asm/scu.h> +#include <asm/u-boot-x86.h> + +DECLARE_GLOBAL_DATA_PTR ; + +/* +* Miscellaneous platform dependent initializations +*/ +int arch_cpu_init (void ) +{ +return x86_cpu_init_f (); +} + +int checkcpu (void ) +{ +return 0 ; +} + +int print_cpuinfo (void ) +{ +return default_print_cpuinfo (); +} + +void reset_cpu (ulong addr) +{ +scu_ipc_simple_command (IPCMSG_COLD_RESET ,0 ); +}
arch/x86/include/asm/sfi.h +19 -0
@@ -60,6 +60,25 @@ struct __packed sfi_mem_entry {u64 attrib; }; +/* Memory type definitions */ +enum sfi_mem_type { +SFI_MEM_RESERVED , +SFI_LOADER_CODE , +SFI_LOADER_DATA , +SFI_BOOT_SERVICE_CODE , +SFI_BOOT_SERVICE_DATA , +SFI_RUNTIME_SERVICE_CODE , +SFI_RUNTIME_SERVICE_DATA , +SFI_MEM_CONV , +SFI_MEM_UNUSABLE , +SFI_ACPI_RECLAIM , +SFI_ACPI_NVS , +SFI_MEM_MMIO , +SFI_MEM_IOPORT , +SFI_PAL_CODE , +SFI_MEM_TYPEMAX , +}; +struct __packed sfi_cpu_table_entry {u32 apic_id; };
Signature · 1 line
2.11.0
PATCH v3 2/3 x86: Add Intel Tangier support
Quoted 23 lines · Andy Shevchenko
From: Felipe Balbi <[email protected]>
Add Intel Tangier SoC support.
Intel Tangier SoC is a core part of Intel Merrifield platform. For example, Intel Edison board is based on such platform.
The patch is based on work done by the following people (in alphabetical order):
Aiden Park <[email protected]>
Dukjoon Jeon <[email protected]>
eric.park <[email protected]>
Fabien Chereau <[email protected]>
Scott D Phillips <[email protected]> Sebastien Colleur <[email protected]> Steve Sakoman <[email protected]>
Vincent Tinelli <[email protected]>Reviewed-by Simon Glass <[email protected]>Reviewed-by Bin Meng <[email protected]>Signed-off-by Vincent Tinelli <[email protected]>Signed-off-by Felipe Balbi <[email protected]>Signed-off-by Andy Shevchenko <[email protected]>
Quoted 16 lines
--- arch/x86/Kconfig | 1 + arch/x86/cpu/Makefile | 1 + arch/x86/cpu/tangier/Kconfig | 20 ++++ arch/x86/cpu/tangier/Makefile | 7 ++ arch/x86/cpu/tangier/car.S | 13 +++ arch/x86/cpu/tangier/sdram.c | 206 +++++++++++++++++++++++++++++++++++++++++ arch/x86/cpu/tangier/tangier.c | 34 +++++++ arch/x86/include/asm/sfi.h | 19 ++++ 8 files changed, 301 insertions(+) create mode 100644 arch/x86/cpu/tangier/Kconfig create mode 100644 arch/x86/cpu/tangier/Makefile create mode 100644 arch/x86/cpu/tangier/car.S create mode 100644 arch/x86/cpu/tangier/sdram.c create mode 100644 arch/x86/cpu/tangier/tangier.c
applied to u-boot-x86, thanks!
PATCH v3 3/3 x86: Add Intel Edison board files
In reply to Andy ShevchenkoAdd Intel Edison board which is using U-Boot.
The patch is based on work done by the following people (in alphabetical order):
Aiden Park <[email protected]>
Dukjoon Jeon <[email protected]>
eric.park <[email protected]>
Fabien Chereau <[email protected]>
Felipe Balbi <[email protected]>
Scott D Phillips <[email protected]> Sebastien Colleur <[email protected]> Steve Sakoman <[email protected]>
Vincent Tinelli <[email protected]>
In case we're building for Intel Edison, we must have 4096 bytes of zeroes in the beginning on u-boot.bin. This is done in board/intel/edison/config.mk.
First run sets hardware_id environment variable which is read from System Controller Unit (SCU).
Serial number (serial# environment variable) is generated based on eMMC CID.
MAC address on USB network interface is unique to the board but kept the same all over the time.
Set mac address from U-Boot using following scheme:
OUI = 02:00:86 next 3 bytes of MAC address set from eMMC serial number
This allows to have a unique mac address across reboot and flashing.
--- arch/x86/cpu/tangier/Kconfig | 4 ++ arch/x86/dts/Makefile | 1 + arch/x86/dts/edison.dts | 89 ++++++++++++++++++++++++++++++++++++ board/intel/Kconfig | 8 ++++ board/intel/edison/Kconfig | 26 +++++++++++ board/intel/edison/Makefile | 7 +++ board/intel/edison/config.mk | 18 ++++++++ board/intel/edison/edison.c | 104 +++++++++++++++++++++++++++++++++++++++++++ board/intel/edison/start.S | 13 ++++++ configs/edison_defconfig | 53 ++++++++++++++++++++++ doc/README.x86 | 39 ++++++++++++++++ include/configs/edison.h | 61 +++++++++++++++++++++++++ 12 files changed, 423 insertions(+) create mode 100644 arch/x86/dts/edison.dts create mode 100644 board/intel/edison/Kconfig create mode 100644 board/intel/edison/Makefile create mode 100644 board/intel/edison/config.mk create mode 100644 board/intel/edison/edison.c create mode 100644 board/intel/edison/start.S create mode 100644 configs/edison_defconfig create mode 100644 include/configs/edison.h
arch/x86/cpu/tangier/Kconfig +4 -0
@@ -18,3 +18,7 @@ config SYS_CAR_SIZE help Space in bytes in eSRAM used as Cache-As-RAM (CAR). Note this size must not exceed eSRAM's total size. + +config SYS_USB_OTG_BASE + hex + default 0xf9100000
arch/x86/dts/Makefile +1 -0
@@ -10,6 +10,7 @@ dtb-y += bayleybay.dtb \ cougarcanyon2.dtb \ crownbay.dtb \ dfi-bt700-q7x-151.dtb \ + edison.dtb \ efi.dtb \ galileo.dtb \ minnowmax.dtb \
arch/x86/dts/edison.dts new file +89 -0
89 lines not on this page · raw message
board/intel/Kconfig +8 -0
@@ -35,6 +35,13 @@ config TARGET_CROWNBAY Intel Platform Controller Hub EG20T, other system components and peripheral connectors for PCIe/SATA/USB/LAN/SD/UART/Audio/LVDS. +config TARGET_EDISON + bool "Edison" + help + This is the Intel Edison Compute Module. It contains a dual core Intel + Atom Tangier CPU, 1 GB RAM integrated on package. There is also 4 GB + eMMC flash on board, Wi-Fi, Bluetooth 4 and USB controllers. + config TARGET_GALILEO bool "Galileo" help
@@ -64,6 +71,7 @@ endchoice source "board/intel/bayleybay/Kconfig" source "board/intel/cougarcanyon2/Kconfig" source "board/intel/crownbay/Kconfig" +source "board/intel/edison/Kconfig" source "board/intel/galileo/Kconfig" source "board/intel/minnowmax/Kconfig"
board/intel/edison/Kconfig new file +26 -0
@@ -0,0 +1,26 @@ +if TARGET_EDISON + +config SYS_BOARD + default "edison" + +config SYS_VENDOR + default "intel" + +config SYS_SOC + default "tangier" + +config SYS_CONFIG_NAME + default "edison" + +config SYS_TEXT_BASE + default 0x01101000 + +config BOARD_SPECIFIC_OPTIONS # dummy + def_bool y + select X86_LOAD_FROM_32_BIT + select INTEL_MID + select INTEL_TANGIER + select BOARD_LATE_INIT + select MD5 + +endif
board/intel/edison/Makefile new file +7 -0
@@ -0,0 +1,7 @@ +# +# Copyright (c) 2017 Intel Corporation +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y += start.o edison.o
board/intel/edison/config.mk new file +18 -0
@@ -0,0 +1,18 @@ +# +# Copyright (c) 2011 The Chromium OS Authors. All rights reserved. +# Copyright (c) 2017 Intel Corporation +# +# SPDX-License-Identifier: GPL-2.0 BSD-3-Clause +# + +# Add 4096 bytes of zeroes to u-boot.bin +quiet_cmd_mkalign_eds = EDSALGN $@ +cmd_mkalign_eds = \ + dd if=$^ of=$@ bs=4k seek=1 2>/dev/null && \ + mv $@ $^ + +ALL-y += u-boot-align.bin +u-boot-align.bin: u-boot.bin + $(call if_changed,mkalign_eds) + +HOSTCFLAGS_autoconf.mk.dep = -Wno-variadic-macros
board/intel/edison/edison.c new file +104 -0
104 lines not on this page · raw message
board/intel/edison/start.S new file +13 -0
@@ -0,0 +1,13 @@ +/* + * Copyright (c) 2011 The Chromium OS Authors. + * (C) Copyright 2008 + * Graeme Russ, [email protected]. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +/* board early intialization */ +.globl early_board_init +early_board_init: + /* No 32-bit board specific initialisation */ + jmp early_board_init_ret
configs/edison_defconfig new file +53 -0
53 lines not on this page · raw message
doc/README.x86 +39 -0
@@ -18,6 +18,8 @@ U-Boot supports running as a coreboot [1] payload on x86. So far only Link work with minimal adjustments on other x86 boards since coreboot deals with most of the low-level details. +U-Boot is a main bootloader on Intel Edison board. + U-Boot also supports booting directly from x86 reset vector, without coreboot. In this case, known as bare mode, from the fact that it runs on the 'bare metal', U-Boot acts like a BIOS replacement. The following platforms
@@ -61,6 +63,16 @@ Change the 'Board configuration file' and 'Board Device Tree Source (dts) file' to point to a new board. You can also change the Cache-As-RAM (CAR) related settings here if the default values do not fit your new board. +Build Instructions for U-Boot as main bootloader +------------------------------------------------ + +Intel Edison instructions: + +Simple you can build U-Boot and obtain u-boot.bin + +$ make edison_defconfig +$ make all + Build Instructions for U-Boot as BIOS replacement (bare mode) ------------------------------------------------------------- Building a ROM version of U-Boot (hereafter referred to as u-boot.rom) is a
@@ -455,6 +467,33 @@ Here the kernel (bzImage) is loaded to 01000000 and initrd is to 04000000. Then, => zboot 01000000 - 04000000 1b1ab50 +Updating U-Boot on Edison +------------------------- +By default Intel Edison boards are shipped with preinstalled heavily +patched U-Boot v2014.04. Though it supports DFU which we may be able to +use. + +1. Prepare u-boot.bin as described in chapter above. You still need one +more step (if and only if you have original U-Boot), i.e. run the +following command: + +$ truncate -s %4096 u-boot.bin + +2. Run your board and interrupt booting to U-Boot console. In the console +call: + + => run do_force_flash_os + +3. Wait for few seconds, it will prepare environment variable and runs +DFU. Run DFU command from the host system: + +$ dfu-util -v -d 8087:0a99 --alt u-boot0 -D u-boot.bin + +4. Return to U-Boot console and following hint. i.e. push Ctrl+C, and +reset the board: + + => reset + CPU Microcode ------------- Modern CPUs usually require a special bit stream called microcode [8] to be
include/configs/edison.h new file +61 -0
61 lines not on this page · raw message
Signature · 1 line
2.11.0
PATCH v3 3/3 x86: Add Intel Edison board files
Quoted 50 lines · Andy Shevchenko
Add Intel Edison board which is using U-Boot.
The patch is based on work done by the following people (in alphabetical order):
Aiden Park <[email protected]>
Dukjoon Jeon <[email protected]>
eric.park <[email protected]>
Fabien Chereau <[email protected]>
Felipe Balbi <[email protected]>
Scott D Phillips <[email protected]> Sebastien Colleur <[email protected]> Steve Sakoman <[email protected]>
Vincent Tinelli <[email protected]>In case we're building for Intel Edison, we must have 4096 bytes of zeroes in the beginning on u-boot.bin. This is done in
board/intel/edison/config.mk.First run sets
hardware_idenvironment variable which is read from System Controller Unit (SCU).Serial number (serial# environment variable) is generated based on eMMC CID.
MAC address on USB network interface is unique to the board but kept the same all over the time.
Set mac address from U-Boot using following scheme:
OUI = 02:00:86
next 3 bytes of MAC address set from eMMC serial numberThis allows to have a unique mac address across reboot and flashing.
Signed-off-by Vincent Tinelli <[email protected]>Signed-off-by Felipe Balbi <[email protected]>Signed-off-by Andy Shevchenko <[email protected]>--- arch/x86/cpu/tangier/Kconfig | 4 ++ arch/x86/dts/Makefile | 1 + arch/x86/dts/edison.dts | 89 ++++++++++++++++++++++++++++++++++++ board/intel/Kconfig | 8 ++++ board/intel/edison/Kconfig | 26 +++++++++++ board/intel/edison/Makefile | 7 +++ board/intel/edison/config.mk | 18 ++++++++ board/intel/edison/edison.c | 104 +++++++++++++++++++++++++++++++++++++++++++ board/intel/edison/start.S | 13 ++++++ configs/edison_defconfig | 53 ++++++++++++++++++++++ doc/README.x86 | 39 ++++++++++++++++ include/configs/edison.h | 61 +++++++++++++++++++++++++ 12 files changed, 423 insertions(+)
Quoted 9 lines
create mode 100644 arch/x86/dts/edison.dts create mode 100644 board/intel/edison/Kconfig create mode 100644 board/intel/edison/Makefile create mode 100644 board/intel/edison/config.mk create mode 100644 board/intel/edison/edison.c create mode 100644 board/intel/edison/start.S create mode 100644 configs/edison_defconfig create mode 100644 include/configs/edison.h
PATCH v3 3/3 x86: Add Intel Edison board files
In reply to Andy ShevchenkoQuoted 50 lines · Andy Shevchenko
Add Intel Edison board which is using U-Boot.
The patch is based on work done by the following people (in alphabetical order):
Aiden Park <[email protected]>
Dukjoon Jeon <[email protected]>
eric.park <[email protected]>
Fabien Chereau <[email protected]>
Felipe Balbi <[email protected]>
Scott D Phillips <[email protected]> Sebastien Colleur <[email protected]> Steve Sakoman <[email protected]>
Vincent Tinelli <[email protected]>In case we're building for Intel Edison, we must have 4096 bytes of zeroes in the beginning on u-boot.bin. This is done in
board/intel/edison/config.mk.First run sets
hardware_idenvironment variable which is read from System Controller Unit (SCU).Serial number (serial# environment variable) is generated based on eMMC CID.
MAC address on USB network interface is unique to the board but kept the same all over the time.
Set mac address from U-Boot using following scheme:
OUI = 02:00:86
next 3 bytes of MAC address set from eMMC serial numberThis allows to have a unique mac address across reboot and flashing.
Signed-off-by Vincent Tinelli <[email protected]>Signed-off-by Felipe Balbi <[email protected]>Signed-off-by Andy Shevchenko <[email protected]>--- arch/x86/cpu/tangier/Kconfig | 4 ++ arch/x86/dts/Makefile | 1 + arch/x86/dts/edison.dts | 89 ++++++++++++++++++++++++++++++++++++ board/intel/Kconfig | 8 ++++ board/intel/edison/Kconfig | 26 +++++++++++ board/intel/edison/Makefile | 7 +++ board/intel/edison/config.mk | 18 ++++++++ board/intel/edison/edison.c | 104 +++++++++++++++++++++++++++++++++++++++++++ board/intel/edison/start.S | 13 ++++++ configs/edison_defconfig | 53 ++++++++++++++++++++++ doc/README.x86 | 39 ++++++++++++++++ include/configs/edison.h | 61 +++++++++++++++++++++++++ 12 files changed, 423 insertions(+)
Quoted 8 lines
create mode 100644 arch/x86/dts/edison.dts create mode 100644 board/intel/edison/Kconfig create mode 100644 board/intel/edison/Makefile create mode 100644 board/intel/edison/config.mk create mode 100644 board/intel/edison/edison.c create mode 100644 board/intel/edison/start.S create mode 100644 configs/edison_defconfig create mode 100644 include/configs/edison.h
Thanks for the README, will give it a try!
- Simon
PATCH v3 3/3 x86: Add Intel Edison board files
Quoted 61 lines · Simon Glass
Quoted 50 lines · Andy Shevchenko
Add Intel Edison board which is using U-Boot.
The patch is based on work done by the following people (in alphabetical order):
Aiden Park <[email protected]>
Dukjoon Jeon <[email protected]>
eric.park <[email protected]>
Fabien Chereau <[email protected]>
Felipe Balbi <[email protected]>
Scott D Phillips <[email protected]> Sebastien Colleur <[email protected]> Steve Sakoman <[email protected]>
Vincent Tinelli <[email protected]>In case we're building for Intel Edison, we must have 4096 bytes of zeroes in the beginning on u-boot.bin. This is done in
board/intel/edison/config.mk.First run sets
hardware_idenvironment variable which is read from System Controller Unit (SCU).Serial number (serial# environment variable) is generated based on eMMC CID.
MAC address on USB network interface is unique to the board but kept the same all over the time.
Set mac address from U-Boot using following scheme:
OUI = 02:00:86
next 3 bytes of MAC address set from eMMC serial numberThis allows to have a unique mac address across reboot and flashing.
Signed-off-by Vincent Tinelli <[email protected]>Signed-off-by Felipe Balbi <[email protected]>Signed-off-by Andy Shevchenko <[email protected]>--- arch/x86/cpu/tangier/Kconfig | 4 ++ arch/x86/dts/Makefile | 1 + arch/x86/dts/edison.dts | 89 ++++++++++++++++++++++++++++++++++++ board/intel/Kconfig | 8 ++++ board/intel/edison/Kconfig | 26 +++++++++++ board/intel/edison/Makefile | 7 +++ board/intel/edison/config.mk | 18 ++++++++ board/intel/edison/edison.c | 104 +++++++++++++++++++++++++++++++++++++++++++ board/intel/edison/start.S | 13 ++++++ configs/edison_defconfig | 53 ++++++++++++++++++++++ doc/README.x86 | 39 ++++++++++++++++ include/configs/edison.h | 61 +++++++++++++++++++++++++ 12 files changed, 423 insertions(+)Quoted 8 lines
create mode 100644 arch/x86/dts/edison.dts create mode 100644 board/intel/edison/Kconfig create mode 100644 board/intel/edison/Makefile create mode 100644 board/intel/edison/config.mk create mode 100644 board/intel/edison/edison.c create mode 100644 board/intel/edison/start.S create mode 100644 configs/edison_defconfig create mode 100644 include/configs/edison.h
Quoted 2 lines
Reviewed-by Simon Glass <[email protected]>
applied to u-boot-x86, thanks!