]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
Merge branch 'u-boot/master' into 'u-boot-arm/master'
authorAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 8 Apr 2014 07:25:08 +0000 (09:25 +0200)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 8 Apr 2014 07:25:08 +0000 (09:25 +0200)
Conflicts:
arch/arm/cpu/arm926ejs/mxs/Makefile
include/configs/trats.h
include/configs/trats2.h
include/mmc.h

1  2 
Makefile
README
arch/arm/cpu/arm926ejs/mxs/Makefile
arch/arm/imx-common/Makefile
drivers/dfu/dfu.c
include/configs/am335x_evm.h
include/configs/trats.h
include/configs/trats2.h
include/mmc.h
include/sdhci.h

diff --cc Makefile
Simple merge
diff --cc README
Simple merge
index 20e1e4083c5b20e2826a1ddc082ade99f42238d8,209c73cd2b2388301f78792b92c9afec7ba53dd5..6c594945582bbdd3a6a1538f7b2492f3d6a857a2
@@@ -17,64 -17,7 +17,64 @@@ endi
  MKIMAGE_TARGET-$(CONFIG_MX23) = mxsimage.mx23.cfg
  MKIMAGE_TARGET-$(CONFIG_MX28) = mxsimage.mx28.cfg
  
- quiet_cmd_mkimage_mxs = UIMAGE  $@
 +# Generate HAB-capable IVT
 +#
 +# Note on computing the post-IVT size field value for the U-Boot binary.
 +# The value is the result of adding the following:
 +#  -> The size of U-Boot binary aligned to 64B (u-boot.bin)
 +#  -> The size of IVT block aligned to 64B (u-boot.ivt)
 +#  -> The size of U-Boot signature (u-boot.sig), 3904 B
 +#  -> The 64B hole in front of U-Boot binary for 'struct mxs_spl_data' passing
 +#
 +quiet_cmd_mkivt_mxs = MXSIVT  $@
 +cmd_mkivt_mxs =                                                               \
 +      sz=`expr \`stat -c "%s" $^\` + 64 + 3904 + 128` ;               \
 +      echo -n "0x402000d1 $2 0 0 0 $3 $4 0 $$sz 0 0 0 0 0 0 0" |      \
 +      tr -s " " | xargs -d " " -i printf "%08x\n" "{}" | rev |        \
 +      sed "s/\(.\)\(.\)/\\\\\\\\x\2\1\n/g" | xargs -i printf "{}" >$@
 +
 +# Align binary to 64B
 +quiet_cmd_mkalign_mxs = MXSALGN $@
 +cmd_mkalign_mxs =                                                     \
 +      dd if=$^ of=$@ ibs=64 conv=sync 2>/dev/null &&                  \
 +      mv $@ $^
 +
 +# Assemble the CSF file
 +quiet_cmd_mkcsfreq_mxs = MXSCSFR $@
 +cmd_mkcsfreq_mxs =                                                    \
 +      ivt=$(word 1,$^) ;                                              \
 +      bin=$(word 2,$^) ;                                              \
 +      csf=$(word 3,$^) ;                                              \
 +      sed "s@VENDOR@$(VENDOR)@g;s@BOARD@$(BOARD)@g" "$$csf" |         \
 +              sed '/^\#\#Blocks/ d' > $@ ;                            \
 +      echo "  Blocks = $2 0x0 `stat -c '%s' $$bin` \"$$bin\" , \\" >> $@ ; \
 +      echo "           $3 0x0 0x40 \"$$ivt\"" >> $@
 +
 +# Sign files
 +quiet_cmd_mkcst_mxs = MXSCST  $@
 +cmd_mkcst_mxs = cst -o $@ < $^                                                \
 +      $(if $(KBUILD_VERBOSE:1=), >/dev/null)
 +
 +spl/u-boot-spl.ivt: spl/u-boot-spl.bin
 +      $(call if_changed,mkalign_mxs)
 +      $(call if_changed,mkivt_mxs,$(CONFIG_SPL_TEXT_BASE),\
 +              0x00008000,0x00008040)
 +
 +u-boot.ivt: u-boot.bin
 +      $(call if_changed,mkalign_mxs)
 +      $(call if_changed,mkivt_mxs,$(CONFIG_SYS_TEXT_BASE),\
 +              0x40001000,0x40001040)
 +
 +spl/u-boot-spl.csf: spl/u-boot-spl.ivt spl/u-boot-spl.bin board/$(VENDOR)/$(BOARD)/sign/u-boot-spl.csf
 +      $(call if_changed,mkcsfreq_mxs,$(CONFIG_SPL_TEXT_BASE),0x8000)
 +
 +u-boot.csf: u-boot.ivt u-boot.bin board/$(VENDOR)/$(BOARD)/sign/u-boot.csf
 +      $(call if_changed,mkcsfreq_mxs,$(CONFIG_SYS_TEXT_BASE),0x40001000)
 +
 +%.sig: %.csf
 +      $(call if_changed,mkcst_mxs)
 +
+ quiet_cmd_mkimage_mxs = MKIMAGE $@
  cmd_mkimage_mxs = $(objtree)/tools/mkimage -n $< -T mxsimage $@ \
        $(if $(KBUILD_VERBOSE:1=), >/dev/null)
  
Simple merge
Simple merge
Simple merge
index 84c71ced46662176b567e4b8eb7c5f9d516cbd14,1ed4b9f252477ed1f3bc2145a97dc525bb263ad4..5d8bd605836be277cc1a0f2e8068fb29dfb3279d
                   "setenv spl_addr_tmp;\0" \
        "fdtaddr=40800000\0" \
  
 -
 -/* Miscellaneous configurable options */
 -#define CONFIG_SYS_LONGHELP           /* undef to save memory */
 -#define CONFIG_SYS_HUSH_PARSER                /* use "hush" command parser */
 -#define CONFIG_SYS_PROMPT             "TRATS # "
 -#define CONFIG_SYS_CBSIZE             256     /* Console I/O Buffer Size */
 -#define CONFIG_SYS_PBSIZE             384     /* Print Buffer Size */
 -#define CONFIG_SYS_MAXARGS            16      /* max number of command args */
 -/* Boot Argument Buffer Size */
 -#define CONFIG_SYS_BARGSIZE           CONFIG_SYS_CBSIZE
 -/* memtest works on */
 -#define CONFIG_SYS_MEMTEST_START      CONFIG_SYS_SDRAM_BASE
 -#define CONFIG_SYS_MEMTEST_END                (CONFIG_SYS_SDRAM_BASE + 0x5000000)
 -#define CONFIG_SYS_LOAD_ADDR          (CONFIG_SYS_SDRAM_BASE + 0x4800000)
 -
 -/* TRATS has 4 banks of DRAM */
 -#define CONFIG_NR_DRAM_BANKS  4
 -#define SDRAM_BANK_SIZE               (256UL << 20UL) /* 256 MB */
 -#define PHYS_SDRAM_1          CONFIG_SYS_SDRAM_BASE
 -#define PHYS_SDRAM_1_SIZE     SDRAM_BANK_SIZE
 -#define PHYS_SDRAM_2          (CONFIG_SYS_SDRAM_BASE + SDRAM_BANK_SIZE)
 -#define PHYS_SDRAM_2_SIZE     SDRAM_BANK_SIZE
 -#define PHYS_SDRAM_3          (CONFIG_SYS_SDRAM_BASE + (2 * SDRAM_BANK_SIZE))
 -#define PHYS_SDRAM_3_SIZE     SDRAM_BANK_SIZE
 -#define PHYS_SDRAM_4          (CONFIG_SYS_SDRAM_BASE + (3 * SDRAM_BANK_SIZE))
 -#define PHYS_SDRAM_4_SIZE     SDRAM_BANK_SIZE
 -
 -#define CONFIG_SYS_MEM_TOP_HIDE               (1 << 20)       /* ram console */
 -
 -#define CONFIG_SYS_MONITOR_BASE               0x00000000
 -#define CONFIG_SYS_MONITOR_LEN                (256 << 10)     /* Reserve 2 sectors */
 -
 -#define CONFIG_ENV_IS_IN_MMC
 -#define CONFIG_SYS_MMC_ENV_DEV                0
 -#define CONFIG_ENV_SIZE                       4096
 -#define CONFIG_ENV_OFFSET             ((32 - 4) << 10) /* 32KiB - 4KiB */
 -
 -#define CONFIG_DOS_PARTITION
 -#define CONFIG_EFI_PARTITION
 -
 -/* EXT4 */
 -#define CONFIG_CMD_EXT4
 -#define CONFIG_CMD_EXT4_WRITE
  /* Falcon mode definitions */
  #define CONFIG_CMD_SPL
 -#define CONFIG_SYS_SPL_ARGS_ADDR        PHYS_SDRAM_1 + 0x100
 +#define CONFIG_SYS_SPL_ARGS_ADDR        CONFIG_SYS_SDRAM_BASE + 0x100
  
 -#define CONFIG_EFI_PARTITION
 -#define CONFIG_PARTITION_UUIDS
+ /* GPT */
 -#define CONFIG_SYS_INIT_SP_ADDR       (CONFIG_SYS_LOAD_ADDR - GENERATED_GBL_DATA_SIZE)
 -#define CONFIG_SYS_CACHELINE_SIZE       32
+ #define CONFIG_RANDOM_UUID
 +/* I2C */
 +#include <asm/arch/gpio.h>
 +
 +#define CONFIG_CMD_I2C
  
  #define CONFIG_SYS_I2C
  #define CONFIG_SYS_I2C_S3C24X0
  #define CONFIG_POWER_MUIC_MAX8997
  #define CONFIG_POWER_BATTERY
  #define CONFIG_POWER_BATTERY_TRATS
 -#define CONFIG_USB_GADGET
 -#define CONFIG_USB_GADGET_S3C_UDC_OTG
 -#define CONFIG_USB_GADGET_DUALSPEED
 -#define CONFIG_USB_GADGET_VBUS_DRAW   2
 -#define CONFIG_USB_CABLE_CHECK
  
+ /* Security subsystem - enable hw_rand() */
+ #define CONFIG_EXYNOS_ACE_SHA
+ #define CONFIG_LIB_HW_RAND
  /* Common misc for Samsung */
  #define CONFIG_MISC_COMMON
  
index 85cf4aadc5475078dd0f7cb2e19cbbed3a14b8d9,6d89ca93f2b4335bad964c4058396e6d8694a590..53d449c291a05d4c105387d6a54b6645438365bf
                   "setenv spl_addr_tmp;\0" \
        "fdtaddr=40800000\0" \
  
 -/*
 - * Miscellaneous configurable options
 - */
 -#define CONFIG_SYS_LONGHELP                   /* undef to save memory */
 -#define CONFIG_SYS_PROMPT     "Trats2 # "     /* Monitor Command Prompt */
 -#define CONFIG_SYS_CBSIZE     256             /* Console I/O Buffer Size */
 -#define CONFIG_SYS_PBSIZE     384             /* Print Buffer Size */
 -#define CONFIG_SYS_MAXARGS    32              /* max number of command args */
 -
 -/* Boot Argument Buffer Size */
 -#define CONFIG_SYS_BARGSIZE           CONFIG_SYS_CBSIZE
 -
 -/* memtest works on */
 -#define CONFIG_SYS_MEMTEST_START      CONFIG_SYS_SDRAM_BASE
 -#define CONFIG_SYS_MEMTEST_END                (CONFIG_SYS_SDRAM_BASE + 0x5000000)
 -#define CONFIG_SYS_LOAD_ADDR          (CONFIG_SYS_SDRAM_BASE + 0x4800000)
 -
 -#define CONFIG_SYS_INIT_SP_ADDR               (CONFIG_SYS_LOAD_ADDR \
 -                                      - GENERATED_GBL_DATA_SIZE)
 -
 -/* valid baudrates */
 -#define CONFIG_SYS_BAUDRATE_TABLE     { 9600, 19200, 38400, 57600, 115200 }
 -
 -#define CONFIG_SYS_MONITOR_BASE               0x00000000
 -
 -/*-----------------------------------------------------------------------
 - * FLASH and environment organization
 - */
 -
 -#define CONFIG_SYS_MONITOR_LEN                (256 << 10)     /* Reserve 2 sectors */
 -
 -#define CONFIG_ENV_IS_IN_MMC
 -#define CONFIG_SYS_MMC_ENV_DEV                CONFIG_MMC_DEFAULT_DEV
 -#define CONFIG_ENV_SIZE                       4096
 -#define CONFIG_ENV_OFFSET             ((32 - 4) << 10) /* 32KiB - 4KiB */
 -#define CONFIG_EFI_PARTITION
 -#define CONFIG_PARTITION_UUIDS
++/* GPT */
+ #define CONFIG_RANDOM_UUID
 -#define CONFIG_BOARD_EARLY_INIT_F
 -
  /* I2C */
  #include <asm/arch/gpio.h>
  
@@@ -200,7 -319,16 +203,11 @@@ int get_soft_i2c_sda_pin(void)
  #define CONFIG_POWER_MUIC_MAX77693
  #define CONFIG_POWER_FG_MAX77693
  #define CONFIG_POWER_BATTERY_TRATS2
 -#define CONFIG_USB_GADGET
 -#define CONFIG_USB_GADGET_S3C_UDC_OTG
 -#define CONFIG_USB_GADGET_DUALSPEED
 -#define CONFIG_USB_GADGET_VBUS_DRAW   2
 -#define CONFIG_USB_CABLE_CHECK
  
+ /* Security subsystem - enable hw_rand() */
+ #define CONFIG_EXYNOS_ACE_SHA
+ #define CONFIG_LIB_HW_RAND
  /* Common misc for Samsung */
  #define CONFIG_MISC_COMMON
  
diff --cc include/mmc.h
index b65ad9e41e95e11f0bbfbb58f615d21b6599f098,c0a1d9e0221fad2d19b430bc0ac5f4acf1096516..42d01251b59bc8d5316e829d931b15d3eb66b11a
@@@ -354,6 -372,9 +372,11 @@@ struct mmc *mmc_spi_init(uint bus, uin
  int mmc_legacy_init(int verbose);
  #endif
  
 +int board_mmc_init(bd_t *bis);
 +
+ /* Set block count limit because of 16 bit register limit on some hardware*/
+ #ifndef CONFIG_SYS_MMC_MAX_BLK_COUNT
+ #define CONFIG_SYS_MMC_MAX_BLK_COUNT 65535
+ #endif
  #endif /* _MMC_H_ */
diff --cc include/sdhci.h
Simple merge