From a3b0f7d5a8a5df7c4ef16c0b527f56cf1d241b54 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 22 Aug 2022 16:54:56 +1000 Subject: bsps/xilinx/versal: Add Cadence I2C driver support --- spec/build/bsps/aarch64/xilinx-versal/grp.yml | 4 ++++ .../build/bsps/aarch64/xilinx-versal/grp_aiedge.yml | 2 ++ .../build/bsps/aarch64/xilinx-versal/grp_vck190.yml | 2 ++ .../bsps/aarch64/xilinx-versal/objcadencei2c.yml | 21 +++++++++++++++++++++ .../build/bsps/aarch64/xilinx-versal/optclki2c0.yml | 17 +++++++++++++++++ .../build/bsps/aarch64/xilinx-versal/optclki2c1.yml | 17 +++++++++++++++++ 6 files changed, 63 insertions(+) create mode 100644 spec/build/bsps/aarch64/xilinx-versal/objcadencei2c.yml create mode 100644 spec/build/bsps/aarch64/xilinx-versal/optclki2c0.yml create mode 100644 spec/build/bsps/aarch64/xilinx-versal/optclki2c1.yml (limited to 'spec') diff --git a/spec/build/bsps/aarch64/xilinx-versal/grp.yml b/spec/build/bsps/aarch64/xilinx-versal/grp.yml index 27a77e9e6f..262278f214 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/grp.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/grp.yml @@ -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 diff --git a/spec/build/bsps/aarch64/xilinx-versal/grp_aiedge.yml b/spec/build/bsps/aarch64/xilinx-versal/grp_aiedge.yml index 680584f36c..30f5852ac4 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/grp_aiedge.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/grp_aiedge.yml @@ -12,6 +12,8 @@ ldflags: [] links: - role: build-dependency uid: grp +- role: build-dependency + uid: objcadencei2c - role: build-dependency uid: tstaiedge type: build diff --git a/spec/build/bsps/aarch64/xilinx-versal/grp_vck190.yml b/spec/build/bsps/aarch64/xilinx-versal/grp_vck190.yml index 661a528038..2f9662c597 100644 --- a/spec/build/bsps/aarch64/xilinx-versal/grp_vck190.yml +++ b/spec/build/bsps/aarch64/xilinx-versal/grp_vck190.yml @@ -12,6 +12,8 @@ ldflags: [] links: - role: build-dependency uid: grp +- role: build-dependency + uid: objcadencei2c - role: build-dependency uid: tstvck190 type: build diff --git a/spec/build/bsps/aarch64/xilinx-versal/objcadencei2c.yml b/spec/build/bsps/aarch64/xilinx-versal/objcadencei2c.yml new file mode 100644 index 0000000000..f290d433e7 --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-versal/objcadencei2c.yml @@ -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 diff --git a/spec/build/bsps/aarch64/xilinx-versal/optclki2c0.yml b/spec/build/bsps/aarch64/xilinx-versal/optclki2c0.yml new file mode 100644 index 0000000000..3d567c961c --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-versal/optclki2c0.yml @@ -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 +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 diff --git a/spec/build/bsps/aarch64/xilinx-versal/optclki2c1.yml b/spec/build/bsps/aarch64/xilinx-versal/optclki2c1.yml new file mode 100644 index 0000000000..4f67f3ee95 --- /dev/null +++ b/spec/build/bsps/aarch64/xilinx-versal/optclki2c1.yml @@ -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 +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 -- cgit v1.2.3