This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: HELP : SUPPORT FOR A91SAM7X256
- From: "Tom Deconinck" <t dot deconinck at gmail dot com>
- To: ecos-patches at ecos dot sourceware dot org
- Cc: vibisreenivasan <vibi_sreenivasan at cms dot com>
- Date: Thu, 28 Aug 2008 18:35:31 +1200
- Subject: Re: HELP : SUPPORT FOR A91SAM7X256
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=cr+dzSnq4rtkLA2gJQxUIM5a7CVHKPKhyHtBO5TXBWk=; b=EeE3wo6gH4rZsdxwMYEv8pgAXRojUqqWckF0iA8O0NqJFNV6TsU3+SfqAB8CSDm3RK z/8xIUU7iUsfhj/hsoTe2lndf8+9HELkwER51b7GJh16dRWvGfYgWqj7271WjWuMJ5y1 TEl6jeIs5UFs61xe2nKehAS+eKDqYahi3RzQM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=KTiSt7H8b0FZAVNExV4Qc2z/kgwZLZcxVTeUzoSEgKrSmXJvZIUv7Titmhq4hZ2x4L YbCx1lWQmrtu9X6UaDHUccVJ5C33PnAUFkf4mu/g2NepHJIqcy2Qasx4FPKe6kQ51eFa NPzAi2LM+sHrbHEo5Y+aH6h94ivVL4G151KTA=
- References: <1219660260.3256.38.camel@localhost.localdomain> <20080825122229.GO20652@lunn.ch> <1219902376.2787.12.camel@localhost.localdomain> <20080828054155.GG25863@lunn.ch>
On Thu, Aug 28, 2008 at 5:41 PM, Andrew Lunn <andrew@lunn.ch> wrote:
> On Thu, Aug 28, 2008 at 11:16:16AM +0530, vibisreenivasan wrote:
>> hello,
>> How can i know which all peripherals are already supported for
>> at91sam7x256.
>> actually i am looking at
>> I2C
>> SPI
>> ETHERNET
>
> Look at the source code tree? If you are going to use eCos you will
> need to do this anyway.
>
> This will partially answer your question. It is taken from
> packages/ecos.db.
>
> Andrew
>
> target at91sam7xek {
> alias { "Atmel AT91SAM7XEK evaluation board" at91_at91sam7xek }
> packages { CYGPKG_HAL_ARM
> CYGPKG_HAL_ARM_AT91
> CYGPKG_HAL_ARM_AT91SAM7
> CYGPKG_HAL_ARM_AT91SAM7XEK
> CYGPKG_IO_SERIAL_ARM_AT91
> CYGPKG_DEVS_FLASH_AT91
> CYGPKG_DEVS_SPI_ARM_AT91
> CYGPKG_DEVICES_WATCHDOG_ARM_AT91WDTC
> CYGPKG_DEVS_USB_AT91
> CYGPKG_DEVS_ETH_PHY
> CYGPKG_DEVS_ETH_ARM_AT91
> }
> description "
> The at91sam7xek target provides the packages needed to run eCos on an
> Atmel AT91SAM7X-EK evaluation board."
> }
>
As stated in Andrew's mail: look in the ecos.db file.
As you can see above:
CYGPKG_DEVS_SPI_ARM_AT91: the SPI peripheral is supported
CYGPKG_DEVS_ETH_PHY and CYGPKG_DEVS_ETH_ARM_AT91: ethernet is supported
The i2c peripheral is not supported, I wrote a driver for it a couple
of months ago, but I changed jobs since and I don't think my previous
employer will be pushing it upstream any time soon.
Be aware that the hardware implementation of i2c (or TWI interface) is
kinda tricky (in Tx mode, you need to be able to get data to it fast
enough!)
Tom