From a434cc80cb00e2f15a51205d6b813fc8c58803ac Mon Sep 17 00:00:00 2001 From: Christian Mauderer Date: Tue, 24 Nov 2020 17:22:38 +0100 Subject: bsps/shared: Adapt fsl-edma driver for imxrt Note: The changes have been done with portability in mind. The driver should (in theory) be able to replace the original one in the MPC BSPs too. For full compatibility an adaption layer and especially a test would be necessary. Because both are missing, don't integrate it into the MPC BSP now. Update #4180 --- spec/build/bsps/arm/imxrt/bspimxrt.yml | 2 ++ spec/build/bsps/arm/imxrt/optfsledmaemlm.yml | 16 ++++++++++++++++ spec/build/bsps/obj.yml | 5 +++++ 3 files changed, 23 insertions(+) create mode 100644 spec/build/bsps/arm/imxrt/optfsledmaemlm.yml (limited to 'spec') diff --git a/spec/build/bsps/arm/imxrt/bspimxrt.yml b/spec/build/bsps/arm/imxrt/bspimxrt.yml index 30f7927f21..be4a4bb566 100644 --- a/spec/build/bsps/arm/imxrt/bspimxrt.yml +++ b/spec/build/bsps/arm/imxrt/bspimxrt.yml @@ -118,6 +118,8 @@ links: uid: ../../optconsolebaud - role: build-dependency uid: ../../optconsoleirq +- role: build-dependency + uid: optfsledmaemlm - role: build-dependency uid: optlinkcmds - role: build-dependency diff --git a/spec/build/bsps/arm/imxrt/optfsledmaemlm.yml b/spec/build/bsps/arm/imxrt/optfsledmaemlm.yml new file mode 100644 index 0000000000..80c840373d --- /dev/null +++ b/spec/build/bsps/arm/imxrt/optfsledmaemlm.yml @@ -0,0 +1,16 @@ +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) 2020 embedded brains GmbH (http://www.embedded-brains.de) +default: true +default-by-variant: [] +description: | + Enable the minor loop mapping of the Freescale EDMA. +enabled-by: true +format: '{}' +links: [] +name: BSP_FSL_EDMA_EMLM +type: build diff --git a/spec/build/bsps/obj.yml b/spec/build/bsps/obj.yml index b598d54d16..abed6bc76f 100644 --- a/spec/build/bsps/obj.yml +++ b/spec/build/bsps/obj.yml @@ -28,6 +28,10 @@ install: source: - bsps/include/ofw/ofw.h - bsps/include/ofw/ofw_compat.h +- destination: ${BSP_INCLUDEDIR}/fsl + source: + - bsps/include/fsl/edma.h + - bsps/include/fsl/regs-edma.h - destination: ${BSP_INCLUDEDIR}/libchip source: - bsps/include/libchip/ata.h @@ -72,6 +76,7 @@ links: source: - bsps/shared/dev/display/disp_hcms29xx.c - bsps/shared/dev/display/font_hcms29xx.c +- bsps/shared/dev/dma/fsl-edma.c - bsps/shared/dev/i2c/i2c-2b-eeprom.c - bsps/shared/dev/i2c/i2c-ds1621.c - bsps/shared/dev/i2c/i2c-sc620.c -- cgit v1.2.3