HELP : SUPPORT FOR A91SAM7X256

Tom Deconinck t.deconinck@gmail.com
Thu Aug 28 14:07:00 GMT 2008


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



More information about the Ecos-patches mailing list