board: xilinx: Remove unused ancient i2c driver
PATCH 1/4 board: xilinx: Remove unused ancient i2c driver
There is new driver in the driver folder.
--- board/xilinx/xilinx_iic/xiic_l.c | 484 -------------------------------------- board/xilinx/xilinx_iic/xiic_l.h | 150 ------------ 2 files changed, 0 insertions(+), 634 deletions(-) delete mode 100644 board/xilinx/xilinx_iic/xiic_l.c delete mode 100644 board/xilinx/xilinx_iic/xiic_l.h
board/xilinx/xilinx_iic/xiic_l.c deleted +0 -484
@@ -1,484 +0,0 @@ -/* $Id: xiic_l.c,v 1.2 2002/12/05 19:32:40 meinelte Exp $ */ -/****************************************************************************** -* -* XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" -* AS A COURTESY TO YOU, SOLELY FOR USE IN DEVELOPING PROGRAMS AND -* SOLUTIONS FOR XILINX DEVICES. BY PROVIDING THIS DESIGN, CODE, -* OR INFORMATION AS ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, -* APPLICATION OR STANDARD, XILINX IS MAKING NO REPRESENTATION -* THAT THIS IMPLEMENTATION IS FREE FROM ANY CLAIMS OF INFRINGEMENT, -* AND YOU ARE RESPONSIBLE FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE -* FOR YOUR IMPLEMENTATION. XILINX EXPRESSLY DISCLAIMS ANY -* WARRANTY WHATSOEVER WITH RESPECT TO THE ADEQUACY OF THE -* IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OR -* REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM CLAIMS OF -* INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS -* FOR A PARTICULAR PURPOSE. -* -* (c) Copyright 2002 Xilinx Inc. -* All rights reserved. -* -******************************************************************************/ -/*****************************************************************************/ -/** -* -* @file xiic_l.c -* -* This file contains low-level driver functions that can be used to access the -* device. The user should refer to the hardware device specification for more -* details of the device operation. -* -* <pre> -* MODIFICATION HISTORY: -* -* Ver Who Date Changes -* ----- --- ------- ----------------------------------------------- -* 1.01b jhl 5/13/02 First release -* 1.01b jhl 10/14/02 Corrected bug in the receive function, the setup of the -* interrupt status mask was not being done in the loop such -* that a read would sometimes fail on the last byte because -* the transmit error which should have been ignored was -* being used. This would leave an extra byte in the FIFO -* and the bus throttled such that the next operation would -* also fail. Also updated the receive function to not -* disable the device after the last byte until after the -* bus transitions to not busy which is more consistent -* with the expected behavior. -* 1.01c ecm 12/05/02 new rev -* </pre> -* -****************************************************************************/ - -/***************************** Include Files *******************************/ - -#include "xbasic_types.h" -#include "xio.h" -#include "xipif_v1_23_b.h" -#include "xiic_l.h" - -/************************** Constant Definitions ***************************/ - -/**************************** Type Definitions *****************************/ - - -/***************** Macros (Inline Functions) Definitions *******************/ - - -/****************************************************************************** -* -* This macro clears the specified interrupt in the IPIF interrupt status -* register. It is non-destructive in that the register is read and only the -* interrupt specified is cleared. Clearing an interrupt acknowledges it. -* -* @param BaseAddress contains the IPIF registers base address. -* -* @param InterruptMask contains the interrupts to be disabled -* -* @return -* -* None. -* -* @note -* -* Signature: void XIic_mClearIisr(u32 BaseAddress, -* u32 InterruptMask); -* -******************************************************************************/ -#define XIic_mClearIisr (BaseAddress, InterruptMask) \ - XIIF_V123B_WRITE_IISR((BaseAddress), \ - XIIF_V123B_READ_IISR(BaseAddress) & (InterruptMask)) - -/****************************************************************************** -* -* This macro sends the address for a 7 bit address during both read and write -* operations. It takes care of the details to format the address correctly. -* This macro is designed to be called internally to the drivers. -* -* @param SlaveAddress contains the address of the slave to send to. -* -* @param Operation indicates XIIC_READ_OPERATION or XIIC_WRITE_OPERATION -* -* @return -* -* None. -* -* @note -* -* Signature: void XIic_mSend7BitAddr(u16 SlaveAddress, u8 Operation); -* -******************************************************************************/ -#define XIic_mSend7BitAddress (BaseAddress, SlaveAddress, Operation) \ -{ \ - u8 LocalAddr = (u8)(SlaveAddress << 1); \ - LocalAddr = (LocalAddr & 0xFE) | (Operation); \ - XIo_Out8(BaseAddress + XIIC_DTR_REG_OFFSET, LocalAddr); \ -} - -/************************** Function Prototypes ****************************/ - -static unsigned RecvData (u32 BaseAddress,u8 * BufferPtr, -unsigned ByteCount); -static unsigned SendData (u32 BaseAddress,u8 * BufferPtr, -unsigned ByteCount); - -/************************** Variable Definitions **************************/ - - -/****************************************************************************/ -/** -* Receive data as a master on the IIC bus. This function receives the data -* using polled I/O and blocks until the data has been received. It only -* supports 7 bit addressing and non-repeated start modes of operation. The -* user is responsible for ensuring the bus is not busy if multiple masters -* are present on the bus. -* -* @param BaseAddress contains the base address of the IIC device. -* @param Address contains the 7 bit IIC address of the device to send the -* specified data to. -* @param BufferPtr points to the data to be sent. -* @param ByteCount is the number of bytes to be sent. -* -* @return -* -* The number of bytes received. -* -* @note -* -* None -* -******************************************************************************/ -unsigned XIic_Recv (u32 BaseAddress,u8 Address, -u8 * BufferPtr,unsigned ByteCount) -{ -u8 CntlReg; -unsigned RemainingByteCount; - -/* Tx error is enabled incase the address (7 or 10) has no device to answer -* with Ack. When only one byte of data, must set NO ACK before address goes -* out therefore Tx error must not be enabled as it will go off immediately -* and the Rx full interrupt will be checked. If full, then the one byte -* was received and the Tx error will be disabled without sending an error -* callback msg. -*/ -XIic_mClearIisr (BaseAddress, -XIIC_INTR_RX_FULL_MASK |XIIC_INTR_TX_ERROR_MASK | -XIIC_INTR_ARB_LOST_MASK ); - -/* Set receive FIFO occupancy depth for 1 byte (zero based) -*/ -XIo_Out8 (BaseAddress +XIIC_RFD_REG_OFFSET ,0 ); - -/* 7 bit slave address, send the address for a read operation -* and set the state to indicate the address has been sent -*/ -XIic_mSend7BitAddress (BaseAddress, Address,XIIC_READ_OPERATION ); - -/* MSMS gets set after putting data in FIFO. Start the master receive -* operation by setting CR Bits MSMS to Master, if the buffer is only one -* byte, then it should not be acknowledged to indicate the end of data -*/ - CntlReg =XIIC_CR_MSMS_MASK |XIIC_CR_ENABLE_DEVICE_MASK ; -if (ByteCount ==1 ) { - CntlReg |=XIIC_CR_NO_ACK_MASK ; - } - -/* Write out the control register to start receiving data and call the -* function to receive each byte into the buffer -*/ -XIo_Out8 (BaseAddress +XIIC_CR_REG_OFFSET , CntlReg); - -/* Clear the latched interrupt status for the bus not busy bit which must -* be done while the bus is busy -*/ -XIic_mClearIisr (BaseAddress,XIIC_INTR_BNB_MASK ); - -/* Try to receive the data from the IIC bus */ - - RemainingByteCount =RecvData (BaseAddress, BufferPtr, ByteCount); -/* -* The receive is complete, disable the IIC device and return the number of -* bytes that was received -*/ -XIo_Out8 (BaseAddress +XIIC_CR_REG_OFFSET ,0 ); - -/* Return the number of bytes that was received */ - -return ByteCount - RemainingByteCount; -} - -/****************************************************************************** -* -* Receive the specified data from the device that has been previously addressed -* on the IIC bus. This function assumes that the 7 bit address has been sent -* and it should wait for the transmit of the address to complete. -* -* @param BaseAddress contains the base address of the IIC device. -* @param BufferPtr points to the buffer to hold the data that is received. -* @param ByteCount is the number of bytes to be received. -* -* @return -* -* The number of bytes remaining to be received. -* -* @note -* -* This function does not take advantage of the receive FIFO because it is -* designed for minimal code space and complexity. It contains loops that -* that could cause the function not to return if the hardware is not working. -* -* This function assumes that the calling function will disable the IIC device -* after this function returns. -* -******************************************************************************/ -static unsigned RecvData (u32 BaseAddress,u8 * BufferPtr,unsigned ByteCount) -{ -u8 CntlReg; -u32 IntrStatusMask; -u32 IntrStatus; - -/* Attempt to receive the specified number of bytes on the IIC bus */ - -while (ByteCount >0 ) { -/* Setup the mask to use for checking errors because when receiving one -* byte OR the last byte of a multibyte message an error naturally -* occurs when the no ack is done to tell the slave the last byte -*/ -if (ByteCount ==1 ) { - IntrStatusMask = -XIIC_INTR_ARB_LOST_MASK |XIIC_INTR_BNB_MASK ; - }else { - IntrStatusMask = -XIIC_INTR_ARB_LOST_MASK | -XIIC_INTR_TX_ERROR_MASK |XIIC_INTR_BNB_MASK ; - } - -/* Wait for the previous transmit and the 1st receive to complete -* by checking the interrupt status register of the IPIF -*/ -while (1 ) { - IntrStatus =XIIF_V123B_READ_IISR (BaseAddress); -if (IntrStatus &XIIC_INTR_RX_FULL_MASK ) { -break ; - } -/* Check the transmit error after the receive full because when -* sending only one byte transmit error will occur because of the -* no ack to indicate the end of the data -*/ -if (IntrStatus & IntrStatusMask) { -return ByteCount; - } - } - - CntlReg =XIo_In8 (BaseAddress +XIIC_CR_REG_OFFSET ); - -/* Special conditions exist for the last two bytes so check for them -* Note that the control register must be setup for these conditions -* before the data byte which was already received is read from the -* receive FIFO (while the bus is throttled -*/ -if (ByteCount ==1 ) { -/* For the last data byte, it has already been read and no ack -* has been done, so clear MSMS while leaving the device enabled -* so it can get off the IIC bus appropriately with a stop. -*/ -XIo_Out8 (BaseAddress +XIIC_CR_REG_OFFSET , -XIIC_CR_ENABLE_DEVICE_MASK ); - } - -/* Before the last byte is received, set NOACK to tell the slave IIC -* device that it is the end, this must be done before reading the byte -* from the FIFO -*/ -if (ByteCount ==2 ) { -/* Write control reg with NO ACK allowing last byte to -* have the No ack set to indicate to slave last byte read. -*/ -XIo_Out8 (BaseAddress +XIIC_CR_REG_OFFSET , - CntlReg |XIIC_CR_NO_ACK_MASK ); - } - -/* Read in data from the FIFO and unthrottle the bus such that the -* next byte is read from the IIC bus -*/ - *BufferPtr++ =XIo_In8 (BaseAddress +XIIC_DRR_REG_OFFSET ); - -/* Clear the latched interrupt status so that it will be updated with -* the new state when it changes, this must be done after the receive -* register is read -*/ -XIic_mClearIisr (BaseAddress,XIIC_INTR_RX_FULL_MASK | -XIIC_INTR_TX_ERROR_MASK | -XIIC_INTR_ARB_LOST_MASK ); - ByteCount--; - } - -/* Wait for the bus to transition to not busy before returning, the IIC -* device cannot be disabled until this occurs. It should transition as -* the MSMS bit of the control register was cleared before the last byte -* was read from the FIFO. -*/ -while (1 ) { -if (XIIF_V123B_READ_IISR (BaseAddress) &XIIC_INTR_BNB_MASK ) { -break ; - } - } - -return ByteCount; -} - -/****************************************************************************/ -/** -* Send data as a master on the IIC bus. This function sends the data -* using polled I/O and blocks until the data has been sent. It only supports -* 7 bit addressing and non-repeated start modes of operation. The user is -* responsible for ensuring the bus is not busy if multiple masters are present -* on the bus. -* -* @param BaseAddress contains the base address of the IIC device. -* @param Address contains the 7 bit IIC address of the device to send the -* specified data to. -* @param BufferPtr points to the data to be sent. -* @param ByteCount is the number of bytes to be sent. -* -* @return -* -* The number of bytes sent. -* -* @note -* -* None -* -******************************************************************************/ -unsigned XIic_Send (u32 BaseAddress,u8 Address, -u8 * BufferPtr,unsigned ByteCount) -{ -unsigned RemainingByteCount; - -/* Put the address into the FIFO to be sent and indicate that the operation -* to be performed on the bus is a write operation -*/ -XIic_mSend7BitAddress (BaseAddress, Address,XIIC_WRITE_OPERATION ); - -/* Clear the latched interrupt status so that it will be updated with the -* new state when it changes, this must be done after the address is put -* in the FIFO -*/ -XIic_mClearIisr (BaseAddress,XIIC_INTR_TX_EMPTY_MASK | -XIIC_INTR_TX_ERROR_MASK |XIIC_INTR_ARB_LOST_MASK ); - -/* MSMS must be set after putting data into transmit FIFO, indicate the -* direction is transmit, this device is master and enable the IIC device -*/ -XIo_Out8 (BaseAddress +XIIC_CR_REG_OFFSET , -XIIC_CR_MSMS_MASK |XIIC_CR_DIR_IS_TX_MASK | -XIIC_CR_ENABLE_DEVICE_MASK ); - -/* Clear the latched interrupt -* status for the bus not busy bit which must be done while the bus is busy -*/ -XIic_mClearIisr (BaseAddress,XIIC_INTR_BNB_MASK ); - -/* Send the specified data to the device on the IIC bus specified by the -* the address -*/ - RemainingByteCount =SendData (BaseAddress, BufferPtr, ByteCount); - -/* -* The send is complete, disable the IIC device and return the number of -* bytes that was sent -*/ -XIo_Out8 (BaseAddress +XIIC_CR_REG_OFFSET ,0 ); - -return ByteCount - RemainingByteCount; -} - -/****************************************************************************** -* -* Send the specified buffer to the device that has been previously addressed -* on the IIC bus. This function assumes that the 7 bit address has been sent -* and it should wait for the transmit of the address to complete. -* -* @param BaseAddress contains the base address of the IIC device. -* @param BufferPtr points to the data to be sent. -* @param ByteCount is the number of bytes to be sent. -* -* @return -* -* The number of bytes remaining to be sent. -* -* @note -* -* This function does not take advantage of the transmit FIFO because it is -* designed for minimal code space and complexity. It contains loops that -* that could cause the function not to return if the hardware is not working. -* -******************************************************************************/ -static unsigned SendData (u32 BaseAddress,u8 * BufferPtr,unsigned ByteCount) -{ -u32 IntrStatus; - -/* Send the specified number of bytes in the specified buffer by polling -* the device registers and blocking until complete -*/ -while (ByteCount >0 ) { -/* Wait for the transmit to be empty before sending any more data -* by polling the interrupt status register -*/ -while (1 ) { - IntrStatus =XIIF_V123B_READ_IISR (BaseAddress); - -if (IntrStatus & (XIIC_INTR_TX_ERROR_MASK | -XIIC_INTR_ARB_LOST_MASK | -XIIC_INTR_BNB_MASK )) { -return ByteCount; - } - -if (IntrStatus &XIIC_INTR_TX_EMPTY_MASK ) { -break ; - } - } -/* If there is more than one byte to send then put the next byte to send -* into the transmit FIFO -*/ -if (ByteCount >1 ) { -XIo_Out8 (BaseAddress +XIIC_DTR_REG_OFFSET , - *BufferPtr++); - }else { -/* Set the stop condition before sending the last byte of data so that -* the stop condition will be generated immediately following the data -* This is done by clearing the MSMS bit in the control register. -*/ -XIo_Out8 (BaseAddress +XIIC_CR_REG_OFFSET , -XIIC_CR_ENABLE_DEVICE_MASK | -XIIC_CR_DIR_IS_TX_MASK ); - -/* Put the last byte to send in the transmit FIFO */ - -XIo_Out8 (BaseAddress +XIIC_DTR_REG_OFFSET , - *BufferPtr++); - } - -/* Clear the latched interrupt status register and this must be done after -* the transmit FIFO has been written to or it won't clear -*/ -XIic_mClearIisr (BaseAddress,XIIC_INTR_TX_EMPTY_MASK ); - -/* Update the byte count to reflect the byte sent and clear the latched -* interrupt status so it will be updated for the new state -*/ - ByteCount--; - } - -/* Wait for the bus to transition to not busy before returning, the IIC -* device cannot be disabled until this occurs. -* Note that this is different from a receive operation because the stop -* condition causes the bus to go not busy. -*/ -while (1 ) { -if (XIIF_V123B_READ_IISR (BaseAddress) &XIIC_INTR_BNB_MASK ) { -break ; - } - } - -return ByteCount; -}
board/xilinx/xilinx_iic/xiic_l.h deleted +0 -150
150 lines not on this page · raw message
Signature · 1 line
1.7.0.4
PATCH 2/4 board: xilinx: Remove common folder
All these files was used for ancient xilinx drivers which are finally gone.
--- board/xilinx/common/xbasic_types.c | 165 ---- board/xilinx/common/xbasic_types.h | 283 ------ board/xilinx/common/xbuf_descriptor.h | 252 ------ board/xilinx/common/xdma_channel.c | 738 ---------------- board/xilinx/common/xdma_channel.h | 291 ------ board/xilinx/common/xdma_channel_i.h | 110 --- board/xilinx/common/xdma_channel_sg.c | 1317 ---------------------------- board/xilinx/common/xio.h | 81 -- board/xilinx/common/xipif_v1_23_b.c | 331 ------- board/xilinx/common/xipif_v1_23_b.h | 746 ---------------- board/xilinx/common/xpacket_fifo_v1_00_b.c | 448 ---------- board/xilinx/common/xpacket_fifo_v1_00_b.h | 306 ------- board/xilinx/common/xstatus.h | 347 -------- board/xilinx/common/xversion.c | 350 -------- board/xilinx/common/xversion.h | 97 -- board/xilinx/zynq/Makefile | 3 - 16 files changed, 0 insertions(+), 5865 deletions(-) delete mode 100644 board/xilinx/common/xbasic_types.c delete mode 100644 board/xilinx/common/xbasic_types.h delete mode 100644 board/xilinx/common/xbuf_descriptor.h delete mode 100644 board/xilinx/common/xdma_channel.c delete mode 100644 board/xilinx/common/xdma_channel.h delete mode 100644 board/xilinx/common/xdma_channel_i.h delete mode 100644 board/xilinx/common/xdma_channel_sg.c delete mode 100644 board/xilinx/common/xio.h delete mode 100644 board/xilinx/common/xipif_v1_23_b.c delete mode 100644 board/xilinx/common/xipif_v1_23_b.h delete mode 100644 board/xilinx/common/xpacket_fifo_v1_00_b.c delete mode 100644 board/xilinx/common/xpacket_fifo_v1_00_b.h delete mode 100644 board/xilinx/common/xstatus.h delete mode 100644 board/xilinx/common/xversion.c delete mode 100644 board/xilinx/common/xversion.h
board/xilinx/common/xbasic_types.c deleted +0 -165
@@ -1,165 +0,0 @@ -/****************************************************************************** -* -* Author: Xilinx, Inc. -* -* -* This program is free software; you can redistribute it and/or modify it -* under the terms of the GNU General Public License as published by the -* Free Software Foundation; either version 2 of the License, or (at your -* option) any later version. -* -* -* XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A -* COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS -* ONE POSSIBLE IMPLEMENTATION OF THIS FEATURE, APPLICATION OR STANDARD, -* XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION IS FREE -* FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE FOR OBTAINING -* ANY THIRD PARTY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION. -* XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO -* THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO ANY -* WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE FROM -* CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY AND -* FITNESS FOR A PARTICULAR PURPOSE. -* -* -* Xilinx hardware products are not intended for use in life support -* appliances, devices, or systems. Use in such applications is -* expressly prohibited. -* -* -* (c) Copyright 2002-2004 Xilinx Inc. -* All rights reserved. -* -* -* You should have received a copy of the GNU General Public License along -* with this program; if not, write to the Free Software Foundation, Inc., -* 675 Mass Ave, Cambridge, MA 02139, USA. -* -******************************************************************************/ -/*****************************************************************************/ -/** -* -* @file xbasic_types.c -* -* This file contains basic functions for Xilinx software IP. -* -* <pre> -* MODIFICATION HISTORY: -* -* Ver Who Date Changes -* ----- ---- -------- ------------------------------------------------------- -* 1.00a rpm 11/07/03 Added XNullHandler function as a stub interrupt handler -* </pre> -* -******************************************************************************/ - -/***************************** Include Files *********************************/ - -#include "xbasic_types.h" - -/************************** Constant Definitions *****************************/ - -/**************************** Type Definitions *******************************/ - -/***************** Macros (Inline Functions) Definitions *********************/ - -/************************** Variable Definitions *****************************/ - -/** -* This variable allows testing to be done easier with asserts. An assert -* sets this variable such that a driver can evaluate this variable -* to determine if an assert occurred. -*/ -unsigned int XAssertStatus; - -/** -* This variable allows the assert functionality to be changed for testing -* such that it does not wait infinitely. Use the debugger to disable the -* waiting during testing of asserts. -*/ -u32 XWaitInAssert = TRUE; - -/* The callback function to be invoked when an assert is taken */ -static XAssertCallback XAssertCallbackRoutine = (XAssertCallback )NULL ; - -/************************** Function Prototypes ******************************/ - -/*****************************************************************************/ -/** -* -* Implements assert. Currently, it calls a user-defined callback function -* if one has been set. Then, it potentially enters an infinite loop depending -* on the value of the XWaitInAssert variable. -* -* @param File is the name of the filename of the source -* @param Line is the linenumber within File -* -* @return -* -* None. -* -* @note -* -* None. -* -******************************************************************************/ -void -XAssert (char *File,int Line) -{ -/* if the callback has been set then invoke it */ -if (XAssertCallbackRoutine !=NULL ) { - (*XAssertCallbackRoutine) (File, Line); - } - -/* if specified, wait indefinitely such that the assert will show up -* in testing -*/ -while (XWaitInAssert) { - } -} - -/*****************************************************************************/ -/** -* -* Sets up a callback function to be invoked when an assert occurs. If there -* was already a callback installed, then it is replaced. -* -* @param Routine is the callback to be invoked when an assert is taken -* -* @return -* -* None. -* -* @note -* -* This function has no effect if NDEBUG is set -* -******************************************************************************/ -void -XAssertSetCallback (XAssertCallback Routine) -{ - XAssertCallbackRoutine = Routine; -} - -/*****************************************************************************/ -/** -* -* Null handler function. This follows the XInterruptHandler signature for -* interrupt handlers. It can be used to assign a null handler (a stub) to an -* interrupt controller vector table. -* -* @param NullParameter is an arbitrary void pointer and not used. -* -* @return -* -* None. -* -* @note -* -* None. -* -******************************************************************************/ -void -XNullHandler (void *NullParameter) -{ -}
board/xilinx/common/xbasic_types.h deleted +0 -283
283 lines not on this page · raw message
board/xilinx/common/xbuf_descriptor.h deleted +0 -252
252 lines not on this page · raw message
board/xilinx/common/xdma_channel.c deleted +0 -738
738 lines not on this page · raw message
board/xilinx/common/xdma_channel.h deleted +0 -291
291 lines not on this page · raw message
board/xilinx/common/xdma_channel_i.h deleted +0 -110
110 lines not on this page · raw message
board/xilinx/common/xdma_channel_sg.c deleted +0 -1317
1,161 lines not on this page · raw message
board/xilinx/common/xio.h deleted +0 -81
81 lines not on this page · raw message
board/xilinx/common/xipif_v1_23_b.c deleted +0 -331
331 lines not on this page · raw message
board/xilinx/common/xipif_v1_23_b.h deleted +0 -746
746 lines not on this page · raw message
board/xilinx/common/xpacket_fifo_v1_00_b.c deleted +0 -448
448 lines not on this page · raw message
board/xilinx/common/xpacket_fifo_v1_00_b.h deleted +0 -306
306 lines not on this page · raw message
board/xilinx/common/xstatus.h deleted +0 -347
347 lines not on this page · raw message
board/xilinx/common/xversion.c deleted +0 -350
350 lines not on this page · raw message
board/xilinx/common/xversion.h deleted +0 -97
97 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.0.4
Part of the diff is not shown here. View the raw message.
PATCH 2/4 board: xilinx: Remove common folder
Dear Michal,
Quoted 29 lines · Michal Simek
All these files was used for ancient xilinx drivers which are finally gone.
Signed-off-by Michal Simek <[email protected]>--- board/xilinx/common/xbasic_types.c | 165 ---- board/xilinx/common/xbasic_types.h | 283 ------ board/xilinx/common/xbuf_descriptor.h | 252 ------ board/xilinx/common/xdma_channel.c | 738 ---------------- board/xilinx/common/xdma_channel.h | 291 ------ board/xilinx/common/xdma_channel_i.h | 110 --- board/xilinx/common/xdma_channel_sg.c | 1317 ---------------------------- board/xilinx/common/xio.h | 81 -- board/xilinx/common/xipif_v1_23_b.c | 331 ------- board/xilinx/common/xipif_v1_23_b.h | 746 ---------------- board/xilinx/common/xpacket_fifo_v1_00_b.c | 448 ---------- board/xilinx/common/xpacket_fifo_v1_00_b.h | 306 ------- board/xilinx/common/xstatus.h | 347 -------- board/xilinx/common/xversion.c | 350 -------- board/xilinx/common/xversion.h | 97 -- board/xilinx/zynq/Makefile | 3 - 16 files changed, 0 insertions(+), 5865 deletions(-) delete mode 100644 board/xilinx/common/xbasic_types.c delete mode 100644 board/xilinx/common/xbasic_types.h delete mode 100644 board/xilinx/common/xbuf_descriptor.h delete mode 100644 board/xilinx/common/xdma_channel.c delete mode 100644 board/xilinx/common/xdma_channel.h delete mode 100644 board/xilinx/common/xdma_channel_i.h delete mode 100644 board/xilinx/common/xdma_channel_sg.c
Quoted 9 lines
delete mode 100644 board/xilinx/common/xio.h delete mode 100644 board/xilinx/common/xipif_v1_23_b.c delete mode 100644 board/xilinx/common/xipif_v1_23_b.h delete mode 100644 board/xilinx/common/xpacket_fifo_v1_00_b.c delete mode 100644 board/xilinx/common/xpacket_fifo_v1_00_b.h delete mode 100644 board/xilinx/common/xstatus.h delete mode 100644 board/xilinx/common/xversion.c delete mode 100644 board/xilinx/common/xversion.h
All the best,
Rommel
PATCH 3/4 common: cmd_bdinfo: Fix compilation warning for microblaze
In reply to Michal SimekFix one printf compilation warning in microblaze bdinfo part.
Warning log:cmd_bdinfo.c: In function 'do_bdinfo':
cmd_bdinfo.c:219:2: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat]
--- common/cmd_bdinfo.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
common/cmd_bdinfo.c +1 -1
@@ -216,7 +216,7 @@ int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])#if defined(CONFIG_CMD_NET )print_eths ();#endif -printf ("baudrate = %u bps\n" , (ulong )bd->bi_baudrate); +printf ("baudrate = %u bps\n" , bd->bi_baudrate);return 0 ; }
Signature · 1 line
1.7.0.4
PATCH 3/4 common: cmd_bdinfo: Fix compilation warning for microblaze
Dear Michal Simek
Quoted 8 lines · Michal Simek <michal.simek <at> xilinx.com> writes:
Fix one printf compilation warning in microblaze bdinfo part.
Warning log:
cmd_bdinfo.c: In function 'do_bdinfo':
cmd_bdinfo.c:219:2: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat]
Quoted 4 lines
Signed-off-by Michal Simek <michal.simek <at> xilinx.com>--- common/cmd_bdinfo.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
I build tested these series of Xilinx patches on an ml507. This doesn't apply cleanly to HEAD.
All the best,
Rommel
PATCH 4/4 microblaze: Remove FSL support from generic board
In reply to Michal SimekThis code was targetting one specific Microblaze platform configuration which is obsolete and fsl bus isn't used in this way.
--- .../xilinx/microblaze-generic/microblaze-generic.c | 20 -------------------- include/configs/microblaze-generic.h | 4 ---- 2 files changed, 0 insertions(+), 24 deletions(-)
board/xilinx/microblaze-generic/microblaze-generic.c +0 -20
@@ -53,29 +53,9 @@ int gpio_init (void)return 0 ; } -#ifdef CONFIG_SYS_FSL_2 -void fsl_isr2 (void *arg) { -volatile int num; - *((unsigned int *)(CONFIG_SYS_GPIO_0_ADDR +0x4 )) = - ++(*((unsigned int *)(CONFIG_SYS_GPIO_0_ADDR +0x4 ))); -GET (num,2 ); -NGET (num,2 ); -puts ("*" ); -} - -int fsl_init2 (void ) { -puts ("fsl_init2\n" ); -install_interrupt_handler (FSL_INTR_2 , fsl_isr2,NULL ); -return 0 ; -} -#endif -void board_init (void ) {gpio_init (); -#ifdef CONFIG_SYS_FSL_2 -fsl_init2 (); -#endif }int board_eth_init (bd_t *bis)
include/configs/microblaze-generic.h +0 -4
@@ -120,10 +120,6 @@# define CONFIG_SYS_TIMER_0_IRQ XILINX_TIMER_IRQ#endif -/* FSL */ -/* #define CONFIG_SYS_FSL_2 */ -/* #define FSL_INTR_2 1 */ -/* * memory layout - Example * CONFIG_SYS_TEXT_BASE = 0x1200_0000; defined in config.mk
Signature · 1 line
1.7.0.4
PATCH 1/4 board: xilinx: Remove unused ancient i2c driver
In reply to Michal SimekDear Michal,
Quoted 10 lines · Michal Simek
There is new driver in the driver folder.
Signed-off-by Michal Simek <[email protected]>--- board/xilinx/xilinx_iic/xiic_l.c | 484 -------------------------------------- board/xilinx/xilinx_iic/xiic_l.h | 150 ------------ 2 files changed, 0 insertions(+), 634 deletions(-) delete mode 100644 board/xilinx/xilinx_iic/xiic_l.c delete mode 100644 board/xilinx/xilinx_iic/xiic_l.h
All the best,
Rommel
PATCH 1/4 board: xilinx: Remove unused ancient i2c driver
In reply to Michal SimekHello Michal,
Quoted 9 lines · Michal Simek
There is new driver in the driver folder.
Signed-off-by Michal Simek <[email protected]>--- board/xilinx/xilinx_iic/xiic_l.c | 484 -------------------------------------- board/xilinx/xilinx_iic/xiic_l.h | 150 ------------ 2 files changed, 0 insertions(+), 634 deletions(-) delete mode 100644 board/xilinx/xilinx_iic/xiic_l.c delete mode 100644 board/xilinx/xilinx_iic/xiic_l.h
Thanks!
bye,
Heiko
Signature · 2 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany