summaryrefslogtreecommitdiff
path: root/include/asm-ppc
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-08-26 15:01:28 -0500
committerWolfgang Denk <wd@denx.de>2008-08-27 02:05:55 +0200
commitf784e32b4bce0013983506b11af4b85b8ca3d36e (patch)
treecbf7641b5d6cfe1e2dfd88e38298b17667d4ad67 /include/asm-ppc
parent0f2cbe3f5eddbdf3848265f35e4f714434929cff (diff)
downloadu-boot-imx-f784e32b4bce0013983506b11af4b85b8ca3d36e.zip
u-boot-imx-f784e32b4bce0013983506b11af4b85b8ca3d36e.tar.gz
u-boot-imx-f784e32b4bce0013983506b11af4b85b8ca3d36e.tar.bz2
FSL DDR: Provide a generic set_ddr_laws()
Provide a helper function that will setup the last available LAWs (upto 2) for DDR. Useful for SPD/dyanmic DDR setting code. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/asm-ppc')
-rw-r--r--include/asm-ppc/fsl_law.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-ppc/fsl_law.h b/include/asm-ppc/fsl_law.h
index 227bf83..5bba08d 100644
--- a/include/asm-ppc/fsl_law.h
+++ b/include/asm-ppc/fsl_law.h
@@ -75,6 +75,7 @@ struct law_entry {
extern void set_law(u8 idx, phys_addr_t addr, enum law_size sz, enum law_trgt_if id);
extern int set_next_law(phys_addr_t addr, enum law_size sz, enum law_trgt_if id);
extern int set_last_law(phys_addr_t addr, enum law_size sz, enum law_trgt_if id);
+extern int set_ddr_laws(u64 start, u64 sz, enum law_trgt_if id);
extern void disable_law(u8 idx);
extern void init_laws(void);
extern void print_laws(void);