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
This commit is contained in:
Christian Mauderer
2020-11-24 17:22:38 +01:00
parent 301bbc3a4d
commit a434cc80cb
7 changed files with 745 additions and 823 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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