bsps/xilinx/versal: Add Cadence I2C driver support

This commit is contained in:
Chris Johns
2022-08-22 16:54:56 +10:00
parent c738be92a0
commit a3b0f7d5a8
10 changed files with 145 additions and 0 deletions

View File

@@ -32,6 +32,10 @@ links:
uid: optramlen
- role: build-dependency
uid: optramori
- role: build-dependency
uid: optclki2c0
- role: build-dependency
uid: optclki2c1
- role: build-dependency
uid: optclkuart
- role: build-dependency

View File

@@ -12,6 +12,8 @@ ldflags: []
links:
- role: build-dependency
uid: grp
- role: build-dependency
uid: objcadencei2c
- role: build-dependency
uid: tstaiedge
type: build

View File

@@ -12,6 +12,8 @@ ldflags: []
links:
- role: build-dependency
uid: grp
- role: build-dependency
uid: objcadencei2c
- role: build-dependency
uid: tstvck190
type: build

View File

@@ -0,0 +1,21 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
build-type: objects
cflags: []
copyrights:
- Copyright (C) 2021 On-Line Applications Research (OAR)
cppflags: []
cxxflags: []
enabled-by: true
includes: []
install:
- destination: ${BSP_INCLUDEDIR}/bsp
source:
- bsps/aarch64/xilinx-versal/include/bsp/i2c.h
- destination: ${BSP_INCLUDEDIR}/dev/i2c
source:
- bsps/include/dev/i2c/cadence-i2c-regs.h
- bsps/include/dev/i2c/cadence-i2c.h
links: []
source:
- bsps/shared/dev/i2c/cadence-i2c.c
type: build

View File

@@ -0,0 +1,17 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
actions:
- get-integer: null
- define: null
build-type: option
copyrights:
- Copyright (C) 2022 Chris Johns <chris@contemporary.software>
default: 99999001
default-by-variant: []
description: |
Versal i2c0 clock frequency in Hz. This is the frequency after the signal
has been processed using the values passed to the I2C0_REF_CTRL register.
enabled-by: true
format: '{}'
links: []
name: VERSAL_CLOCK_I2C0
type: build

View File

@@ -0,0 +1,17 @@
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
actions:
- get-integer: null
- define: null
build-type: option
copyrights:
- Copyright (C) 2022 Chris Johns <chris@contemporary.software>
default: 99999001
default-by-variant: []
description: |
Versal i2c1 clock frequency in Hz. This is the frequency after the signal
has been processed using the values passed to the I2C1_REF_CTRL register.
enabled-by: true
format: '{}'
links: []
name: VERSAL_CLOCK_I2C1
type: build