Skip to content

Commit

Permalink
kovan: Allocate MFP pins for FPGA configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Cross committed Feb 28, 2012
1 parent 9881802 commit ac8fb78
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions arch/arm/mach-mmp/kovan.c
Expand Up @@ -118,16 +118,24 @@ static unsigned long kovan_pin_config[] __initdata = {
/* LCD backlight */
GPIO84_PWM1_OUT,


/* FPGA programming GPIOs */
MFP_CFG(GPIO119, AF0), // fpga_reset_n (output)
MFP_CFG(GPIO120, AF0), // fpga_init_n (input, mostly)
MFP_CFG(GPIO97, AF0), // fpga_done (input)
MFP_CFG(GPIO119, AF0), /* fpga_reset_n (output) */
MFP_CFG(GPIO120, AF0), /* fpga_init_n (input, mostly) */
MFP_CFG(GPIO97, AF0), /* fpga_done (input) */

/* FPGA programming SSPs */
MFP_CFG(GPIO118, AF1), /* ssp2_clk */
MFP_CFG(GPIO121, AF1), /* ssp2_txd */
MFP_CFG(GPIO90, AF3), /* ssp3_clk */

/* FPGA status GPIOs */
MFP_CFG(GPIO91, AF0), /* HPD report */
MFP_CFG(GPIO92, AF0), /* Key ready */
MFP_CFG(GPIO93, AF0), /* Low-voltage alarm */



/* FPGA JTAG lines */
MFP_CFG(GPIO16, AF0), /* JTAG TDI */
MFP_CFG(GPIO18, AF0), /* JTAG TMS */
Expand Down Expand Up @@ -268,14 +276,6 @@ static struct fb_videomode video_modes_aspen[] = {
},
};

/* SPI Control Register. */
#define CFG_SCLKCNT(div) (div<<24) /* 0xFF~0x2 */
#define CFG_RXBITS(rx) ((rx - 1)<<16) /* 0x1F~0x1 */
#define CFG_TXBITS(tx) ((tx - 1)<<8) /* 0x1F~0x1, 0x1: 2bits ... 0x1F: 32bits */
#define CFG_SPI_ENA(spi) (spi<<3)
#define CFG_SPI_SEL(spi) (spi<<2) /* 1: port1; 0: port0 */
#define CFG_SPI_3W4WB(wire) (wire<<1) /* 1: 3-wire; 0: 4-wire */

struct pxa168fb_mach_info kovan_lcd_info __initdata = {
.id = "Base-kovan",
.modes = video_modes_aspen,
Expand Down

0 comments on commit ac8fb78

Please sign in to comment.