Skip to content
Snippets Groups Projects
  1. Feb 12, 2017
    • Masahiro Yamada's avatar
      flash: complete CONFIG_SYS_NO_FLASH move with renaming · e856bdcf
      Masahiro Yamada authored
      
      We repeated partial moves for CONFIG_SYS_NO_FLASH, but this is
      not completed. Finish this work by the tool.
      
      During this move, let's rename it to CONFIG_MTD_NOR_FLASH.
      Actually, we have more instances of "#ifndef CONFIG_SYS_NO_FLASH"
      than those of "#ifdef CONFIG_SYS_NO_FLASH".  Flipping the logic will
      make the code more readable.  Besides, negative meaning symbols do
      not fit in obj-$(CONFIG_...) style Makefiles.
      
      This commit was created as follows:
      
      [1] Edit "default n" to "default y" in the config entry in
          common/Kconfig.
      
      [2] Run "tools/moveconfig.py -y -r HEAD SYS_NO_FLASH"
      
      [3] Rename the instances in defconfigs by the following:
        find . -path './configs/*_defconfig' | xargs sed -i \
        -e '/CONFIG_SYS_NO_FLASH=y/d' \
        -e 's/# CONFIG_SYS_NO_FLASH is not set/CONFIG_MTD_NOR_FLASH=y/'
      
      [4] Change the conditionals by the following:
        find . -name '*.[ch]' | xargs sed -i \
        -e 's/ifndef CONFIG_SYS_NO_FLASH/ifdef CONFIG_MTD_NOR_FLASH/' \
        -e 's/ifdef CONFIG_SYS_NO_FLASH/ifndef CONFIG_MTD_NOR_FLASH/' \
        -e 's/!defined(CONFIG_SYS_NO_FLASH)/defined(CONFIG_MTD_NOR_FLASH)/' \
        -e 's/defined(CONFIG_SYS_NO_FLASH)/!defined(CONFIG_MTD_NOR_FLASH)/'
      
      [5] Modify the following manually
        - Rename the rest of instances
        - Remove the description from README
        - Create the new Kconfig entry in drivers/mtd/Kconfig
        - Remove the old Kconfig entry from common/Kconfig
        - Remove the garbage comments from include/configs/*.h
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      e856bdcf
  2. Feb 09, 2017
  3. Feb 08, 2017
  4. Feb 07, 2017
  5. Feb 03, 2017
  6. Jan 31, 2017
    • Masahiro Yamada's avatar
      mmc: zynq: rename CONFIG_ZYNQ_SDHCI to CONFIG_MMC_SDHCI_ZYNQ · 08aa0334
      Masahiro Yamada authored
      
      Make the naming scheme consistent; all SDHCI-base drivers prefixed
      with CONFIG_MMC_SDHCI_.
      
      While we are here, add "depends on ARCH_ZYNQ || ARCH_ZYNQMP".
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      08aa0334
    • Masahiro Yamada's avatar
      mmc: move CONFIG_GENERIC_MMC to Kconfig · 54925327
      Masahiro Yamada authored
      
      Now, CONFIG_GENERIC_MMC seems equivalent to CONFIG_MMC.
      
      Let's create an entry for "config GENERIC_MMC" with "default MMC",
      then convert all macro defines in headers to Kconfig.  Almost all
      of the defines will go away.
      
      I see only two exceptions:
        configs/blanche_defconfig
        configs/sandbox_noblk_defconfig
      
      They define CONFIG_GENERIC_MMC, but not CONFIG_MMC.  Something
      might be wrong with these two boards, so should be checked later.
      
      Anyway, this is the output of the moveconfig tool.
      
      This commit was created as follows:
      
      [1] create a config entry in drivers/mmc/Kconfig
      
      [2] tools/moveconfig.py -r HEAD GENERIC_MMC
      
      [3] manual clean-up of garbage comments in doc/README.* and
          include/configs/*.h
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: default avatarTom Rini <trini@konsulko.com>
      54925327
  7. Jan 30, 2017
  8. Jan 29, 2017
    • Masahiro Yamada's avatar
      ARM: uniphier: make update commands more flexible for ATF · b7b43036
      Masahiro Yamada authored
      
      Currently, SPL (u-boot-spl.bin) and U-Boot (u-boot.bin) are stored
      in non-volatile devices, and some environments are defined to update
      the images easily.
      
      When ARM Trusted Firmware is fully used, SPL is not used.  U-Boot
      proper is contained as BL33 into FIP (Firmware Image Package), which
      is standard container used by ATF.  Allow to use it.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      b7b43036
    • Masahiro Yamada's avatar
      ARM: uniphier: change CONFIG_SPL_PAD_TO to 128KB · c0efc314
      Masahiro Yamada authored
      
      The Boot ROM supports authentication feature to prevent malformed
      software from being run on products.  The signature is added at the
      tail of the second stage loader (= SPL in U-boot terminology).
      
      The size of the second stage loader was 64KB, and it was consistent
      across SoCs.  The situation changed when LD20 SoC appeared; it loads
      80KB second stage loader, and it is the only exception.
      
      Currently, CONFIG_SPL_PAD_TO is set to 64KB and U-Boot proper is
      loaded from the 64KB offset of non-volatile devices.  This means the
      signature of LD20 SoC (located at 80KB offset) corrupts the U-Boot
      proper image.
      
      Let's move the U-Boot proper image to 128KB offset.  It uses 48KB
      for nothing but padding, and we could actually locate the U-Boot
      proper at 80KB offset.  However, the power of 2 generally seems a
      better choice for the offset address.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      c0efc314
    • Masahiro Yamada's avatar
      ARM: uniphier: change the offset to environment storage area · 0b93e3de
      Masahiro Yamada authored
      
      When ARM Trusted Firmware is used, bl1.bin + fip.bin exceeds 512KB,
      so the boot image and the current environment area will overlap.
      Move the environment storage to 1MB offset.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      0b93e3de
    • Masahiro Yamada's avatar
      ARM: uniphier: set initrd_high environment to skip initrd relocation · c0df1faf
      Masahiro Yamada authored
      
      The boot_ramdisk_high() checks the environment "initrd_high" and,
      if it is set to (ulong)-1, skip the initrd relocation.  This is
      useful for faster booting when we know the initrd is already located
      within the reach of the kernel.
      
      Change "norboot" to copy images in order to make it work without
      depending on the automatic relocation.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      c0df1faf
    • Masahiro Yamada's avatar
      ARM: uniphier: use Image.gz instead Image for booting ARM64 Linux · 99b85170
      Masahiro Yamada authored
      
      The ARM64 Linux raw image now amounts to 15MB and it is getting
      bigger and bigger.  Using Image.gz saves about 8MB.  The cost of
      unzip is smaller than what we get by saving the kernel loading
      from non-volatile devices.
      
      The ARM32 Linux still uses zImage, a self-decompressor image,
      so it should not be affected.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      99b85170
    • Masahiro Yamada's avatar
      ARM: uniphier: collect SPL CONFIG symbols to the bottom of header · 3e0cfaa0
      Masahiro Yamada authored
      
      For clarification, move CONFIG symbols that affect SPL building
      into a single place.  Drop #ifdef CONFIG_SPL ... #endif since it is
      harmless to define CONFIG_SPL_... during U-Boot proper building.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      3e0cfaa0
    • Masahiro Yamada's avatar
      ARM: uniphier: detect RAM size by decoding HW register instead of DT · 3e9952be
      Masahiro Yamada authored
      
      U-Boot needs to set up available memory area(s) in dram_init() and
      dram_init_banksize().  It is platform-dependent how to detect the
      memory banks.  Currently, UniPhier adopts the memory banks _alleged_
      by DT.  This is based on the assumption that users bind a correct DT
      in their build process.
      
      Come to think of it, the DRAM controller has already been set up
      before U-Boot is entered (because U-Boot runs on DRAM).  So, the
      DRAM controller setup register seems a more reliable source of any
      information about DRAM stuff.  The DRAM banks are initialized by
      preliminary firmware (SPL, ARM Trusted Firmware BL2, or whatever),
      so this means the source of the reliability is shifted from Device
      Tree to such early-stage firmware.  However, if the DRAM controller
      is wrongly configured, the system will crash.  If your system is
      running, the DRAM setup register is very likely to provide the
      correct DRAM mapping.
      
      Decode the SG_MEMCONF register to get the available DRAM banks.
      The dram_init() and dram_init_banksize() need similar decoding.
      It would be nice if dram_init_banksize() could reuse the outcome
      of dram_init(), but global variables are unavailable at this stage
      because the .bss section is available only after the relocation.
      As a result, SG_MEMCONF must be checked twice, but a new helper
      uniphier_memconf_decode() will help to avoid code duplication.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      3e9952be
  9. Jan 28, 2017
  10. Jan 27, 2017
    • Tang Yuantian's avatar
      armv8: ls1046aqds: added usb feature support · 70d3287e
      Tang Yuantian authored
      
      The LS1046AQDS processor has three integrated USB 3.0 controllers
      (USB1, USB2, and USB3) that allow direct connection to the USB
      ports with appropriate protection circuitry and power supplies.
      USB1 and USB2 ports are powered by a NX5P2190UK device, which
      supplies 5v power at up to 1.2 A. The power enable and
      power-fault-detect pins are connected to the LS1046A processor
      via CPLD for individual port management.
      
      Signed-off-by: default avatarTang Yuantian <yuantian.tang@nxp.com>
      Reviewed-by: default avatarYork Sun <york.sun@nxp.com>
      70d3287e
    • Peng Fan's avatar
      imx: mx6sxsabreauto: enable more dm drivers · e389033f
      Peng Fan authored and Stefano Babic's avatar Stefano Babic committed
      
      Enable MMC/I2C/GPIO/PMIC/REGULATOR/PCA953X DM drivers
      for mx6sxsabreauto board. Drop non-DM code.
      
      Note:
      The i.MX DM drivers has such dependency.
        MXC GPIO -> MXC I2C -> PFUZE/REGULATOR
        MXC GPIO -> PCA953X
        MXC GPIO -> FSL_USDHC
      
      So the drivers needs to be enabled all to avoid
      compiling error.
      
      The uboot dm tree log:
      => dm tree
       Class       Probed   Name
       ----------------------------------------
        root        [ + ]    root_driver
        thermal     [   ]    |-- imx_thermal
        simple_bus  [ + ]    |-- soc
        simple_bus  [ + ]    |   |-- aips-bus@02000000
        simple_bus  [   ]    |   |   |-- spba-bus@02000000
        gpio        [ + ]    |   |   |-- gpio@0209c000
        gpio        [ + ]    |   |   |-- gpio@020a0000
        gpio        [ + ]    |   |   |-- gpio@020a4000
        gpio        [ + ]    |   |   |-- gpio@020a8000
        gpio        [ + ]    |   |   |-- gpio@020ac000
        gpio        [ + ]    |   |   |-- gpio@020b0000
        gpio        [ + ]    |   |   |-- gpio@020b4000
        simple_bus  [   ]    |   |   |-- anatop@020c8000
        simple_bus  [   ]    |   |   |-- snvs@020cc000
        pinctrl     [ + ]    |   |   `-- iomuxc@020e0000
        pinconfig   [ + ]    |   |       `-- imx6x-sabreauto
        pinconfig   [ + ]    |   |           |-- i2c2grp-1
        pinconfig   [ + ]    |   |           |-- i2c3grp-2
        pinconfig   [   ]    |   |           |-- uart1grp
        pinconfig   [ + ]    |   |           |-- usdhc3grp
        pinconfig   [   ]    |   |           |-- usdhc3grp-100mhz
        pinconfig   [   ]    |   |           |-- usdhc3grp-200mhz
        pinconfig   [ + ]    |   |           |-- usdhc4grp
        pinconfig   [ + ]    |   |           `-- vccsd3grp
        simple_bus  [ + ]    |   |-- aips-bus@02100000
        mmc         [ + ]    |   |   |-- usdhc@02198000
        mmc         [ + ]    |   |   |-- usdhc@0219c000
        i2c         [ + ]    |   |   |-- i2c@021a4000
        i2c_generic [ + ]    |   |   |   |-- generic_8
        i2c_generic [ + ]    |   |   |   `-- generic_4e
        i2c         [ + ]    |   |   `-- i2c@021a8000
        gpio        [ + ]    |   |       |-- gpio@30
        gpio        [ + ]    |   |       `-- gpio@32
        simple_bus  [   ]    |   `-- aips-bus@02200000
        simple_bus  [   ]    |       `-- spba-bus@02200000
        simple_bus  [ + ]    `-- regulators
        regulator   [ + ]        `-- regulator@0
      
      Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
      Cc: Stefano Babic <sbabic@denx.de>
      e389033f
Loading