This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Ethernet on top of SPI
- From: Ilija Stanislevik <ilijas at siva dot com dot mk>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 14 Oct 2009 08:57:52 +0200
- Subject: [ECOS] Ethernet on top of SPI
Hi,
We are developing hardware based on STM32. For Ethernet we use
Microchip's ENC424J600, connected on one of the STM32's SPI buses.
Our intention is to develop an Ethernet driver for ENC424J600 on top of
the SPI driver. We also intend to make this Ethernet-over-SPI general
regarding SPI hardware, but it seems that there are some obstacles there.
The polarity and phase of STM32's SPI should be adjusted to the
requirements of ENC424J600. In the SPI's API there is no get/set-config
support for this. The configtool has no provision to set this either.
The only way to adjust this is to poke the driver's private data
structure. This means that our Ethernet driver must be written
specifically for STM32's SPI.
Also, I have found no provision to refer SPI driver by device name,
another reason to stick the Ethernet driver to specific SPI hardware.
Am I right with above conclusions? Of course, if there is no other
solution, we will live with an Ethernet driver married to our SPI hardware.
Anyway, are there any rules/directions on SPI's API regarding hardware
independence?
Thank you,
Ilija Stanislevik
SIvA doo
ul. Zejnel Ajdini 5
MK-1060 Skopje
Macedonia
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss