summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/fsl_liodn.h
diff options
context:
space:
mode:
authorLiu Gang <Gang.Liu@freescale.com>2013-06-25 14:12:12 +0400
committerYork Sun <yorksun@freescale.com>2013-08-09 23:41:37 +0400
commitb3831020402adc81930c52cb8e52c7ff868d2fc7 (patch)
treebc3fc30eec8370820b5cd45b15d8af100a0d6ec6 /arch/powerpc/include/asm/fsl_liodn.h
parent49f5befafd0f71e3ba033081e80fa4965d682ebc (diff)
downloadu-boot-b3831020402adc81930c52cb8e52c7ff868d2fc7.tar.xz
powerpc/srio: Update the SRIO LIODN registers and ID table macro
For some PowerPC platforms, LIODN registers for SRIO ports are in SRIO register address space. So the ccsr_rio structure should be updated for those LIODN registers. In addition, add a new macro "SET_SRIO_LIODN_BASE" to create the SRIO LIODN ID table based on the SRIO LIODN register address. Signed-off-by: Liu Gang <Gang.Liu@freescale.com> Acked-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch/powerpc/include/asm/fsl_liodn.h')
-rw-r--r--arch/powerpc/include/asm/fsl_liodn.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/fsl_liodn.h b/arch/powerpc/include/asm/fsl_liodn.h
index 3f543d9249..44bc88dcec 100644
--- a/arch/powerpc/include/asm/fsl_liodn.h
+++ b/arch/powerpc/include/asm/fsl_liodn.h
@@ -29,6 +29,13 @@ struct srio_liodn_id_table {
+ CONFIG_SYS_MPC85xx_GUTS_OFFSET + CONFIG_SYS_CCSRBAR, \
}
+#define SET_SRIO_LIODN_BASE(port, id_a) \
+ { .id = { id_a }, .num_ids = 1, .portid = port, \
+ .reg_offset[0] = offsetof(struct ccsr_rio, liodn) \
+ + (port - 1) * 0x200 \
+ + CONFIG_SYS_FSL_SRIO_ADDR, \
+ }
+
struct liodn_id_table {
const char * compat;
u32 id[2];