diff options
author | Sammy He <r62914@freescale.com> | 2009-11-16 11:59:54 +0800 |
---|---|---|
committer | Sammy He <r62914@freescale.com> | 2009-11-20 17:14:44 +0800 |
commit | 1701c3caa7ed7d183a57301f6513c1f5fb4102cd (patch) | |
tree | 6146e2b73d560b8b5225047cc922b6ce6fd2037d /include/asm-arm/arch-mx51 | |
parent | cbee64d544a2bd8b5e2ae17bcfdfe79480690292 (diff) | |
download | u-boot-imx-1701c3caa7ed7d183a57301f6513c1f5fb4102cd.zip u-boot-imx-1701c3caa7ed7d183a57301f6513c1f5fb4102cd.tar.gz u-boot-imx-1701c3caa7ed7d183a57301f6513c1f5fb4102cd.tar.bz2 |
ENGR00118576 MX25: Support Smc911x ethernet
1. Add imx cspi support for cpld access.
2. Add smc911x ethernet support from cpld.
Signed-off-by: Sammy He <r62914@freescale.com>
Diffstat (limited to 'include/asm-arm/arch-mx51')
-rw-r--r-- | include/asm-arm/arch-mx51/imx_spi.h | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/include/asm-arm/arch-mx51/imx_spi.h b/include/asm-arm/arch-mx51/imx_spi.h deleted file mode 100644 index c9d51e9..0000000 --- a/include/asm-arm/arch-mx51/imx_spi.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * (C) Copyright 2008-2009 Freescale Semiconductor, Inc. - * - * See file CREDITS for list of people who contributed to this - * project. - * - * 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. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * 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., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA - */ - -#ifndef __IMX_SPI_H__ -#define __IMX_SPI_H__ - -#include <spi.h> - -#undef IMX_SPI_DEBUG - -#define IMX_SPI_ACTIVE_HIGH 1 -#define IMX_SPI_ACTIVE_LOW 0 -#define SPI_RETRY_TIMES 100 - -#define SPI_RX_DATA 0x0 -#define SPI_TX_DATA 0x4 -#define SPI_CON_REG 0x8 -#define SPI_CFG_REG 0xc -#define SPI_INT_REG 0x10 -#define SPI_DMA_REG 0x14 -#define SPI_STAT_REG 0x18 -#define SPI_PERIOD_REG 0x1C - -struct spi_reg_t { - u32 ctrl_reg; - u32 cfg_reg; -}; - -struct imx_spi_dev_t { - struct spi_slave slave; - u32 base; /* base address of SPI module the device is connected to */ - u32 freq; /* desired clock freq in Hz for this device */ - u32 ss_pol; /* ss polarity: 1=active high; 0=active low */ - u32 ss; /* slave select */ - u32 in_sctl; /* inactive sclk ctl: 1=stay low; 0=stay high */ - u32 in_dctl; /* inactive data ctl: 1=stay low; 0=stay high */ - u32 ssctl; /* single burst mode vs multiple: 0=single; 1=multi */ - u32 sclkpol; /* sclk polarity: active high=0; active low=1 */ - u32 sclkpha; /* sclk phase: 0=phase 0; 1=phase1 */ - u32 fifo_sz; /* fifo size in bytes for either tx or rx. Don't add them up! */ - u32 us_delay; /* us delay in each xfer */ - struct spi_reg_t reg; /* pointer to a set of SPI registers */ -}; - -extern void spi_io_init(struct imx_spi_dev_t *dev); - -#endif /* __IMX_SPI_H__ */ |