#README for simple fpga driver
#(c)2006 Luotao Fu (lfu@pengutronix.de), Pengutronix

Name: simple fpga driver

Feature: 
	load fpga firmware into an Altera fpga connected to a Freescale 
	MPC5200B CPU

Content: 
	fpga.c Makefile

Installation: 
	Change the KDIR variable in the makefile to the location of 
	your own kernel source directory and compile. Be sure to include 
	the path to the binary of the crosscompiler in your searchpath.

Usage: 	
	load the module with parameter firmware=*****. The firmware should be 
	in rbf (altera raw binary format) and stored in the place where the 
	firmware agent of your embedded system will expect it. (It depends on the 
	configuration of your udev or hotplug daemon. Usually it should be 
	/lib/firmware)
Usage_example: 
	# insmod fpga.ko firmware=example.rbf
Appendix: 
	FPGA pin connection.
	FPGA Pin	mpc5200B Pin	Pin Location	Pin Name	Pin Configuration
	-		-		-		-		-
	/config         UART6_CTS_TTL   PSC6_1  	GPIO_WKUP_5     out
	config_done     UART6_RXD_TTL   PSC6_0  	GPIO_WKUP_4     in 
	/status         GPIO7                   	GPIO_WKUP_7     in 
	dclk            UART6_RTS_TTL   PSC6_3  	GPIO_IRDA_1     out 
	data0           UART6_TXD_TTL   PSC6_2  	GPIO_IRDA_0     out 
