mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
Merge git://git.denx.de/u-boot-socfpga
- Assorted Gen5 fixes
This commit is contained in:
commit
dd38416d6b
3 changed files with 24 additions and 1 deletions
11
Makefile
11
Makefile
|
@ -1476,6 +1476,17 @@ cmd_socboot = cat spl/u-boot-spl.sfp spl/u-boot-spl.sfp \
|
|||
u-boot.img > $@ || rm -f $@
|
||||
u-boot-with-spl.sfp: spl/u-boot-spl.sfp u-boot.img FORCE
|
||||
$(call if_changed,socboot)
|
||||
|
||||
quiet_cmd_socnandboot = SOCNANDBOOT $@
|
||||
cmd_socnandboot = dd if=/dev/zero of=spl/u-boot-spl.pad bs=64 count=1024 ; \
|
||||
cat spl/u-boot-spl.sfp spl/u-boot-spl.pad \
|
||||
spl/u-boot-spl.sfp spl/u-boot-spl.pad \
|
||||
spl/u-boot-spl.sfp spl/u-boot-spl.pad \
|
||||
spl/u-boot-spl.sfp spl/u-boot-spl.pad \
|
||||
u-boot.img > $@ || rm -f $@ spl/u-boot-spl.pad
|
||||
u-boot-with-nand-spl.sfp: spl/u-boot-spl.sfp u-boot.img FORCE
|
||||
$(call if_changed,socnandboot)
|
||||
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_MPC85xx)$(CONFIG_OF_SEPARATE),yy)
|
||||
|
|
|
@ -79,6 +79,8 @@ static const struct {
|
|||
{ 0x2d02, "Cyclone V, SE/A6 or SX/C6 or ST/D6", "cv_se_a6" },
|
||||
/* Arria V */
|
||||
{ 0x2d03, "Arria V, D5", "av_d5" },
|
||||
/* Arria V ST/SX */
|
||||
{ 0x2d13, "Arria V, ST/D3 or SX/B3", "av_st_d3" },
|
||||
};
|
||||
|
||||
static int socfpga_fpga_id(const bool print_id)
|
||||
|
@ -228,10 +230,13 @@ void do_bridge_reset(int enable, unsigned int mask)
|
|||
writel(iswgrp_handoff[3], &sdr_ctrl->fpgaport_rst);
|
||||
writel(iswgrp_handoff[0], &reset_manager_base->brg_mod_reset);
|
||||
writel(iswgrp_handoff[1], &nic301_regs->remap);
|
||||
|
||||
writel(0x7, &reset_manager_base->brg_mod_reset);
|
||||
writel(iswgrp_handoff[0], &reset_manager_base->brg_mod_reset);
|
||||
} else {
|
||||
writel(0, &sysmgr_regs->fpgaintfgrp_module);
|
||||
writel(0, &sdr_ctrl->fpgaport_rst);
|
||||
writel(0, &reset_manager_base->brg_mod_reset);
|
||||
writel(0x7, &reset_manager_base->brg_mod_reset);
|
||||
writel(1, &nic301_regs->remap);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -138,6 +138,13 @@ void board_init_f(ulong dummy)
|
|||
if (ret)
|
||||
debug("Reset init failed: %d\n", ret);
|
||||
|
||||
#ifdef CONFIG_SPL_NAND_DENALI
|
||||
struct socfpga_reset_manager *reset_manager_base =
|
||||
(struct socfpga_reset_manager *)SOCFPGA_RSTMGR_ADDRESS;
|
||||
|
||||
clrbits_le32(&reset_manager_base->per_mod_reset, BIT(4));
|
||||
#endif
|
||||
|
||||
/* enable console uart printing */
|
||||
preloader_console_init();
|
||||
|
||||
|
|
Loading…
Reference in a new issue