diff options
author | Dirk Eibach <eibach@gdsys.de> | 2012-01-02 11:02:46 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2012-01-09 09:19:47 +0100 |
commit | 06b174124e3668be9a01c943b5e0c04c9e9fd1c4 (patch) | |
tree | d4b4dec3ae1f75df9f726fdb6c1c0e02d8feaac4 /board | |
parent | 9a420986cccc9bd2c37affd931d627b3c3e72952 (diff) | |
download | u-boot-imx-06b174124e3668be9a01c943b5e0c04c9e9fd1c4.zip u-boot-imx-06b174124e3668be9a01c943b5e0c04c9e9fd1c4.tar.gz u-boot-imx-06b174124e3668be9a01c943b5e0c04c9e9fd1c4.tar.bz2 |
ppc4xx: Setup HICB on Io64
The FPGA High-Speed Interconnect Bus (HICB) is now setup by u-boot.
Signed-off-by: Dirk Eibach <eibach@gdsys.de>
Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board')
-rw-r--r-- | board/gdsys/405ex/io64.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/board/gdsys/405ex/io64.c b/board/gdsys/405ex/io64.c index a997571..177141d 100644 --- a/board/gdsys/405ex/io64.c +++ b/board/gdsys/405ex/io64.c @@ -249,6 +249,7 @@ int last_stage_init(void) char str_serdes[] = "Start SERDES blocks"; char str_channels[] = "Start FPGA channels"; char str_locks[] = "Verify SERDES locks"; + char str_hicb[] = "Verify HICB status"; char str_status[] = "Verify PHY status -"; char slash[] = "\\|/-\\|/-"; @@ -312,6 +313,21 @@ int last_stage_init(void) } blank_string(strlen(str_locks)); + /* verify hicb_status */ + puts(str_hicb); + for (fpga = 0; fpga < 2; ++fpga) { + u16 *ch0_hicb_status_int = &(fpga ? fpga1 : fpga0)->ch0_hicb_status_int; + for (k = 0; k < 32; ++k) { + u16 status = in_le16(ch0_hicb_status_int + 4*k); + if (status) + printf("fpga %d hicb %d: hicb status %04x\n", + fpga, k, status); + /* reset events */ + out_le16(ch0_hicb_status_int + 4*k, status); + } + } + blank_string(strlen(str_hicb)); + /* verify phy status */ puts(str_status); for (k = 0; k < 32; ++k) { |