Skip to content

Commit

Permalink
[ Pinebook ] Update atf and u-boot patches. Affects also Teres and Ol…
Browse files Browse the repository at this point in the history
…inuxino
  • Loading branch information
igorpecovnik committed Nov 9, 2018
1 parent 0c9b42f commit f831e2d
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 27 deletions.
2 changes: 1 addition & 1 deletion config/boards/pinebook-a64.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ CLI_TARGET=""
DESKTOP_TARGET="xenial:default"
#
CLI_BETA_TARGET=""
DESKTOP_BETA_TARGET=""
DESKTOP_BETA_TARGET=""
3 changes: 2 additions & 1 deletion config/sources/sun50iw1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,13 @@ case $BRANCH in
BOOTENV_FILE='sun50iw1-next.txt'
BOOTSOURCE='https://github.com/anarsoul/u-boot-pine64'
BOOTDIR=$MAINLINE_UBOOT_DIR
BOOTBRANCH='branch:pinebook-wip-20180617'
BOOTBRANCH='branch:pinebook-wip-20181104'
BOOTPATCHDIR='u-boot-sun50iw2'
UBOOT_USE_GCC='> 7.0'
UBOOT_TARGET_MAP=';;spl/sunxi-spl.bin u-boot.itb'
BOOTSCRIPT='boot-sun50i-next.cmd:boot.cmd'
GOVERNOR=ondemand

;;
esac

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ diff --git a/configs/a64-olinuxino_defconfig b/configs/a64-olinuxino_defconfig
index b32df99..4497dbe 100644
--- a/configs/a64-olinuxino_defconfig
+++ b/configs/a64-olinuxino_defconfig
@@ -9,6 +9,8 @@ CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-olinuxino"
@@ -9,6 +9,8 @@ CONFIG_NR_DRAM_BANKS=1
# CONFIG_CMD_FLASH is not set
# CONFIG_SPL_DOS_PARTITION is not set
# CONFIG_SPL_EFI_PARTITION is not set
+CONFIG_SPL_SPI_FLASH_SUPPORT=y
+CONFIG_SPL_SPI_SUNXI=y
CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-olinuxino"
CONFIG_SUN8I_EMAC=y
CONFIG_USB_EHCI_HCD=y
CONFIG_SYS_USB_EVENT_POLL_VIA_INT_QUEUE=y
10 changes: 5 additions & 5 deletions patch/u-boot/u-boot-sun50iw2/add-teres.patch
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ index 0000000000..da33b4131d
+CONFIG_VIDEO_BRIDGE_ANALOGIX_ANX6345=y
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -392,7 +392,8 @@ dtb-$(CONFIG_MACH_SUN50I) += \
sun50i-a64-orangepi-win.dtb \
@@ -406,7 +406,8 @@ dtb-$(CONFIG_MACH_SUN50I) += \
sun50i-a64-pine64-plus.dtb \
sun50i-a64-pine64.dtb \
- sun50i-a64-pinebook.dtb
+ sun50i-a64-pinebook.dtb \
+ sun50i-a64-teres-i.dtb
sun50i-a64-pinebook.dtb \
- sun50i-a64-sopine-baseboard.dtb
+ sun50i-a64-sopine-baseboard.dtb \
+ sun50i-a64-teres-i.dtb
dtb-$(CONFIG_MACH_SUN9I) += \
sun9i-a80-optimus.dtb \
sun9i-a80-cubieboard4.dtb \
10 changes: 5 additions & 5 deletions patch/u-boot/u-boot-sun50iw2/enable-autoboot-keyed.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 53eae8953e..1e931a0eb0 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -696,6 +696,8 @@ config ARCH_SUNXI
select USB_STORAGE if DISTRO_DEFAULTS
@@ -843,6 +843,8 @@ config ARCH_SUNXI
select USB_KEYBOARD if DISTRO_DEFAULTS
select USB_STORAGE if DISTRO_DEFAULTS
select USE_TINY_PRINTF
+ imply AUTOBOOT_KEYED
+ imply AUTOBOOT_KEYED_CTRLC
+ imply AUTOBOOT_KEYED_CTRLC
imply CMD_DM
imply CMD_GPT
imply FAT_WRITE
imply PRE_CONSOLE_BUFFER
imply CMD_UBI if NAND
diff --git a/cmd/Kconfig b/cmd/Kconfig
index d6d130edfa..46ed3a9d76 100644
--- a/cmd/Kconfig
Expand Down
13 changes: 0 additions & 13 deletions patch/u-boot/u-boot-sun50iw2/fix-A64-mmc2-remove-PC1-pin.patch

This file was deleted.

0 comments on commit f831e2d

Please sign in to comment.