- 23 Nov, 2020 1 commit
-
-
Icenowy Zheng authored
spi: Add H616 support
-
- 19 Nov, 2020 1 commit
-
-
Andre Przywara authored
The H616 SPI is very similar to the H6, only differs in the GPIOs (again). Add the SoC-ID at the right places and add the GPIOs according to the manual. Tested on OrangePi Zero 2. Signed-off-by: Andre Przywara <osp@andrep.de>
-
- 12 Nov, 2020 1 commit
-
-
Chen-Yu Tsai authored
wdreset: Add remaining SoCs
-
- 10 Nov, 2020 6 commits
-
-
Chen-Yu Tsai authored
Enabling SPI flash support for H6 & R40 (+ fixes)
-
Chen-Yu Tsai authored
meminfo: Replace sys/io.h by direct register accesses.
-
Andre Przywara authored
The CCU section in all Allwinner manuals asks to de-assert the reset signal first, then to ungate the bus clock. On a nearby note it also requires to switch dividers before changing the clock source. The SPI flash code violated those two rules, fix this to make the code more robust. Signed-off-by: Andre Przywara <osp@andrep.de>
-
Andre Przywara authored
Shifting signed types to the left is dodgy, especially by 31 bits, since it depends on the result type whether the result is undefined or not. Do not take any chances here, and mark those shift bases as unsigned where we can or will hit bit 31, to avoid undefined behaviour. Signed-off-by: Andre Przywara <osp@andrep.de>
-
Andre Przywara authored
As Icenowy rightfully assumed, the V831 SPI support covers the H6 as well. The only difference was a slight deviation in the pinmux setup: the H6 has the SPI0-CS on pin PC5, the V831 on pin PC1. Just add the right SoC ID and tweak the pinmux setup to enable it. Tested on a Pine H64. Signed-off-by: Andre Przywara <osp@andrep.de>
-
Andre Przywara authored
The R40 is closely related to the A20, but has in fact a newer generation SPI controller. Add the R40 SoC ID to the right places to enable SPI support. Tested on a Bananapi M2 Berry with SPI flash attached to header pins. Signed-off-by: Andre Przywara <osp@andrep.de>
-
- 08 Nov, 2020 1 commit
-
-
Andre Przywara authored
The "wdreset" command so far only covered a few SoCs. Add the watchdog data for the other ones as well. Signed-off-by: Andre Przywara <osp@andrep.de>
-
- 20 Oct, 2020 1 commit
-
-
Chen-Yu Tsai authored
spi: fix GPIO base address
-
- 19 Oct, 2020 1 commit
-
-
Nazım Gediz Aydındoğmuş authored
Resolve typo for GPIO base address for SoCs other than V831. Signed-off-by: Nazım Gediz Aydındoğmuş <gedizaydindogmus@gmail.com>
-
- 08 Oct, 2020 1 commit
-
-
Danny Milosavljevic authored
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
-
- 06 Oct, 2020 1 commit
-
-
Icenowy Zheng authored
Add support for H616
-
- 02 Oct, 2020 1 commit
-
-
Jernej Skrabec authored
-
- 29 Sep, 2020 7 commits
-
-
Chen-Yu Tsai authored
V831 SoC support
-
Icenowy Zheng authored
The Allwinner V831 SoC has similar memory map and CCU with H6. Add support for it by make the code to dynamically acquire the SPI0 memory base and add clock setup for V831. These code should work on H6 too, but I am too lazy to test it. Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
-
Icenowy Zheng authored
V831 SoC is one of sun8i family (with Cortex-A7 CPUs), and it follows a similar memory map with H6. Add support for it. The detection for H6-style memory map is positive on V831, because it have the same version of GIC at the same address. Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
-
Icenowy Zheng authored
The non-IRQ stack is moved to near the end of the SRAM C, which is very high, and have no need to save. Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
-
Chen-Yu Tsai authored
fel: enable A83T MMU
-
Chen-Yu Tsai authored
fel: SPI: add Eon support
-
Chen-Yu Tsai authored
spi: add support for V3s SoC
-
- 19 Sep, 2020 2 commits
-
-
Icenowy Zheng authored
Add the JEDEC manufacturer ID for Eon to the list of recognized vendors, also add the EN25QH series to the list of supported chips. Those chips are used on some internal boards with V831 from Sipeed now, but the chips themselves are widely available on the market. Tag the struct definition with the member names on the way to improve readability of the SPI flash chip description. Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
-
Icenowy Zheng authored
The Allwinner V3s SoC have the same SPI0 pinmux configuration, SPI clock configuration and SPI controller (base address and the controller) with H3. Add spiflash support for it. Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
-
- 14 Sep, 2020 2 commits
-
-
Chen-Yu Tsai authored
Add support for reading A10 SPI flash
-
Adrian Nistor authored
-
- 14 Jun, 2020 4 commits
-
-
Chen-Yu Tsai authored
A20 wdreset support
-
Chen-Yu Tsai authored
Provide a wrapper for reset via watchdog Tested-By: Priit Laes plaes@plaes.org # On A20 with custom patch
-
Priit Laes authored
Signed-off-by: Priit Laes <plaes@plaes.org>
-
Karl Palsson authored
The watchdog register isn't in the same place, nor uses the same values to trigger a reset. Signed-off-by: Karl Palsson <karlp@tweak.net.au>
-
- 20 Apr, 2020 1 commit
-
-
Karl Palsson authored
The watchdog register isn't in the same place, nor uses the same values to trigger a reset. Signed-off-by: Karl Palsson <karlp@tweak.net.au>
-
- 04 Jun, 2019 1 commit
-
-
Icenowy Zheng authored
FEL: introduce semantic versioning for SPL header
-
- 18 Mar, 2019 1 commit
-
-
Chen-Yu Tsai authored
Add support for SPI on A20
-
- 08 Jan, 2019 2 commits
-
-
Priit Laes authored
A20 (as does A10) uses pins 0,1,2 and 23 in bank C for SPI 0. Signed-off-by: Priit Laes <priit.laes@paf.com>
-
Priit Laes authored
Signed-off-by: Priit Laes <priit.laes@paf.com>
-
- 02 Dec, 2018 1 commit
-
-
Andre Przywara authored
Every addition of a new feature to the SPL header currently requires us to update the FEL tool, to teach it about the new supported maximum value. Many times the FEL tool doesn't really care, but complains anyway - and refuses to load. Let's introduce semantic versioning [1] for this field, where backwards compatible additions just increase a minor number, but incompatible changes require bumping the major version. We have 8 bits for the SPL header version, let's split this to have 3 bits for the major and 5 bit for the minor version number. [1] https://semver.org Signed-off-by: Andre Przywara <osp@andrep.de> Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
-
- 14 Nov, 2018 1 commit
-
-
Chen-Yu Tsai authored
v1.5-rc1
-
- 09 Jul, 2018 3 commits
-
-
Ian Campbell authored
In the first case: pio.c: In function ‘main’: pio.c:355:4: warning: this statement may fall through [-Wimplicit-fallthrough=] usage(0); ^~~~~~~~ pio.c:356:3: note: here case 'm': ^~~~ The fallthrough is not intended because `usage()` never returns (it calls `exit` unconditionally). Annotate as `noreturn` so the compiler realises this. In the second case: fexc.c: In function ‘main’: fexc.c:312:15: warning: this statement may fall through [-Wimplicit-fallthrough=] filename[1] = argv[optind+1]; /* out */ ~~~~~~~~~~~~^~~~~~~~~~~~~~~~ fexc.c:313:2: note: here case 1: ^~~~ The fallthrough appears to be intended (the two argument case is a superset of the one argument case). Annotate with a comment which tells the compiler this is intended. Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
-
Andre Przywara authored
Add the JEDEC manufacturer ID for Macronix to the list of recognized vendors, also add the MX25L series to the list of supported chips. Those chips are used on the OrangePi PC 2 boards, for instance. Tag the struct definition with the member names on the way to improve readability of the SPI flash chip description. Signed-off-by: Andre Przywara <osp@andrep.de>
-
Siarhei Siamashka authored
Using the new AAPCS function remote execution support, add support to read from and write to SPI flash connected to a device. This allows flashing boot code to a device. Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com> [Andre: adjust to upstream changes] Signed-off-by: Andre Przywara <osp@andrep.de>
-