1. 17 3月, 2018 4 次提交
  2. 16 3月, 2018 10 次提交
  3. 15 3月, 2018 9 次提交
  4. 14 3月, 2018 17 次提交
    • A
      sunxi: move CONFIG_SYS_TEXT_BASE out of defconfigs · 341c0586
      Andre Przywara 提交于
      Commit 278b90ce ("configs: Migrate CONFIG_SYS_TEXT_BASE") made
      CONFIG_SYS_TEXT_BASE a proper Kconfig variable, with the consequence
      of moving the common definition shared by almost every sunxi board
      into 123 individual defconfig files. But the U-Boot start address
      for Allwinner boards is a platform decision which has been around for
      ages, so defining it in each *board* config file seems a bit over the
      top.
      Define the standard values (160MB into DRAM for most SoCs, with two
      SoC exceptions) if ARCH_SUNXI is selected, and delete the lines from
      the individual defconfigs.
      Signed-off-by: NAndre Przywara <andre.przywara@arm.com>
      Acked-by: NMaxime Ripard <maxime.ripard@bootlin.com>
      Reviewed-by: NJagan Teki <jagan@openedev.com>
      341c0586
    • P
      common/memsize.c: restore content of the base address · 218da804
      Patrick Delaunay 提交于
      For the last return of function get_ram_size(),
      when size=maxsize, restore the base address (*base)
      content.
      
      Add comment for the remaining case to avoid regression:
      this case is already correctly handled.
      Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
      218da804
    • P
      common/memsize.c: prepare get_ram_size update · c5da05cd
      Patrick Delaunay 提交于
      Save the content of the base address in a new variable
      in stack (save_base) to prepare restore this content.
      
      This patch don't modified code behavior and stack usage.
      Signed-off-by: NPatrick Delaunay <patrick.delaunay@st.com>
      c5da05cd
    • S
    • S
      omap: Fix AM335x build with enabled fastboot flash · 7a390c0e
      Sam Protsenko 提交于
      When enabling CONFIG_FASTBOOT_FLASH in am335x_boneblack_defconfig, next
      build errors and warnings occur:
      
          arch/arm/mach-omap2/utils.c: In function ‘omap_set_fastboot_cpu’:
          arch/arm/mach-omap2/utils.c:26:16: warning: implicit declaration of
                    function ‘omap_revision’ [-Wimplicit-function-declaration]
                    u32 cpu_rev = omap_revision();
                                  ^~~~~~~~~~~~~
          arch/arm/mach-omap2/utils.c:29:7: error: ‘DRA762_ES1_0’ undeclared
                    (first use in this function)
      
      Include asm/omap_common.h explicitly to avoid those.
      Signed-off-by: NSam Protsenko <semen.protsenko@linaro.org>
      Acked-by: NLukasz Majewski <lukma@denx.de>
      Reviewed-by: NTom Rini <trini@konsulko.com>
      7a390c0e
    • J
      ARM: dts: dra7x: Make pinctrl and IOdelays for MMC2 available in SPL · 938c3cfb
      Jean-Jacques Hiblot 提交于
      The SPL can't use high speed MMC modes if the associated pinctrl and
      IOdelays are described in the DTS.
      Make them available in SPL by tagging the nodes with 'u-boot,dm-spl;'
      Signed-off-by: NJean-Jacques Hiblot <jjhiblot@ti.com>
      938c3cfb
    • J
      configs: dra7xx_evm: Enable support for the HS200 mmc mode in the SPL · 3f099629
      Jean-Jacques Hiblot 提交于
      Beside enabling the support for HS200 in mmc core, enabling the HS200
      support in the SPL requires multi-dtb support in the SPL because pinctrl
      and IOdelays vary across SOCs.
      
      Also we need to make sure that the pinctrl properties arenot removed from
      the dts by setting CONFIG_OF_SPL_REMOVE_PROPS to remove only clocks and
      interrupts properties.
      Signed-off-by: NJean-Jacques Hiblot <jjhiblot@ti.com>
      3f099629
    • J
      ARM: dts: dra76-evm: shift to using common IOdelay data · a7b704a0
      Jean-Jacques Hiblot 提交于
      Now that we have a device-tree include file with common
      MMC/SD IOdelay data for DRA76x SoC, shift the EVM device-tree
      file to using that.
      Also fix the name of the IO voltage regulator for mmc1.
      Signed-off-by: NJean-Jacques Hiblot <jjhiblot@ti.com>
      a7b704a0
    • J
      ARM: dts: dra76x: create a common file with MMC/SD IOdelay data · cb608ccb
      Jean-Jacques Hiblot 提交于
      Add a common device-tree include file with MMC/SD IOdelay data
      for DRA76x SoC based on the linux DTSI file.
      
      In the most common case, IOdelay data available in datamanual
      can directly be used. This file caters to that common case.
      
      Data is based on DRA76x datamanual, SPRS993A, revised July 2017.
      Signed-off-by: NJean-Jacques Hiblot <jjhiblot@ti.com>
      cb608ccb
    • D
      ARM: omap3: evm: Sync with omap3_beagle configuration · b6e2543c
      Derald D. Woods 提交于
      This commit does the following for OMAP3 EVM:
      
      - Track omap3_beagle changes where possible
      - Remove CONFIG_SYS_MPUCLK and CONFIG_MTD which are not needed for the
        default board configuration to work.
      - Remove CONFIG_SPL_SYS_MALLOC_SIMPLE and CONFIG_SYS_MALLOC_F_LEN from
        default config. CONFIG_SYS_MALLOC_F_LEN=0x400 is set by configuration
        automatically. [allows board to boot with SERIAL_SEARCH_ALL=y]
      - Use updated NAND layout:
      
      	device nand0 <omap2-nand.0>, # parts = 6
      
      	#: name		size			offset
      	-------------------------------------------------
      	0: spl		0x00080000(512k)	0x00000000
      	1: u-boot	0x001e0000(1920k)	0x00080000
      	2: u-boot-env	0x00020000(128k)	0x00260000
      	3: dtb		0x00020000(128k)	0x00280000
      	4: kernel	0x00600000(6m)		0x002a0000
      	5: rootfs	0x0f760000(-)		0x008a0000
      	-------------------------------------------------
      Signed-off-by: NDerald D. Woods <woods.technical@gmail.com>
      b6e2543c
    • D
      ARM: omap3: beagle: Enable DM_SERIAL, update distro usage and NAND layout · d233ccb1
      Derald D. Woods 提交于
      This commit does the following for BeagleBoard{-xM}:
      
      - Enable DM_SERIAL which also enables SPL_DM_SERIAL
      - Misc. config updates in support of DM_SERIAL
      - Use updated NAND layout (BeagleBoard):
      
      	device nand0 <omap2-nand.0>, # parts = 6
      
      	#: name		size			offset
      	-------------------------------------------------
      	0: spl		0x00080000(512k)	0x00000000
      	1: u-boot	0x001e0000(1920k)	0x00080000
      	2: u-boot-env	0x00020000(128k)	0x00260000
      	3: dtb		0x00020000(128k)	0x00280000
      	4: kernel	0x00600000(6m)		0x002a0000
      	5: rootfs	0x0f760000(-)		0x008a0000
      	-------------------------------------------------
      
      - Use MMC and UBIFS support from config_distro_bootcmd.h
      - Use LEGACY_MMC and NAND support defined in omap3_beagle.h
      
      [MMC(0:1)/extlinux/extlinux.conf]
      ---8<-------------------------------------------------------------------
      default omap3-beagle-mmc-fat
      label omap3-beagle-mmc-fat
      	kernel /zImage
      	fdt /omap3-beagle.dtb
      	append console=ttyO2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
      ---8<-------------------------------------------------------------------
      
      [LEGACY_MMC(0:2)/boot/extlinux/extlinux.conf]
      ---8<-------------------------------------------------------------------
      default omap3-beagle-mmc-ext4
      label omap3-beagle-mmc-ext4
      	kernel /boot/zImage
      	fdt /boot/omap3-beagle.dtb
      	append console=ttyO2,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
      ---8<-------------------------------------------------------------------
      
      [UBIFS(ubi0:rootfs)/boot/extlinux/extlinux.conf]
      ---8<-------------------------------------------------------------------
      default omap3-beagle-nand-ubifs
      label omap3-beagle-nand-ubifs
      	kernel /boot/zImage
      	fdt /boot/omap3-beagle.dtb
      	append console=ttyO2,115200n8 root=ubi0:rootfs rw ubi.mtd=rootfs rootfstype=ubifs rootwait
      ---8<-------------------------------------------------------------------
      
      The board's 'bootcmd' can also be overridden with:
      
      	CONFIG_BOOTCOMMAND="run findfdt; run mmcboot"
      	CONFIG_BOOTCOMMAND="run findfdt; run nandboot"
      	CONFIG_BOOTCOMMAND="run findfdt; run ramboot"
      
      		or
      
      	CONFIG_BOOTCOMMAND="run findfdt; run somethingelse"
      
      The use of 'run findfdt' is required.
      Signed-off-by: NDerald D. Woods <woods.technical@gmail.com>
      d233ccb1
    • D
      ARM: omap3: beagle: Set 'mtdids' and 'mtdparts' in board file · ebf6e265
      Derald D. Woods 提交于
      BeagleBoard 'xM' does not really have NAND. CONFIG_MTDIDS_DEFAULT and
      CONFIG_MTDPARTS_DEFAULT can/should be empty for 'xM'. This commit sets
      the defined values if they exist.
      Signed-off-by: NDerald D. Woods <woods.technical@gmail.com>
      ebf6e265
    • S
      env: ti: boot: Get rid of magic numbers · 2c9afab9
      Sam Protsenko 提交于
      Get the start address and the size of partitions using partition names
      rather than partition numbers. This way we can change the partition
      table further without changing the boot code.
      Signed-off-by: NSam Protsenko <semen.protsenko@linaro.org>
      2c9afab9
    • S
      cmd: part: Extract common code to separate function · 64e6a49a
      Sam Protsenko 提交于
      Refactor the code for "part start" and "part size" commands to avoid
      code duplication.
      Signed-off-by: NSam Protsenko <semen.protsenko@linaro.org>
      Reviewed-by: NLukasz Majewski <lukma@denx.de>
      64e6a49a
    • S
      cmd: part: Allow passing partition name to start and size · 36df616a
      Sam Protsenko 提交于
      Allow passing the partition name to "part start" and "part size"
      commands, so we can avoid magic numbers in the environment.
      
      Consider one real use-case: in include/environment/ti/boot.h we have
      commands like these:
      
          setenv boot_part 9
          part start mmc ${mmcdev} ${boot_part} boot_start
          part size mmc ${mmcdev} ${boot_part} boot_size
          mmc read ${loadaddr} ${boot_start} ${boot_size}
      
      Now suppose that we have changed the partition table and boot_part now
      is 10. We will need to fix commands above. And anyone who relies on
      these boot commands, will need to change them accordingly, too (this was
      an actual case in our lab while testing Linux boot on Android
      environment).
      
      By providing the option to pass partition name instead, we fix mentioned
      issue, by eliminating the necessity to use magic numbers.
      Signed-off-by: NSam Protsenko <semen.protsenko@linaro.org>
      Reviewed-by: NLukasz Majewski <lukma@denx.de>
      36df616a
    • S
      test/py: highlight warnings in the log summary · 32090e50
      Stephen Warren 提交于
      Currently, if a test emits a warning message but otherwise passes, there's
      no indication of this in the log summary, which can lead to warnings being
      missed. Enhance the test logic to explicitly mention warnings in otherwise
      passing tests, and not to collapse the log sections for tests with
      warnings, so that they're more easily seen when scanning the log.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      32090e50
    • S
      test/py: add MMC/SD block read test · 4bdc90f9
      Stephen Warren 提交于
      Add a standalone MMC block read test. This allows direct testing of MMC
      access rather than relying on doing so as a side-effect of e.g. DFU or
      UMS testing, which may not be enabled on all platforms.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      4bdc90f9