-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Niklas Eiling <[email protected]>
- Loading branch information
Showing
151 changed files
with
26,863 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../orig/iic/src/xiic.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../orig/iic/src/xiic_i.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../orig/iic/src/xiic_l.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
############################################################################## | ||
# Copyright (C) 2005 - 2021 Xilinx, Inc. All rights reserved. | ||
# Copyright (c) 2022 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. | ||
# SPDX-License-Identifier: MIT | ||
# | ||
# | ||
############################################################################## | ||
# | ||
# MODIFICATION HISTORY: | ||
# | ||
# Ver Who Date Changes | ||
# -------- ------ -------- -------------------------------------------------- | ||
# 3.0 adk 10/12/13 Removed support for xps_iic | ||
############################################################################## | ||
## @BEGIN_CHANGELOG EDK_M | ||
## | ||
## - Removed support for opb_iic | ||
## | ||
## @END_CHANGELOG | ||
|
||
## @BEGIN_CHANGELOG EDK_MS3 | ||
## | ||
## 06/16/10 sv Added support for axi_iic | ||
## | ||
## @END_CHANGELOG | ||
|
||
OPTION psf_version = 2.1; | ||
|
||
BEGIN driver iic | ||
|
||
OPTION supported_peripherals = (axi_iic); | ||
OPTION driver_state = ACTIVE; | ||
OPTION copyfiles = all; | ||
OPTION VERSION = 3.10; | ||
OPTION NAME = iic; | ||
|
||
END driver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
############################################################################### | ||
# Copyright (C) 2004 - 2020 Xilinx, Inc. All rights reserved. | ||
# SPDX-License-Identifier: MIT | ||
# | ||
# | ||
# MODIFICATION HISTORY: | ||
# Ver Who Date Changes | ||
# -------- ------ -------- ------------------------------------ | ||
# 3.0 adk 12/10/13 Updated as per the New Tcl API's | ||
############################################################################## | ||
## BEGIN_CHANGELOG EDK_M | ||
## Removed the local ::hsi::utils::define_canonical_xpars API as there is | ||
## a common API in the tcl of the tools | ||
## | ||
## END_CHANGELOG | ||
|
||
## BEGIN_CHANGELOG EDK_LS3 | ||
## Updated to handle the corner cases described in CR #518193 while | ||
## generating canonical definitions | ||
## | ||
## END_CHANGELOG | ||
|
||
#uses "xillib.tcl" | ||
|
||
proc generate {drv_handle} { | ||
::hsi::utils::define_include_file $drv_handle "xparameters.h" "XIic" "NUM_INSTANCES" "DEVICE_ID" "C_BASEADDR" "C_HIGHADDR" "C_TEN_BIT_ADR" "C_GPO_WIDTH" | ||
::hsi::utils::define_config_file $drv_handle "xiic_g.c" "XIic" "DEVICE_ID" "C_BASEADDR" "C_TEN_BIT_ADR" "C_GPO_WIDTH" | ||
|
||
::hsi::utils::define_canonical_xpars $drv_handle "xparameters.h" "Iic" "DEVICE_ID" "C_BASEADDR" "C_HIGHADDR" "C_TEN_BIT_ADR" "C_GPO_WIDTH" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Copyright (C) 2023 Advanced Micro Devices, Inc. All rights reserved. | ||
# Copyright (c) 2021 Xilinx, Inc. All rights reserved. | ||
# SPDX-License-Identifier: MIT | ||
%YAML 1.2 | ||
--- | ||
title: Bindings for IIC controller | ||
|
||
maintainers: | ||
- Manikanta Guntupalli <[email protected]> | ||
|
||
type: driver | ||
|
||
properties: | ||
compatible: | ||
OneOf: | ||
- items: | ||
- enum: | ||
- xlnx,axi-iic-2.0 | ||
- xlnx,xps-iic-2.00.a | ||
reg: | ||
description: Physical base address and size of the controller register map | ||
Has10BitAddr: | ||
description: Does device have 10 bit address decoding | ||
GpOutWidth: | ||
description: Number of bits in general purpose output | ||
|
||
config: | ||
- XIic_Config | ||
|
||
required: | ||
- compatible | ||
- reg | ||
- Has10BitAddr | ||
- GpOutWidth | ||
- interrupts | ||
- interrupt-parent | ||
|
||
examples: | ||
xiic_eeprom_example.c: | ||
- interrupts | ||
|
||
xiic_dynamic_eeprom_example.c: | ||
- interrupts | ||
|
||
xiic_low_level_dynamic_eeprom_example.c: | ||
- reg | ||
|
||
xiic_low_level_eeprom_example.c: | ||
- reg | ||
|
||
xiic_low_level_tempsensor_example.c: | ||
- reg | ||
|
||
xiic_multi_master_example.c: | ||
- interrupts | ||
|
||
xiic_repeated_start_example.c: | ||
- interrupts | ||
|
||
xiic_selftest_example.c: | ||
- reg | ||
|
||
xiic_slave_example.c: | ||
- interrupts | ||
|
||
xiic_tempsensor_example.c: | ||
- interrupts | ||
|
||
xiic_tenbitaddr_example.c: | ||
- interrupts | ||
|
||
tapp: | ||
xiic_selftest_example.c: | ||
declaration: IicSelfTestExample | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/****************************************************************************** | ||
* Copyright (C) 2005 - 2021 Xilinx, Inc. All rights reserved. | ||
* Copyright (C) 2022 - 2023 Advanced Micro Devices, Inc. All Rights Reserved. | ||
* SPDX-License-Identifier: MIT | ||
******************************************************************************/ | ||
|
||
#ifndef IIC_HEADER_H /* prevent circular inclusions */ | ||
#define IIC_HEADER_H /* by using protection macros */ | ||
|
||
#include "xil_types.h" | ||
#include "xil_assert.h" | ||
#include "xstatus.h" | ||
|
||
#ifndef SDT | ||
int IicSelfTestExample(u16 DeviceId); | ||
#else | ||
int IicSelfTestExample(UINTPTR BaseAddress); | ||
#endif | ||
|
||
#endif |
Oops, something went wrong.