boards: Remove flash wake up commands

Wake from deep power down is now handled in the driver. Remove attempt
to wake the board files.

Signed-off-by: Jeffrey Bailey <wb.jeffrey@gmail.com>
[daniel@redfelineninja.org.uk: Update commit message, simplify
slightly, extended to all boards with spinor flash and update
gitmodules to bring in the flash driver updates.]
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
This commit is contained in:
Jeffrey Bailey 2020-08-20 18:08:12 -04:00 committed by Daniel Thompson
parent 7075f5689e
commit f924bb6414
4 changed files with 4 additions and 24 deletions

View file

@ -106,16 +106,9 @@ try:
boot_msg("Init motor")
vibrator = Vibrator(Pin('MOTOR', Pin.OUT, value=0), active_low=True)
# Release flash from deep power-down
boot_msg("Wake SPINOR")
nor_cs = Pin('NOR_CS', Pin.OUT, value=1)
nor_cs(0)
spi.write('\xAB')
nor_cs(1)
# Mount the filesystem
boot_msg("Init SPINOR")
flash = FLASH(spi, (nor_cs,))
flash = FLASH(spi, (Pin('NOR_CS', Pin.OUT, value=1),))
try:
boot_msg("Mount FS")
os.mount(flash, '/flash')

View file

@ -94,16 +94,9 @@ try:
_callback)
vibrator = Vibrator(Pin('MOTOR', Pin.OUT, value=0), active_low=True)
# Release flash from deep power-down
boot_msg("Wake SPINOR")
nor_cs = Pin('NOR_CS', Pin.OUT, value=1)
nor_cs(0)
spi.write('\xAB')
nor_cs(1)
# Mount the filesystem
boot_msg("Init SPINOR")
flash = FLASH(spi, (nor_cs,))
flash = FLASH(spi, (Pin('NOR_CS', Pin.OUT, value=1),))
try:
boot_msg("Mount FS")
os.mount(flash, '/flash')

View file

@ -96,15 +96,9 @@ try:
_callback)
vibrator = Vibrator(Pin('MOTOR', Pin.OUT, value=0), active_low=True)
# Release flash from deep power-down
boot_msg("Wake SPINOR")
nor_cs = Pin('NOR_CS', Pin.OUT, value=1)
nor_cs(0)
spi.write('\xAB')
nor_cs(1)
# Mount the filesystem
boot_msg("Init SPINOR")
nor_cs = Pin('NOR_CS', Pin.OUT, value=1)
flash = FLASH(spi, (nor_cs,))
try:
boot_msg("Mount FS")

@ -1 +1 @@
Subproject commit 8105da265b5c1779a1a4e93392c348f58c149cab
Subproject commit bc498ac0a8306e32327aa4e66d78c567856f3cf5