]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
powerpc/85xx: Enable eSPI support on P1022DS
authorJiang Yutang <b14898@freescale.com>
Thu, 24 Feb 2011 08:11:56 +0000 (16:11 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 29 Apr 2011 12:36:17 +0000 (07:36 -0500)
Signed-off-by: Jiang Yutang <b14898@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
board/freescale/p1022ds/p1022ds.c
include/configs/P1022DS.h

index 73a10213be920cc5a7273bcfb94a894b858ed24e..8ef627fc7b452cbf64b67f59ef5b80b25f7a547b 100644 (file)
@@ -46,6 +46,9 @@ int board_early_init_f(void)
        /* Set the pin muxing to enable ETSEC2. */
        clrbits_be32(&gur->pmuxcr2, 0x001F8000);
 
+       /* Enable the SPI */
+       clrsetbits_8(&pixis->brdcfg0, PIXIS_ELBC_SPI_MASK, PIXIS_SPI);
+
        return 0;
 }
 
index fb2a41ce240aba43b02ecae399c8402f97204cbd..593efd5b0436ce48606bac1da7eaf35c0763b071 100644 (file)
 #define PIXIS_LBMAP_SWITCH     7
 #define PIXIS_LBMAP_MASK       0xF0
 #define PIXIS_LBMAP_ALTBANK    0x20
+#define PIXIS_ELBC_SPI_MASK    0xc0
+#define PIXIS_SPI              0x80
 
 #define CONFIG_SYS_INIT_RAM_LOCK
 #define CONFIG_SYS_INIT_RAM_ADDR       0xffd00000 /* Initial L1 address */
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
 #define CONFIG_SYS_EEPROM_BUS_NUM      1
 
+/*
+ * eSPI - Enhanced SPI
+ */
+#define CONFIG_SPI_FLASH
+#define CONFIG_SPI_FLASH_SPANSION
+
+#define CONFIG_HARD_SPI
+#define CONFIG_FSL_ESPI
+
+#define CONFIG_CMD_SF
+#define CONFIG_SF_DEFAULT_SPEED                10000000
+#define CONFIG_SF_DEFAULT_MODE         0
+
 /*
  * General PCI
  * Memory space is mapped 1-1, but I/O space must start from 0.