eSPI: add the eSPI register support
PATCH 1/1 eSPI: add the eSPI register support
Signed-off-by Mingkai Hu <[email protected]>
--- include/asm-ppc/immap_85xx.h | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-)
include/asm-ppc/immap_85xx.h +17 -0
@@ -258,6 +258,21 @@ typedef struct ccsr_lbc { } ccsr_lbc_t;/* +* eSPI Registers(0x7000-0x8000) +*/ +typedef struct ccsr_espi { +uint mode;/* 0x00 - eSPI mode register */ +uint event;/* 0x04 - eSPI event register */ +uint mask;/* 0x08 - eSPI mask register */ +uint com;/* 0x0c - eSPI command register */ +uint tx;/* 0x10 - eSPI transmit FIFO access register */ +uint rx;/* 0x14 - eSPI receive FIFO access register */ +char res1[8 ];/* reserved */ +uint csmode[4 ];/* 0x20 - 0x2c: sSPI CS0/1/2/3 mode register */ +char res2[4048 ];/* fill up to 0x1000 */ +}ccsr_espi_t ; + +/* * PCI Registers(0x8000-0x9000) */ typedef struct ccsr_pcix {
@@ -1682,6 +1697,8 @@ typedef struct ccsr_gur {#define CONFIG_SYS_MPC85xx_DDR2_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_DDR2_OFFSET)#define CONFIG_SYS_MPC85xx_LBC_OFFSET (0x5000)#define CONFIG_SYS_MPC85xx_LBC_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_LBC_OFFSET) +#define CONFIG_SYS_MPC85xx_ESPI_OFFSET (0x7000) +#define CONFIG_SYS_MPC85xx_ESPI_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_ESPI_OFFSET)#define CONFIG_SYS_MPC85xx_PCIX_OFFSET (0x8000)#define CONFIG_SYS_MPC85xx_PCIX_ADDR (CONFIG_SYS_IMMR + CONFIG_SYS_MPC85xx_PCIX_OFFSET)#define CONFIG_SYS_MPC85xx_PCIX2_OFFSET (0x9000)
Signature · 1 line
1.5.4
PATCH v2 1/1 mtd: SPI Flash: Support the Spansion Flash
Add MTD SPI Flash support for S25FL008A, S25FL016A, S25FL032A, S25FL064A, S25FL128P.
Signed-off-by Mingkai Hu <[email protected]>
--- drivers/mtd/spi/Makefile | 1 + drivers/mtd/spi/spansion.c | 356 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 357 insertions(+), 0 deletions(-) create mode 100644 drivers/mtd/spi/spansion.c
drivers/mtd/spi/Makefile +1 -0
@@ -27,6 +27,7 @@ LIB := $(obj)libspi_flash.a COBJS-$(CONFIG_SPI_FLASH) += spi_flash.o COBJS-$(CONFIG_SPI_FLASH_ATMEL) += atmel.o +COBJS-$(CONFIG_SPI_FLASH_SPANSION) += spansion.o COBJS-$(CONFIG_SPI_FLASH_STMICRO) += stmicro.o COBJS := $(COBJS-y)
drivers/mtd/spi/spansion.c new file +356 -0
356 lines not on this page · raw message
Signature · 1 line
1.5.4
Wolfgang Denk
AppliedPATCH 1/1 eSPI: add the eSPI register support
In reply to Mingkai HuDear Mingkai Hu,
Quoted 4 lines · In message <[email protected]> you…
Signed-off-by Mingkai Hu <[email protected]>--- include/asm-ppc/immap_85xx.h | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-)
Applied, thank.
Andy, hope this is OK with you.
Best regards,
Wolfgang Denk
Signature · 4 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de He who hesitates is not only lost, but miles from the next exit.