UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer srihari.n
Observer
4,021 Views
Registered: ‎01-31-2011

FSL driver for "linux 2.6" microblaze ?

Hi All,

 

Has any one written FSL driver for Linux 2.6 for Microblaze processor ?

 

It would be helpful if anyone could upload it...

 

 

Thanks for you valuable help

 

regards,

 

srihari

Thanks a lot for your valuable help,

Regards

Srihari Narayanan
0 Kudos
3 Replies
3,362 Views
Registered: ‎03-23-2009

Re: FSL driver for "linux 2.6" microblaze ?

Hi,

 

I'm looking for the same. If anyone has the driver, it would be greatly appreciated.

 

Thanks,

0 Kudos
Contributor
Contributor
3,337 Views
Registered: ‎04-14-2011

Re: FSL driver for "linux 2.6" microblaze ?

hi i am looking for the same fsl driver

thanks
Best Regards,
B.Romanous
0 Kudos
Contributor
Contributor
3,309 Views
Registered: ‎04-14-2011

Re: FSL driver for "linux 2.6" microblaze ?

please find the code attached, thanks to "amoralesv" who provided the code and the guidlines to use it:

 

 

Copy and unrar the file in the following folder: /your_linux_installed_directory/linux-2.6-xlnx/drivers/misc/

Also in this folder, you need to edit the Kconfig file and add the following lines:

 

config MICROBLAZE_FSLFIFO
        tristate  'FSL FIFO driver'

 

after the text "if MISC_DEVICES"

 

Also, add the following text almost at the end of Kconfig file:

source "drivers/misc/fslfifo/Kconfig"

 

before the text "endif # MISC_DEVICES"

 

Additionaly, add the following line at the end of the Makefile in folder I mentioned before:

obj-$(CONFIG_MICROBLAZE_FSLFIFO) += fslfifo/

 

And I think that's it. Please note that in fslfifo.c you must adjust the following:

static unsigned fslchannels = 8;     // change it to the actual number of fsl fifos in your design

 

Just one think for the fsl driver: one fslfifo is read/write, so actually is the same as 2 FSLs fifos (one pair, i.e. one link, one fifo towards MicroBlaze, and the other coming from MicroBlaze) in EDK.

 

Also, adjust in fslfifo.c the following:

#define FSLFIFO_BUF_SIZE 2048   // it is the default, enables 512 words of 32 bits, or 2048 bytes

 

to a value according to the depth of your fifo and the width of each word.

 

Last, but not least, you need to modify the xilinx_mmu_defconfig to enable the generation of as many fslfifos you need.

Here is an example:

 

#
# FSLFIFO channel selection
#
CONFIG_MICROBLAZE_FSLFIFO0=y
CONFIG_MICROBLAZE_FSLFIFO1=y
#CONFIG_MICROBLAZE_FSLFIFO2=y
#CONFIG_MICROBLAZE_FSLFIFO3=y
#CONFIG_MICROBLAZE_FSLFIFO4=y
#CONFIG_MICROBLAZE_FSLFIFO5=y
#CONFIG_MICROBLAZE_FSLFIFO6=y
#CONFIG_MICROBLAZE_FSLFIFO7=y

where I have only 2 fslfifos enable and should match the FSL fifos in EDK (4 in this case, taken in pairs, so 2 pairs), then at boot you will see that there are 2 fslfifos enabled. Also note that your xilinx_mmu_defconfig should match your hardware design in EDK, for MicroBlaze, ICAP, Ehernet, etc.

Best Regards,
B.Romanous
0 Kudos