ORIGEN Board Support
v5 cover ORIGEN Board Support
Adds support for ORIGEN board with MMC Booting.
Chander Kashyap (2):
ARMV7: Add support for Samsung ORIGEN board
ORIGEN: Add MMC SPL support
MAINTAINERS | 1 + board/samsung/origen/Makefile | 64 ++++ board/samsung/origen/lowlevel_init.S | 357 +++++++++++++++++++ board/samsung/origen/mem_setup.S | 421 ++++++++++++++++++++++ board/samsung/origen/mmc_boot.c | 58 +++ board/samsung/origen/origen.c | 109 ++++++ board/samsung/origen/origen_setup.h | 546 +++++++++++++++++++++++++++++ board/samsung/origen/tools/mkv310_image.c | 126 +++++++ boards.cfg | 1 + include/configs/origen.h | 168 +++++++++ spl/Makefile | 10 + 11 files changed, 1861 insertions(+), 0 deletions(-) create mode 100644 board/samsung/origen/Makefile create mode 100644 board/samsung/origen/lowlevel_init.S create mode 100644 board/samsung/origen/mem_setup.S create mode 100644 board/samsung/origen/mmc_boot.c create mode 100644 board/samsung/origen/origen.c create mode 100644 board/samsung/origen/origen_setup.h create mode 100644 board/samsung/origen/tools/mkv310_image.c create mode 100644 include/configs/origen.h
Signature · 1 line
1.7.4.1
PATCH v5 1/2 ARMV7: Add support for Samsung ORIGEN board
Origen board is based upon S5PV310 SoC which is similiar to S5PC210 SoC.
---
Changes for v2:
- None
Changes for v3:
- Board entry added Alphabetically in boards.cfg
- Used get_Ram_size function to calculate ram size
Changes for v4:
- CONFIG_MACH_TYPE defined to initialise MACH_TYPE in generic way
- Used s5p_gpio_* functions for gpio operations
Changes for v5:
- Used Symbolic names for hard-coded macros
- Used get_ram_size() while initialising gd->bd->bi_dram[].size
MAINTAINERS | 1 + board/samsung/origen/Makefile | 46 +++ board/samsung/origen/lowlevel_init.S | 357 ++++++++++++++++++++++ board/samsung/origen/mem_setup.S | 421 ++++++++++++++++++++++++++ board/samsung/origen/origen.c | 109 +++++++ board/samsung/origen/origen_setup.h | 546 ++++++++++++++++++++++++++++++++++ boards.cfg | 1 + include/configs/origen.h | 160 ++++++++++ 8 files changed, 1641 insertions(+), 0 deletions(-) create mode 100644 board/samsung/origen/Makefile create mode 100644 board/samsung/origen/lowlevel_init.S create mode 100644 board/samsung/origen/mem_setup.S create mode 100644 board/samsung/origen/origen.c create mode 100644 board/samsung/origen/origen_setup.h create mode 100644 include/configs/origen.h
MAINTAINERS +1 -0
@@ -709,6 +709,7 @@ Minkyu Kang <[email protected]> Chander Kashyap <[email protected]> + origen ARM ARMV7 (S5PC210 SoC) SMDKV310 ARM ARMV7 (S5PC210 SoC) Torsten Koschorrek <[email protected]>
board/samsung/origen/Makefile new file +46 -0
46 lines not on this page · raw message
board/samsung/origen/lowlevel_init.S new file +357 -0
357 lines not on this page · raw message
board/samsung/origen/mem_setup.S new file +421 -0
421 lines not on this page · raw message
board/samsung/origen/origen.c new file +109 -0
109 lines not on this page · raw message
board/samsung/origen/origen_setup.h new file +546 -0
546 lines not on this page · raw message
boards.cfg +1 -0
@@ -165,6 +165,7 @@ omap4_panda arm armv7 panda ti omap4_sdp4430 arm armv7 sdp4430 ti omap4 s5p_goni arm armv7 goni samsung s5pc1xx smdkc100 arm armv7 smdkc100 samsung s5pc1xx +origen arm armv7 origen samsung s5pc2xx s5pc210_universal arm armv7 universal_c210 samsung s5pc2xx smdkv310 arm armv7 smdkv310 samsung s5pc2xx harmony arm armv7 harmony nvidia tegra2
include/configs/origen.h new file +160 -0
160 lines not on this page · raw message
Signature · 1 line
1.7.4.1
PATCH v5 1/2 ARMV7: Add support for Samsung ORIGEN board
Dear Chander Kashyap,
Quoted 25 lines · Chander Kashyap
Origen board is based upon S5PV310 SoC which is similiar to S5PC210 SoC.
Signed-off-by Chander Kashyap <[email protected]>---
Changes for v2:
? ? ? ?- None
Changes for v3:
? ? ? ?- Board entry added Alphabetically in boards.cfg
? ? ? ?- Usedget_Ram_sizefunction to calculate ram size Changes for v4:
? ? ? ?-CONFIG_MACH_TYPEdefined to initialiseMACH_TYPEin generic way ? ? ? ?- Used s5p_gpio_* functions for gpio operations Changes for v5:
? ? ? ?- Used Symbolic names for hard-coded macros
? ? ? ?- Usedget_ram_size()while initialising gd->bd->bi_dram[].size?MAINTAINERS ? ? ? ? ? ? ? ? ? ? ? ? ?| ? ?1 + ?board/samsung/origen/Makefile ? ? ? ?| ? 46 +++ ?board/samsung/origen/lowlevel_init.S | ?357 ++++++++++++++++++++++ ?board/samsung/origen/mem_setup.S ? ? | ?421 ++++++++++++++++++++++++++ ?board/samsung/origen/origen.c ? ? ? ?| ?109 +++++++ ?board/samsung/origen/origen_setup.h ?| ?546 ++++++++++++++++++++++++++++++++++ ?boards.cfg ? ? ? ? ? ? ? ? ? ? ? ? ? | ? ?1 + ?include/configs/origen.h ? ? ? ? ? ? | ?160 ++++++++++
Quoted 8 lines
?8 files changed, 1641 insertions(+), 0 deletions(-) ?create mode 100644 board/samsung/origen/Makefile ?create mode 100644
board/samsung/origen/lowlevel_init.S?create mode 100644board/samsung/origen/mem_setup.S?create mode 100644board/samsung/origen/origen.c?create mode 100644board/samsung/origen/origen_setup.h?create mode 100644include/configs/origen.h
applied to u-boot-samsung
Thanks
Minkyu Kang
Signature · 2 lines
from. prom. www.promsoft.net
PATCH v5 2/2 ORIGEN: Add MMC SPL support
In reply to Chander KashyapAdds mmc boot support.
---
Changes for v2:
- Added Dirk Behme's patch
- SMDKV310: Fix host compilation of mkv310_image
Changes for v3:
- None
Changes for v4:
- None
Changes for v5:
- Use spl framwork for mmc spl support
- Removed typedef for function pointer (API to copy u-boot from mmc to ram)
board/samsung/origen/Makefile | 20 +++++- board/samsung/origen/mmc_boot.c | 58 +++++++++++++ board/samsung/origen/tools/mkv310_image.c | 126 +++++++++++++++++++++++++++++ include/configs/origen.h | 8 ++ spl/Makefile | 10 +++ 5 files changed, 221 insertions(+), 1 deletions(-) create mode 100644 board/samsung/origen/mmc_boot.c create mode 100644 board/samsung/origen/tools/mkv310_image.c
board/samsung/origen/Makefile +19 -1
@@ -26,16 +26,34 @@ LIB = $(obj)lib$(BOARD).o SOBJS := mem_setup.o SOBJS += lowlevel_init.o + +ifndef CONFIG_SPL_BUILD COBJS += origen.o +endif + +ifdef CONFIG_SPL_BUILD +COBJS += mmc_boot.o +endif SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c) OBJS := $(addprefix $(obj),$(COBJS) $(SOBJS)) -all: $(obj).depend $(LIB) +ALL +=$(obj).depend $(LIB) + +ifdef CONFIG_SPL_BUILD +ALL += tools/mk$(BOARD)spl.exe +endif + +all: $(ALL) $(LIB): $(OBJS) $(AR) $(ARFLAGS) $@ $(OBJS) +ifdef CONFIG_SPL_BUILD +tools/mk$(BOARD)spl.exe: tools/mkv310_image.c + $(HOSTCC) tools/mkv310_image.c -o tools/mk$(BOARD)spl.exe +endif + ######################################################################### # defines $(obj).depend target
board/samsung/origen/mmc_boot.c new file +58 -0
58 lines not on this page · raw message
board/samsung/origen/tools/mkv310_image.c new file +126 -0
126 lines not on this page · raw message
include/configs/origen.h +8 -0
@@ -94,6 +94,9 @@#define CONFIG_BOOTDELAY 3#define CONFIG_ZERO_BOOTDELAY_CHECK +/* MMC SPL */ +#define CONFIG_SPL +#define COPY_BL2_FNPTR_ADDR 0x02020030#define CONFIG_BOOTCOMMAND "fatload mmc 0 40007000 uImage; bootm 40007000"
@@ -157,4 +160,9 @@#define CONFIG_DOS_PARTITION 1#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_LOAD_ADDR - GENERATED_GBL_DATA_SIZE) + +/* U-boot copy size from boot Media to DRAM.*/ +#define COPY_BL2_SIZE 0x80000 +#define BL2_START_OFFSET ((CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)/512) +#define BL2_SIZE_BLOC_COUNT (COPY_BL2_SIZE/512)#endif /* __CONFIG_H */
spl/Makefile +10 -0
@@ -93,8 +93,18 @@ endif ALL-y += $(obj)u-boot-spl.bin +ifdef CONFIG_SAMSUNG +ALL-y += $(obj)$(BOARD)-spl.bin +endif + all: $(ALL-y) +ifdef CONFIG_SAMSUNG +$(obj)$(BOARD)-spl.bin: $(obj)u-boot-spl.bin + $(TOPDIR)/board/$(BOARDDIR)/tools/mk$(BOARD)spl.exe \ + $(obj)u-boot-spl.bin $(obj)$(BOARD)-spl.bin +endif + $(obj)u-boot-spl.bin: $(obj)u-boot-spl $(OBJCOPY) $(OBJCFLAGS) -O binary $< $@
Signature · 1 line
1.7.4.1
PATCH v5 2/2 ORIGEN: Add MMC SPL support
Dear Chander Kashyap,
Quoted 16 lines · Chander Kashyap
Adds mmc boot support.
Signed-off-by Chander Kashyap <[email protected]>---
Changes for v2:
? ? ? ?- Added Dirk Behme's patch
? ? ? ?- SMDKV310: Fix host compilation ofmkv310_imageChanges for v3:
? ? ? ?- None
Changes for v4:
? ? ? ?- None
Changes for v5:
? ? ? ?- Use spl framwork for mmc spl support ? ? ? ?- Removed typedef for function pointer ? ? ? ? ? ? ? ?(API to copy u-boot from mmc to ram)
Quoted 9 lines
?board/samsung/origen/Makefile ? ? ? ? ? ? | ? 20 +++++- ?board/samsung/origen/mmc_boot.c ? ? ? ? ? | ? 58 +++++++++++++ ?board/samsung/origen/tools/mkv310_image.c | ?126 +++++++++++++++++++++++++++++ ?include/configs/origen.h ? ? ? ? ? ? ? ? ?| ? ?8 ++ ?spl/Makefile ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| ? 10 +++?5 files changed, 221 insertions(+), 1 deletions(-) ?create mode 100644
board/samsung/origen/mmc_boot.c?create mode 100644board/samsung/origen/tools/mkv310_image.c
applied to u-boot-samsung
Thanks
Minkyu Kang
Signature · 2 lines
from. prom. www.promsoft.net