From 354aecbed64793c5bf09861ff37dbcafdea5a357 Mon Sep 17 00:00:00 2001 From: dehanj Date: Wed, 19 Jun 2024 13:26:46 +0200 Subject: [PATCH] USB: move firmware for usb-to-serial MCU (CH552) Change links to the new ch552_fw directory. --- .github/workflows/ci.yaml | 2 +- doc/toolchain_setup.md | 2 +- hw/production_test/README.md | 2 +- .../ch552_fw/.gitignore | 0 .../mta1-usb-v1 => usb_interface}/ch552_fw/LICENSE | 0 .../mta1-usb-v1 => usb_interface}/ch552_fw/Makefile | 0 .../ch552_fw/Makefile.include | 0 .../ch552_fw/README.md | 0 .../ch552_fw/baud rate calculator.ods | Bin .../ch552_fw/encode_usb_strings.py | 0 .../ch552_fw/include/ch554.h | 0 .../ch552_fw/include/ch554_usb.h | 0 .../ch552_fw/include/debug.c | 0 .../ch552_fw/include/debug.h | 0 .../ch552_fw/inject_serial_number.py | 0 .../mta1-usb-v1 => usb_interface}/ch552_fw/main.c | 0 .../ch552_fw/usb_strings.h | 0 17 files changed, 3 insertions(+), 3 deletions(-) rename hw/{boards/mta1-usb-v1 => usb_interface}/ch552_fw/.gitignore (100%) rename hw/{boards/mta1-usb-v1 => usb_interface}/ch552_fw/LICENSE (100%) rename hw/{boards/mta1-usb-v1 => usb_interface}/ch552_fw/Makefile (100%) rename hw/{boards/mta1-usb-v1 => usb_interface}/ch552_fw/Makefile.include (100%) rename hw/{boards/mta1-usb-v1 => usb_interface}/ch552_fw/README.md (100%) rename hw/{boards/mta1-usb-v1 => usb_interface}/ch552_fw/baud rate calculator.ods (100%) rename hw/{boards/mta1-usb-v1 => usb_interface}/ch552_fw/encode_usb_strings.py (100%) rename hw/{boards/mta1-usb-v1 => usb_interface}/ch552_fw/include/ch554.h (100%) rename hw/{boards/mta1-usb-v1 => usb_interface}/ch552_fw/include/ch554_usb.h (100%) rename hw/{boards/mta1-usb-v1 => usb_interface}/ch552_fw/include/debug.c (100%) rename hw/{boards/mta1-usb-v1 => usb_interface}/ch552_fw/include/debug.h (100%) rename hw/{boards/mta1-usb-v1 => usb_interface}/ch552_fw/inject_serial_number.py (100%) rename hw/{boards/mta1-usb-v1 => usb_interface}/ch552_fw/main.c (100%) rename hw/{boards/mta1-usb-v1 => usb_interface}/ch552_fw/usb_strings.h (100%) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b3ebf84..557fac6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -78,7 +78,7 @@ jobs: git config --global --add safe.directory "$GITHUB_WORKSPACE" - name: compile ch552 firmware - working-directory: hw/boards/mta1-usb-v1/ch552_fw + working-directory: hw/usb_interface/ch552_fw run: make - name: compile tp1 firmware diff --git a/doc/toolchain_setup.md b/doc/toolchain_setup.md index c11cece..37c93e5 100644 --- a/doc/toolchain_setup.md +++ b/doc/toolchain_setup.md @@ -194,4 +194,4 @@ with the CH552 microcontroller pre-programmed. Toolchain setup and build instructions for this firmware are detailed in the -[ch552_fw directory](../hw/boards/mta1-usb-v1/ch552_fw/README.md) +[ch552_fw directory](../hw/usb_interface/ch552_fw/README.md) diff --git a/hw/production_test/README.md b/hw/production_test/README.md index fa6f6ef..4dab613 100644 --- a/hw/production_test/README.md +++ b/hw/production_test/README.md @@ -319,7 +319,7 @@ instructions. ### CH552 firmware See the build instructions in the -[ch552_fw](../boards/mta1-usb-v1/ch552_fw/README.md) directory. +[ch552_fw](../usb_interface/ch552_fw/README.md) directory. ### Test Application gateware diff --git a/hw/boards/mta1-usb-v1/ch552_fw/.gitignore b/hw/usb_interface/ch552_fw/.gitignore similarity index 100% rename from hw/boards/mta1-usb-v1/ch552_fw/.gitignore rename to hw/usb_interface/ch552_fw/.gitignore diff --git a/hw/boards/mta1-usb-v1/ch552_fw/LICENSE b/hw/usb_interface/ch552_fw/LICENSE similarity index 100% rename from hw/boards/mta1-usb-v1/ch552_fw/LICENSE rename to hw/usb_interface/ch552_fw/LICENSE diff --git a/hw/boards/mta1-usb-v1/ch552_fw/Makefile b/hw/usb_interface/ch552_fw/Makefile similarity index 100% rename from hw/boards/mta1-usb-v1/ch552_fw/Makefile rename to hw/usb_interface/ch552_fw/Makefile diff --git a/hw/boards/mta1-usb-v1/ch552_fw/Makefile.include b/hw/usb_interface/ch552_fw/Makefile.include similarity index 100% rename from hw/boards/mta1-usb-v1/ch552_fw/Makefile.include rename to hw/usb_interface/ch552_fw/Makefile.include diff --git a/hw/boards/mta1-usb-v1/ch552_fw/README.md b/hw/usb_interface/ch552_fw/README.md similarity index 100% rename from hw/boards/mta1-usb-v1/ch552_fw/README.md rename to hw/usb_interface/ch552_fw/README.md diff --git a/hw/boards/mta1-usb-v1/ch552_fw/baud rate calculator.ods b/hw/usb_interface/ch552_fw/baud rate calculator.ods similarity index 100% rename from hw/boards/mta1-usb-v1/ch552_fw/baud rate calculator.ods rename to hw/usb_interface/ch552_fw/baud rate calculator.ods diff --git a/hw/boards/mta1-usb-v1/ch552_fw/encode_usb_strings.py b/hw/usb_interface/ch552_fw/encode_usb_strings.py similarity index 100% rename from hw/boards/mta1-usb-v1/ch552_fw/encode_usb_strings.py rename to hw/usb_interface/ch552_fw/encode_usb_strings.py diff --git a/hw/boards/mta1-usb-v1/ch552_fw/include/ch554.h b/hw/usb_interface/ch552_fw/include/ch554.h similarity index 100% rename from hw/boards/mta1-usb-v1/ch552_fw/include/ch554.h rename to hw/usb_interface/ch552_fw/include/ch554.h diff --git a/hw/boards/mta1-usb-v1/ch552_fw/include/ch554_usb.h b/hw/usb_interface/ch552_fw/include/ch554_usb.h similarity index 100% rename from hw/boards/mta1-usb-v1/ch552_fw/include/ch554_usb.h rename to hw/usb_interface/ch552_fw/include/ch554_usb.h diff --git a/hw/boards/mta1-usb-v1/ch552_fw/include/debug.c b/hw/usb_interface/ch552_fw/include/debug.c similarity index 100% rename from hw/boards/mta1-usb-v1/ch552_fw/include/debug.c rename to hw/usb_interface/ch552_fw/include/debug.c diff --git a/hw/boards/mta1-usb-v1/ch552_fw/include/debug.h b/hw/usb_interface/ch552_fw/include/debug.h similarity index 100% rename from hw/boards/mta1-usb-v1/ch552_fw/include/debug.h rename to hw/usb_interface/ch552_fw/include/debug.h diff --git a/hw/boards/mta1-usb-v1/ch552_fw/inject_serial_number.py b/hw/usb_interface/ch552_fw/inject_serial_number.py similarity index 100% rename from hw/boards/mta1-usb-v1/ch552_fw/inject_serial_number.py rename to hw/usb_interface/ch552_fw/inject_serial_number.py diff --git a/hw/boards/mta1-usb-v1/ch552_fw/main.c b/hw/usb_interface/ch552_fw/main.c similarity index 100% rename from hw/boards/mta1-usb-v1/ch552_fw/main.c rename to hw/usb_interface/ch552_fw/main.c diff --git a/hw/boards/mta1-usb-v1/ch552_fw/usb_strings.h b/hw/usb_interface/ch552_fw/usb_strings.h similarity index 100% rename from hw/boards/mta1-usb-v1/ch552_fw/usb_strings.h rename to hw/usb_interface/ch552_fw/usb_strings.h