Skip to content

Commit bd5d074

Browse files
Add Feather DVI placeholder, Boot Stage 2 sub-menu for QSPI /2 or /4
VID/PID and canonical product name are TBD
1 parent 9fd5cdf commit bd5d074

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tools/makeboards.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,13 @@ def BuildBoot(name):
7575
print("%s.menu.boot2.%s=%s" % (name, l[1], l[0]))
7676
print("%s.menu.boot2.%s.build.boot2=%s" % (name, l[1], l[1]))
7777

78+
# Abbreviated Boot Stage 2 menu for some W25Q-equipped Adafruit boards.
79+
# In extreme overclock situations, these may require QSPI /4 to work.
80+
def BuildBootW25Q(name):
81+
for l in [ ("W25Q080 QSPI /2", "boot2_w25q080_2_padded_checksum"), ("W25Q080 QSPI /4", "boot2_w25q080_4_padded_checksum")]:
82+
print("%s.menu.boot2.%s=%s" % (name, l[1], l[0]))
83+
print("%s.menu.boot2.%s.build.boot2=%s" % (name, l[1], l[1]))
84+
7885
def BuildUSBStack(name):
7986
print("%s.menu.usbstack.picosdk=Pico SDK" % (name))
8087
print('%s.menu.usbstack.picosdk.build.usbstack_flags=' % (name))
@@ -217,6 +224,8 @@ def MakeBoard(name, vendor_name, product_name, vid, pid, pwr, boarddefine, flash
217224
BuildIPStack(name)
218225
if name == "generic":
219226
BuildBoot(name)
227+
elif name.startswith("adafruit") and "w25q080" in boot2:
228+
BuildBootW25Q(name)
220229
BuildUploadMethodMenu(name)
221230
MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, flashsizemb, boot2, extra)
222231
global pkgjson
@@ -323,6 +332,7 @@ def MakeBoardJSON(name, vendor_name, product_name, vid, pid, pwr, boarddefine, f
323332
# Adafruit
324333
MakeBoard("adafruit_feather", "Adafruit", "Feather RP2040", "0x239a", "0x80f1", 250, "ADAFRUIT_FEATHER_RP2040", 8, "boot2_w25x10cl_4_padded_checksum")
325334
MakeBoard("adafruit_feather_scorpio", "Adafruit", "Feather RP2040 SCORPIO", "0x239a", "0x8121", 250, "ADAFRUIT_FEATHER_RP2040_SCORPIO", 8, "boot2_w25q080_2_padded_checksum")
335+
MakeBoard("adafruit_feather_dvi", "Adafruit", "Feather RP2040 DVI", "0x239a", "0x8121", 250, "ADAFRUIT_FEATHER_RP2040_DVI", 8, "boot2_w25q080_2_padded_checksum")
326336
MakeBoard("adafruit_itsybitsy", "Adafruit", "ItsyBitsy RP2040", "0x239a", "0x80fd", 250, "ADAFRUIT_ITSYBITSY_RP2040", 8, "boot2_w25q080_2_padded_checksum")
327337
MakeBoard("adafruit_qtpy", "Adafruit", "QT Py RP2040", "0x239a", "0x80f7", 250, "ADAFRUIT_QTPY_RP2040", 8, "boot2_w25q080_2_padded_checksum")
328338
MakeBoard("adafruit_stemmafriend", "Adafruit", "STEMMA Friend RP2040", "0x239a", "0x80e3", 250, "ADAFRUIT_STEMMAFRIEND_RP2040", 8, "boot2_w25q080_2_padded_checksum")

0 commit comments

Comments
 (0)