From ddcebcb638715a6278da93b553d5016f99823816 Mon Sep 17 00:00:00 2001 From: Becky Bruce Date: Wed, 23 Jan 2008 16:31:05 -0600 Subject: 86xx: Add print_laws function to fsl_law.c This can be used for debug, and will be used by board code to help implement reginfo. Signed-off-by: Becky Bruce --- include/asm-ppc/fsl_law.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/asm-ppc') diff --git a/include/asm-ppc/fsl_law.h b/include/asm-ppc/fsl_law.h index 7cb8840..23bd505 100644 --- a/include/asm-ppc/fsl_law.h +++ b/include/asm-ppc/fsl_law.h @@ -73,6 +73,7 @@ struct law_entry { extern void set_law(u8 idx, phys_addr_t addr, enum law_size sz, enum law_trgt_if id); extern void disable_law(u8 idx); extern void init_laws(void); +extern void print_laws(void); /* define in board code */ extern struct law_entry law_table[]; -- cgit v1.1 From ccd6e1464e5396bc1a9aebf7077ddf4342eafe03 Mon Sep 17 00:00:00 2001 From: Jon Loeliger Date: Tue, 12 Feb 2008 14:53:28 -0600 Subject: Add CFG_MPC86xx_DDR_ADDR and CFG_MPC86xx_DDR2_ADDR symbols These replace direct structure references for IMMR sections. Signed-off-by: Jon Loeliger --- include/asm-ppc/immap_86xx.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/asm-ppc') diff --git a/include/asm-ppc/immap_86xx.h b/include/asm-ppc/immap_86xx.h index 169725b..a15c6ec 100644 --- a/include/asm-ppc/immap_86xx.h +++ b/include/asm-ppc/immap_86xx.h @@ -1330,4 +1330,9 @@ typedef struct immap { extern immap_t *immr; +#define CFG_MPC86xx_DDR_OFFSET (0x2000) +#define CFG_MPC86xx_DDR_ADDR (CFG_IMMR + CFG_MPC86xx_DDR_OFFSET) +#define CFG_MPC86xx_DDR2_OFFSET (0x6000) +#define CFG_MPC86xx_DDR2_ADDR (CFG_IMMR + CFG_MPC86xx_DDR2_OFFSET) + #endif /*__IMMAP_86xx__*/ -- cgit v1.1