Skip to contentSkip to conversation

p2020ds: add alternate boot bank support using the ngPIXIS FPGA

PATCH New Timur Tabi 2 participants 2 messages Apr 1, 2010 – Apr 7, 2010

lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

PATCH v2 1/1 p2020ds: add alternate boot bank support using the ngPIXIS FPGA

The Freescale P2020DS board uses a new type of PIXIS FPGA, called the ngPIXIS. The ngPIXIS has one distinct new feature: the values of the on-board switches can be selectively overridden with shadow registers. This feature is used to boot from a different NOR flash bank, instead of having a register dedicated for this purpose. Because the ngPIXIS is so different from the previous PIXIS, a new file is introduced: ngpixis.c.

Also update the P2020DS checkboard() function to use the new macros defined in the header file.

---
 board/freescale/common/Makefile   |    1 +
 board/freescale/common/ngpixis.c  |  136 +++++++++++++++++++++++++++++++++++++
 board/freescale/common/ngpixis.h  |   57 +++++++++++++++
 board/freescale/p2020ds/p2020ds.c |   55 ++++++----------
 include/configs/P2020DS.h         |   62 ++---------------
 5 files changed, 222 insertions(+), 89 deletions(-)
 create mode 100644 board/freescale/common/ngpixis.c
 create mode 100644 board/freescale/common/ngpixis.h
board/freescale/common/Makefile +1 -0
index 02a824d..620eb16 100644
@@ -33,6 +33,7 @@ COBJS-${CONFIG_FSL_CADMUS}	+= cadmus.o
 COBJS-${CONFIG_FSL_VIA}		+= cds_via.o
 COBJS-${CONFIG_FSL_DIU_FB}	+= fsl_diu_fb.o fsl_logo_bmp.o
 COBJS-${CONFIG_FSL_PIXIS}	+= pixis.o
+COBJS-${CONFIG_FSL_NGPIXIS}	+= ngpixis.o
 COBJS-${CONFIG_PQ_MDS_PIB}	+= pq-mds-pib.o
 COBJS-${CONFIG_ID_EEPROM}	+= sys_eeprom.o
 COBJS-${CONFIG_FSL_SGMII_RISER}	+= sgmii_riser.o
board/freescale/common/ngpixis.c new file +136 -0

136 lines not on this page · raw message

board/freescale/common/ngpixis.h new file +57 -0

57 lines not on this page · raw message

board/freescale/p2020ds/p2020ds.c +20 -35

104 lines not on this page · raw message

include/configs/P2020DS.h +8 -54

74 lines not on this page · raw message

Signature · 1 line
1.6.5
Applied
#1 lore raw

PATCH v2 1/1 p2020ds: add alternate boot bank support using the ngPIXIS FPGA

Quoted 12 lines · Timur Tabi

The Freescale P2020DS board uses a new type of PIXIS FPGA, called the ngPIXIS. The ngPIXIS has one distinct new feature: the values of the on-board switches can be selectively overridden with shadow registers. This feature is used to boot from a different NOR flash bank, instead of having a register dedicated for this purpose. Because the ngPIXIS is so different from the previous PIXIS, a new file is introduced: ngpixis.c.

Also update the P2020DS checkboard() function to use the new macros defined in the header file.

---

Quoted 8 lines
board/freescale/common/Makefile   |    1 +
board/freescale/common/ngpixis.c  |  136 +++++++++++++++++++++++++++++++++++++
board/freescale/common/ngpixis.h  |   57 +++++++++++++++
board/freescale/p2020ds/p2020ds.c |   55 ++++++----------
include/configs/P2020DS.h         |   62 ++---------------
5 files changed, 222 insertions(+), 89 deletions(-)

create mode 100644 board/freescale/common/ngpixis.c create mode 100644 board/freescale/common/ngpixis.h

applied to 85xx

- k