Skip to contentSkip to conversation

S5PC100: Function to configure the SROMC registers.

PATCH Superseded Naveen Krishna Ch 1 participant 1 message Feb 10, 2010

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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.

---
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
index 4f922e6..0a6a9b4 100644
@@ -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
index 2a1ee07..a280dc1 100644
@@ -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