1. 08 5月, 2018 6 次提交
    • J
      power: pmic_max77686: remove the old pmic_max77686 file · 9c67c449
      Jaehoon Chung 提交于
      max77686 pmic is supporting with max77686.c under pmic/ and regulator/
      direnctroy. Remove pmic_max77686.c what didn't use anywhere.
      Instead, enable CONFIG_DM_REGULATOR_MAX77686 and
      CONFIG_DM_PMIC_MAX77686.
      Signed-off-by: NJaehoon Chung <jh80.chung@samsung.com>
      9c67c449
    • L
      arm: v7: Kconfig: Rename CPU_V7 as CPU_V7A · acf15001
      Lokesh Vutla 提交于
      Currently CPU_V7 kconfig symbol supports only ARMv7A architectures under
      armv7 folder. This led to a misconception of creating separate folders
      for armv7m and armv7r. There is no reason to create separate folder for
      other armv7 based architectures when it can co-exist with few Kconfig
      symbols.
      
      As a first step towards a common folder, rename CPU_V7 as CPUV7A. Later
      separate Kconfig symbols can be added for CPU_V7R and CPU_V7M and
      can co exist in the same folder.
      Reviewed-by: NTom Rini <trini@konsulko.com>
      Tested-by: NMichal Simek <michal.simek@xilinx.com>
      Suggested-by: NAlexander Graf <agraf@suse.de>
      Signed-off-by: NLokesh Vutla <lokeshvutla@ti.com>
      acf15001
    • M
      syscon: add Linux-compatible syscon API · e151a1c2
      Masahiro Yamada 提交于
      The syscon implementation in U-Boot is different from that in Linux.
      Thus, DT files imported from Linux do not work for U-Boot.
      
      In U-Boot driver model, each node is bound to a dedicated driver
      that is the most compatible to it.  This design gets along with the
      concept of DT, and the syscon in Linux originally worked like that.
      
      However, Linux commit bdb0066df96e ("mfd: syscon: Decouple syscon
      interface from platform devices") changed the behavior because it is
      useful to let a device bind to another driver, but still work as a
      syscon provider.
      
      That change had happened before U-Boot initially supported the syscon
      driver by commit 6f98b750 ("dm: Add support for generic system
      controllers (syscon)").  So, the U-Boot's syscon works differently
      from the beginning.  I'd say this is mis-implementation given that
      DT is not oriented to a particular project, but Linux is the canon
      of DT in practice.
      
      The problem typically arises in the combination of "syscon" and
      "simple-mfd" compatibles.
      
      In Linux, they are orthogonal, i.e., the order between "syscon" and
      "simple-mfd" does not matter at all.
      
      Assume the following compatible.
      
         compatible = "foo,bar-syscon", "syscon", "simple-mfd";
      
      In U-Boot, this device node is bound to the syscon driver
      (driver/core/syscon-uclass.c) since the "syscon" is found to be the
      most compatible.  Then, syscon_get_regmap() succeeds.
      
      However,
      
         compatible = "foo,bar-syscon", "simple-mfd", "syscon";
      
      does not work because this node is bound to the simple-bus driver
      (drivers/core/simple-bus.c) in favor of "simple-mfd" compatible.
      The compatible string "syscon" is just dismissed.
      
      Moreover,
      
         compatible = "foo,bar-syscon", "syscon";
      
      works like the first case because the syscon driver populates the
      child devices.  This is wrong because populating children is the job
      of "simple-mfd" (or "simple-bus").
      
      This commit ports syscon_node_to_regmap() from Linux.  This API
      does not require the given node to be bound to a driver in any way.
      Reported-by: NKunihiko Hayashi <hayashi.kunihiko@socionext.com>
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      e151a1c2
    • M
      regmap: change regmap_init_mem() to take ofnode instead udevice · d3581236
      Masahiro Yamada 提交于
      Currently, regmap_init_mem() takes a udevice. This requires the node
      has already been associated with a device. It prevents syscon/regmap
      from behaving like those in Linux.
      
      Change the first argumenet to take a device node.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Acked-by: NNeil Armstrong <narmstrong@baylibre.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      d3581236
    • M
      dm: ofnode: add ofnode_device_is_compatible() helper · 5ccc2c21
      Masahiro Yamada 提交于
      device_is_compatible() takes udevice, but there is no such a helper
      that takes ofnode.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      5ccc2c21
    • M
      regmap: clean up regmap allocation · 8c1de5e0
      Masahiro Yamada 提交于
      Putting zero length array at the end of struct is a common technique
      to embed arbitrary length of members.  There is no good reason to let
      regmap_alloc_count() branch by "if (count <= 1)".
      
      As far as I understood the code, regmap->base is an alias of
      regmap->ranges[0].start, but it is not helpful but make the code
      just ugly.
      
      Rename regmap_alloc_count() to regmap_alloc() because the _count
      suffix seems pointless.
      Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: NSimon Glass <sjg@chromium.org>
      [trini: fixup cpu_info-rcar.c]
      Signed-off-by: NTom Rini <trini@konsulko.com>
      8c1de5e0
  2. 07 5月, 2018 2 次提交
    • T
      SPDX: Convert all of our multiple license tags to Linux Kernel style · 4549e789
      Tom Rini 提交于
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have multiple licenses (in
      these cases, dual license) declared in the SPDX-License-Identifier tag.
      In this case we change from listing "LICENSE-A LICENSE-B" or "LICENSE-A
      or LICENSE-B" or "(LICENSE-A OR LICENSE-B)" to "LICENSE-A OR LICENSE-B"
      as per the Linux Kernel style document.  Note that parenthesis are
      allowed so when they were used before we continue to use them.
      Reviewed-by: NFabio Estevam <fabio.estevam@nxp.com>
      Signed-off-by: NTom Rini <trini@konsulko.com>
      4549e789
    • T
      SPDX: Convert all of our single license tags to Linux Kernel style · 83d290c5
      Tom Rini 提交于
      When U-Boot started using SPDX tags we were among the early adopters and
      there weren't a lot of other examples to borrow from.  So we picked the
      area of the file that usually had a full license text and replaced it
      with an appropriate SPDX-License-Identifier: entry.  Since then, the
      Linux Kernel has adopted SPDX tags and they place it as the very first
      line in a file (except where shebangs are used, then it's second line)
      and with slightly different comment styles than us.
      
      In part due to community overlap, in part due to better tag visibility
      and in part for other minor reasons, switch over to that style.
      
      This commit changes all instances where we have a single declared
      license in the tag as both the before and after are identical in tag
      contents.  There's also a few places where I found we did not have a tag
      and have introduced one.
      Signed-off-by: NTom Rini <trini@konsulko.com>
      83d290c5
  3. 02 5月, 2018 5 次提交
  4. 01 5月, 2018 2 次提交
  5. 29 4月, 2018 3 次提交
    • P
      serial: serial_stm32: Rename status register flags · 8dc4e1fb
      Patrice Chotard 提交于
      Uart status register is named USART_ISR on STM32F7, STM32H7
      and STM32MP1 SoCs family, but USART_SR only on STM32F4 SoCs.
      
      Use USART_ISR_ prefix instead of USART_SR_ .
      Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
      8dc4e1fb
    • P
      serial: serial_stm32: Enable overrun · 7b3b74d3
      Patrice Chotard 提交于
      Enable uart overrun feature which allows to benefits of uart
      FIFO usage.
      
      Previously overrun management was disabled, this has to effect
      to bypassed the uart FIFO usage even if FIFO was enabled.
      In particular configuration, for example when video console is
      enabled, copy/pasting a long command line in console results in
      corruption. This is due to the fact that a lot of time is consumed
      in flushing the cache during frame buffer update, so uart chars are
      not read fast enough.
      
      By using uart FIFO and managing overrun, long command line can by
      copy/paste in console without being corrupted.
      Signed-off-by: NPatrice Chotard <patrice.chotard@st.com>
      7b3b74d3
    • A
      spl: disk: usb: Add dependencies to sprintf/strto* · ab9e12f6
      Alex Kiernan 提交于
      If SPL serial support is disabled nothing brings in sprintf, snprintf
      or simple_strtoul:
      
        env/built-in.o: In function `regex_callback':
        env/attr.c:128: undefined reference to `sprintf'
        disk/built-in.o: In function `blk_get_device_by_str':
        disk/part.c:386: undefined reference to `simple_strtoul'
        disk/part.c:395: undefined reference to `simple_strtoul'
        disk/built-in.o: In function `blk_get_device_part_str':
        disk/part.c:522: undefined reference to `simple_strtoul'
        disk/built-in.o: In function `part_set_generic_name':
        disk/part.c:704: undefined reference to `sprintf'
        drivers/built-in.o: In function `init_peripheral_ep':
        drivers/usb/musb-new/musb_gadget.c:1826: undefined reference to `sprintf'
        drivers/built-in.o: In function `musb_core_init':
        drivers/usb/musb-new/musb_core.c:1451: undefined reference to `snprintf'
      
      Add those dependencies here.
      Signed-off-by: NAlex Kiernan <alex.kiernan@gmail.com>
      ab9e12f6
  6. 28 4月, 2018 3 次提交
  7. 27 4月, 2018 1 次提交
  8. 26 4月, 2018 8 次提交
  9. 25 4月, 2018 3 次提交
  10. 24 4月, 2018 1 次提交
  11. 23 4月, 2018 6 次提交