diff options
author | Alex White <alex.white@oarcorp.com> | 2023-02-14 09:51:27 -0600 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2023-03-14 09:29:16 -0500 |
commit | 725e5ce27f02d38a4e0e429f214b4ed8a052f814 (patch) | |
tree | a3f9544102d1a74a8f113869d2d40ba77ce6dadf /spec/build/bsps/microblaze/microblaze_fpga | |
parent | validation: Fix typo (diff) | |
download | rtems-725e5ce27f02d38a4e0e429f214b4ed8a052f814.tar.bz2 |
bsps/microblaze: Add AXI GPIO driver
Diffstat (limited to 'spec/build/bsps/microblaze/microblaze_fpga')
11 files changed, 184 insertions, 0 deletions
diff --git a/spec/build/bsps/microblaze/microblaze_fpga/grp.yml b/spec/build/bsps/microblaze/microblaze_fpga/grp.yml index f3088a68a3..4d1ac0f426 100644 --- a/spec/build/bsps/microblaze/microblaze_fpga/grp.yml +++ b/spec/build/bsps/microblaze/microblaze_fpga/grp.yml @@ -29,6 +29,24 @@ links: - role: build-dependency uid: optdtbheaderpath - role: build-dependency + uid: optgpio2enable +- role: build-dependency + uid: optgpio1baseaddress +- role: build-dependency + uid: optgpio2baseaddress +- role: build-dependency + uid: optgpio1dualchannel +- role: build-dependency + uid: optgpio2dualchannel +- role: build-dependency + uid: optgpio1irq +- role: build-dependency + uid: optgpio2irq +- role: build-dependency + uid: optgpio1interrupt +- role: build-dependency + uid: optgpio2interrupt +- role: build-dependency uid: opticachebaseaddress - role: build-dependency uid: opticachelinelen diff --git a/spec/build/bsps/microblaze/microblaze_fpga/obj.yml b/spec/build/bsps/microblaze/microblaze_fpga/obj.yml index 2bbe50d3d9..487a99aae9 100644 --- a/spec/build/bsps/microblaze/microblaze_fpga/obj.yml +++ b/spec/build/bsps/microblaze/microblaze_fpga/obj.yml @@ -15,6 +15,7 @@ install: source: - bsps/microblaze/microblaze_fpga/include/bsp/irq.h - bsps/microblaze/microblaze_fpga/include/bsp/jffs2_qspi.h + - bsps/microblaze/microblaze_fpga/include/bsp/microblaze-gpio.h - bsps/microblaze/include/bsp/microblaze-fdt-support.h - bsps/microblaze/include/common/xil_types.h - bsps/microblaze/include/dev/serial/uartlite.h @@ -25,6 +26,7 @@ source: - bsps/microblaze/microblaze_fpga/console/console-io.c - bsps/microblaze/microblaze_fpga/console/debug-io.c - bsps/microblaze/microblaze_fpga/fs/jffs2_qspi.c +- bsps/microblaze/microblaze_fpga/gpio/microblaze-gpio.c - bsps/microblaze/microblaze_fpga/irq/irq.c - bsps/microblaze/microblaze_fpga/start/_debug_sw_break_handler.S - bsps/microblaze/microblaze_fpga/start/_exception_handler.S diff --git a/spec/build/bsps/microblaze/microblaze_fpga/optgpio1baseaddress.yml b/spec/build/bsps/microblaze/microblaze_fpga/optgpio1baseaddress.yml new file mode 100644 index 0000000000..f525b0468b --- /dev/null +++ b/spec/build/bsps/microblaze/microblaze_fpga/optgpio1baseaddress.yml @@ -0,0 +1,20 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- assert-uint32: null +- env-assign: null +- format-and-define: null +build-type: option +copyrights: +- Copyright (C) 2022 On-Line Applications Research Corporation (OAR) +default: +- enabled-by: true + value: 0x40000000 +default-by-variant: [] +description: | + base address of GPIO 1 +enabled-by: true +format: '{:#010x}' +links: [] +name: BSP_MICROBLAZE_FPGA_GPIO1_BASE +type: build diff --git a/spec/build/bsps/microblaze/microblaze_fpga/optgpio1dualchannel.yml b/spec/build/bsps/microblaze/microblaze_fpga/optgpio1dualchannel.yml new file mode 100644 index 0000000000..c8810e2a9a --- /dev/null +++ b/spec/build/bsps/microblaze/microblaze_fpga/optgpio1dualchannel.yml @@ -0,0 +1,17 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2022 On-Line Applications Research Corporation (OAR) +default: +- enabled-by: true + value: true +default-by-variant: [] +description: | + GPIO 1 is dual channel +enabled-by: true +links: [] +name: BSP_MICROBLAZE_FPGA_GPIO1_DUAL_CHANNEL +type: build diff --git a/spec/build/bsps/microblaze/microblaze_fpga/optgpio1interrupt.yml b/spec/build/bsps/microblaze/microblaze_fpga/optgpio1interrupt.yml new file mode 100644 index 0000000000..59df9b1bce --- /dev/null +++ b/spec/build/bsps/microblaze/microblaze_fpga/optgpio1interrupt.yml @@ -0,0 +1,17 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2022 On-Line Applications Research Corporation (OAR) +default: +- enabled-by: true + value: true +default-by-variant: [] +description: | + GPIO 1 has interrupt +enabled-by: true +links: [] +name: BSP_MICROBLAZE_FPGA_GPIO1_INTERRUPT +type: build diff --git a/spec/build/bsps/microblaze/microblaze_fpga/optgpio1irq.yml b/spec/build/bsps/microblaze/microblaze_fpga/optgpio1irq.yml new file mode 100644 index 0000000000..69e3c5d2d5 --- /dev/null +++ b/spec/build/bsps/microblaze/microblaze_fpga/optgpio1irq.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- assert-uint32: null +- define: null +build-type: option +copyrights: +- Copyright (C) 2022 On-Line Applications Research Corporation (OAR) +default: +- enabled-by: true + value: 8 +default-by-variant: [] +description: | + the IRQ number of GPIO 1 +enabled-by: true +format: '{}' +links: [] +name: BSP_MICROBLAZE_FPGA_GPIO1_IRQ +type: build diff --git a/spec/build/bsps/microblaze/microblaze_fpga/optgpio2baseaddress.yml b/spec/build/bsps/microblaze/microblaze_fpga/optgpio2baseaddress.yml new file mode 100644 index 0000000000..2da5cd722e --- /dev/null +++ b/spec/build/bsps/microblaze/microblaze_fpga/optgpio2baseaddress.yml @@ -0,0 +1,20 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- assert-uint32: null +- env-assign: null +- format-and-define: null +build-type: option +copyrights: +- Copyright (C) 2022 On-Line Applications Research Corporation (OAR) +default: +- enabled-by: true + value: 0x40010000 +default-by-variant: [] +description: | + base address of GPIO 2 +enabled-by: BSP_MICROBLAZE_FPGA_GPIO2_ENABLED +format: '{:#010x}' +links: [] +name: BSP_MICROBLAZE_FPGA_GPIO2_BASE +type: build diff --git a/spec/build/bsps/microblaze/microblaze_fpga/optgpio2dualchannel.yml b/spec/build/bsps/microblaze/microblaze_fpga/optgpio2dualchannel.yml new file mode 100644 index 0000000000..c6d4819d8c --- /dev/null +++ b/spec/build/bsps/microblaze/microblaze_fpga/optgpio2dualchannel.yml @@ -0,0 +1,17 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2022 On-Line Applications Research Corporation (OAR) +default: +- enabled-by: true + value: false +default-by-variant: [] +description: | + GPIO 2 is dual channel +enabled-by: BSP_MICROBLAZE_FPGA_GPIO2_ENABLED +links: [] +name: BSP_MICROBLAZE_FPGA_GPIO2_DUAL_CHANNEL +type: build diff --git a/spec/build/bsps/microblaze/microblaze_fpga/optgpio2enable.yml b/spec/build/bsps/microblaze/microblaze_fpga/optgpio2enable.yml new file mode 100644 index 0000000000..65e9be167e --- /dev/null +++ b/spec/build/bsps/microblaze/microblaze_fpga/optgpio2enable.yml @@ -0,0 +1,18 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- env-enable: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2022 On-Line Applications Research Corporation (OAR) +default: +- enabled-by: true + value: false +default-by-variant: [] +description: | + GPIO 2 is enabled +enabled-by: true +links: [] +name: BSP_MICROBLAZE_FPGA_GPIO2_ENABLED +type: build diff --git a/spec/build/bsps/microblaze/microblaze_fpga/optgpio2interrupt.yml b/spec/build/bsps/microblaze/microblaze_fpga/optgpio2interrupt.yml new file mode 100644 index 0000000000..de579426d2 --- /dev/null +++ b/spec/build/bsps/microblaze/microblaze_fpga/optgpio2interrupt.yml @@ -0,0 +1,17 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-boolean: null +- define-condition: null +build-type: option +copyrights: +- Copyright (C) 2022 On-Line Applications Research Corporation (OAR) +default: +- enabled-by: true + value: true +default-by-variant: [] +description: | + GPIO 2 has interrupt +enabled-by: BSP_MICROBLAZE_FPGA_GPIO2_ENABLED +links: [] +name: BSP_MICROBLAZE_FPGA_GPIO2_INTERRUPT +type: build diff --git a/spec/build/bsps/microblaze/microblaze_fpga/optgpio2irq.yml b/spec/build/bsps/microblaze/microblaze_fpga/optgpio2irq.yml new file mode 100644 index 0000000000..18b64f3680 --- /dev/null +++ b/spec/build/bsps/microblaze/microblaze_fpga/optgpio2irq.yml @@ -0,0 +1,19 @@ +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause +actions: +- get-integer: null +- assert-uint32: null +- define: null +build-type: option +copyrights: +- Copyright (C) 2022 On-Line Applications Research Corporation (OAR) +default: +- enabled-by: true + value: 9 +default-by-variant: [] +description: | + the IRQ number of GPIO 2 +enabled-by: BSP_MICROBLAZE_FPGA_GPIO2_ENABLED +format: '{}' +links: [] +name: BSP_MICROBLAZE_FPGA_GPIO2_IRQ +type: build |