Add SPI Flash support for Orange PI R1

U-Boot SPL 2020.04 (Jul 05 2020 - 22:07:38 +0000)
DRAM: 256 MiB
Trying to boot from sunxi SPI

U-Boot 2020.04 (Jul 05 2020 - 22:07:38 +0000) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi R1
DRAM:  256 MiB
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Loading Environment from FAT... MMC: no card present
In:    serial
Out:   serial
Err:   serial
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
Bus usb@1c1a000: USB EHCI 1.00
Bus usb@1c1a400: USB OHCI 1.0
Bus usb@1c1b000: USB EHCI 1.00
scanning bus usb@1c1a000 for devices... 1 USB Device(s) found
scanning bus usb@1c1a400 for devices... 1 USB Device(s) found
scanning bus usb@1c1b000 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
=>
=>
=> sf probe
SF: Detected mx25l12805d with page size 256 Bytes, erase size 64 KiB, total 16 MiB
=>
This commit is contained in:
Yaroslav Petrov 2020-07-09 14:28:17 +02:00
parent 61608f395e
commit a5ab5039ba
2 changed files with 9 additions and 0 deletions

View File

@ -65,6 +65,7 @@
aliases {
ethernet1 = &rtl8189etv;
spi0 = &spi0;
};
};
@ -72,6 +73,7 @@
status = "okay";
flash@0 {
u-boot,dm-pre-reloc;
compatible = "mxicy,mx25l12805d", "jedec,spi-nor";
};
};

View File

@ -11,3 +11,10 @@ CONFIG_DEFAULT_DEVICE_TREE="sun8i-h2-plus-orangepi-r1"
CONFIG_SUN8I_EMAC=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_OHCI_HCD=y
CONFIG_CMD_SF=y
CONFIG_CMD_SPI=y
CONFIG_DM_SPI_FLASH=y
CONFIG_SPI_FLASH_MACRONIX=y
CONFIG_DM_SPI=y
CONFIG_SPI=y
CONFIG_SPL_SPI_SUNXI=y