[U-Boot] [PATCH 1/2] arm: sunxi: allwinner spi driver sun6i support

Alexander Graf agraf at suse.de
Thu Jan 24 21:49:57 UTC 2019



On 24.01.19 13:21, Andre Przywara wrote:
> On Thu, 24 Jan 2019 13:07:54 +0100
> Alexander Graf <agraf at suse.de> wrote:
> 
>> On 24.01.19 12:31, Andre Przywara wrote:
>>
>> Ok, that did not help. I guess the next best useful thing to do now
>> would be to measure what the MISO line shows in each situation.
>> Unfortunately I don't have my oscilloscope handy :).
> 
> Can't you configure PC1 as a gpio, and read that? Not sure the "gpio"
> command works with PC1 being a "function pin", but you could always hack
> it to GPIO-in by clearing bits[7:4] in 0x01C20848, with md.l/mw.l.

That showed a 0. But it doesn't really tell any story over time :).

However, I quickly added a bit of debug output to the SD command
emission code. And the spi flash already stops working while the eMMC is
booting up. So this is nothing we configure - the eMMC simply pulls that
line down automatically as soon as it's booted up.

If I configure it to not ever emit CMD1, the SF keeps working, but the
eMMC does not come up unfortunately. I guess it's not compatible to the
pure SD command set.


Alex

---

SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total
16 MiB
MMC CMD 0 ... allowed
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total
16 MiB
MMC CMD 8 ... allowed
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total
16 MiB
MMC CMD 55 ... allowed
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total
16 MiB
MMC CMD 0 ... allowed
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total
16 MiB
MMC CMD 1 ... allowed
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total
16 MiB
MMC CMD 1 ... allowed
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total
16 MiB
MMC CMD 0 ... allowed
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total
16 MiB
MMC CMD 1 ... allowed
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total
16 MiB
MMC CMD 1 ... allowed
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total
16 MiB
MMC CMD 1 ... allowed
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total
16 MiB
MMC CMD 1 ... allowed
SF: unrecognized JEDEC id bytes: 00, 00, 00
Failed to initialize SPI flash at 0:0 (error -2)
MMC CMD 1 ... allowed
SF: unrecognized JEDEC id bytes: 00, 00, 00
Failed to initialize SPI flash at 0:0 (error -2)
MMC CMD 2 ... allowed
SF: unrecognized JEDEC id bytes: 00, 00, 00
Failed to initialize SPI flash at 0:0 (error -2)
MMC CMD 3 ... allowed
[...]


Alex


More information about the U-Boot mailing list