S5PC100: Function to configure the SROMC registers.
PATCH 2/3 S5PC100: Function to configure the SROMC registers.
From: Naveen Krishna CH <[email protected]>
Nand Flash, Ethernet, other features might need to configure the SROMC registers accordingly.
The config_sromc() functions helps with this.
Signed-off-by Naveen Krishna Ch <[email protected]>
---
Changes since V1:
1. Funtion config_sromc() is renamed to s5pc1xx_config_sromc(). Comments from Minkyu Kang are fixed
cpu/arm_cortexa8/s5pc1xx/Makefile | 1 + cpu/arm_cortexa8/s5pc1xx/sromc.c | 54 ++++++++++++++++++++++++++++++++++++ include/asm-arm/arch-s5pc1xx/smc.h | 3 ++ 3 files changed, 58 insertions(+), 0 deletions(-) create mode 100644 cpu/arm_cortexa8/s5pc1xx/sromc.c
cpu/arm_cortexa8/s5pc1xx/Makefile +1 -0
@@ -34,6 +34,7 @@ SOBJS += reset.o COBJS += clock.o COBJS += cpu_info.o COBJS += timer.o +COBJS += sromc.o SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS))
cpu/arm_cortexa8/s5pc1xx/sromc.c new file +54 -0
54 lines not on this page · raw message
include/asm-arm/arch-s5pc1xx/smc.h +3 -0
@@ -51,4 +51,7 @@ struct s5pc1xx_smc { };#endif /* __ASSEMBLY__ */ +/* Configure the Band Width and Bank Control Regs for required SROMC Bank */ +void s5pc1xx_config_sromc (u32 srom_bank,u32 smc_bw_conf,u32 smc_bc_conf); +#endif /* __ASM_ARCH_SMC_H_ */
Signature · 1 line
1.6.6