add pinmux generator to create litex pinmap
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Oct 2020 18:54:22 +0000 (19:54 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 2 Oct 2020 18:54:22 +0000 (19:54 +0100)
.gitmodules
Makefile
libreriscv
mkpinmux.sh [new file with mode: 0755]
pinmux [new submodule]

index 86460ee7de0bff5a7ec1c31dfecee506badc0233..b03ac66142134d1123cd5b5cfa37e8583d1c69ae 100644 (file)
@@ -2,7 +2,7 @@
        path = nmigen-type-annotations
        url = https://salsa.debian.org/Kazan-team/nmigen-type-annotations.git
        branch = master
-[submodule "libreriscv"]
+[submodule "pinmux"]
        path = pinmux
        url = https://git.libre-soc.org/git/pinmux.git
 [submodule "libreriscv"]
index 2228b2c6559b3a5fb21e6e5d9e32da3595675c3f..37d353c14d21749351e06d6163f777ea4476dc2d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,16 @@ PYTHON3 ?= "python3"
 
 gitupdate:
        git submodule init
-       git submodule update --recursive
+       git submodule update --init --recursive --remote
 
-install:
+mkpinmux:
+       ./mkpinmux.sh
+       cp pinmux/ls180/ls180_pins.py src/soc/debug
+       cp pinmux/ls180/ls180_pins.py src/soc/litex/florent/libresoc
+
+install: develop mkpinmux
+
+develop:
        python3 setup.py develop # yes, develop, not install
        python3 src/soc/decoder/pseudo/pywriter.py
 
index a6b06f68cf33e794241584e43a6892d88bb3a0ea..cdd0f8a50f3c15703d8b507333b5df526b86210c 160000 (submodule)
@@ -1 +1 @@
-Subproject commit a6b06f68cf33e794241584e43a6892d88bb3a0ea
+Subproject commit cdd0f8a50f3c15703d8b507333b5df526b86210c
diff --git a/mkpinmux.sh b/mkpinmux.sh
new file mode 100755 (executable)
index 0000000..b122611
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+cd pinmux
+python2 src/pinmux_generator.py -v -s ls180 -o ls180
diff --git a/pinmux b/pinmux
new file mode 160000 (submodule)
index 0000000..f1e4b3a
--- /dev/null
+++ b/pinmux
@@ -0,0 +1 @@
+Subproject commit f1e4b3a8bc48bcdfca867a0322096556e8317984