Procházet zdrojové kódy

projects/boot_stub: Add support for a few other boards

 - iCEpick multitool
 - osmocom icE1usb interface
 - osmocom E1 tracer board

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Sylvain Munaut před 4 roky
rodič
revize
4aafd09833

+ 12 - 0
projects/boot_stub/data/top-e1tracer.pcf

@@ -0,0 +1,12 @@
+# USB
+set_io -nowarn usb_dp 10
+set_io -nowarn usb_dn 9
+set_io -nowarn usb_pu 6
+
+# Button
+set_io -nowarn -pullup yes btn 25
+
+# Leds
+set_io -nowarn rgb[0] 39
+set_io -nowarn rgb[1] 40
+set_io -nowarn rgb[2] 41

+ 12 - 0
projects/boot_stub/data/top-ice1usb.pcf

@@ -0,0 +1,12 @@
+# USB
+set_io -nowarn usb_dp 10
+set_io -nowarn usb_dn  9
+set_io -nowarn usb_pu 11
+
+# Button
+set_io -nowarn -pullup yes btn 18
+
+# Leds
+set_io -nowarn rgb[0] 39
+set_io -nowarn rgb[1] 40
+set_io -nowarn rgb[2] 41

+ 12 - 0
projects/boot_stub/data/top-icepick.pcf

@@ -0,0 +1,12 @@
+# USB
+set_io -nowarn usb_dp 10
+set_io -nowarn usb_dn 9
+set_io -nowarn usb_pu 6
+
+# Button
+set_io -nowarn -pullup yes btn 25
+
+# Leds
+set_io -nowarn rgb[0] 39
+set_io -nowarn rgb[1] 40
+set_io -nowarn rgb[2] 41

+ 16 - 0
projects/boot_stub/rtl/boards.vh

@@ -53,6 +53,22 @@
 	`define RGB_DIM 3
 	`define RGB_MAP 12'h012		// 41=Red, 40=Green, 39=Blue
 //	`define RGB_MAP 12'h120		// 41=Green, 40=Blue, 39=Red (Hacked v1.0b)
+`elsif BOARD_ICEPICK
+	// iCEpick
+	`define HAS_RGB
+	`define HAS_USB
+	`define RGB_MAP 12'h012		// 41=Red, 40=Green, 39=Blue
+//	`define RGB_MAP 12'h210		// 41=Blue, 40=Green, 39=Red (Alt RGB LED)
+`elsif BOARD_ICE1USB
+	// icE1usb
+	`define HAS_USB
+	`define HAS_RGB
+	`define RGB_MAP 12'h012		// 41=Red, 40=Green, 39=Blue
+`elsif BOARD_E1TRACER
+	// osmocom E1 tracer
+	`define HAS_USB
+	`define HAS_RGB
+	`define RGB_MAP 12'h012		// 41=Red, 40=Green, 39=Blue
 `endif
 
 // Defaults