Skip to content
Snippets Groups Projects
  1. Dec 09, 2020
  2. Dec 02, 2020
  3. Oct 30, 2020
    • Sean Anderson's avatar
      lib: Add getopt · 72eda507
      Sean Anderson authored and Tom Rini's avatar Tom Rini committed
      
      Some commands can get very unweildy if they have too many positional
      arguments. Adding options makes them easier to read, remember, and
      understand.
      
      This implementation of getopt has been taken from barebox, which has had
      option support for quite a while. I have made a few modifications to their
      version, such as the removal of opterr in favor of a separate getopt_silent
      function. In addition, I have moved all global variables into struct
      getopt_context.
      
      The getopt from barebox also re-orders the arguments passed to it so that
      non-options are placed last. This allows users to specify options anywhere.
      For example, `ls -l foo/ -R` would be re-ordered to `ls -l -R foo/` as
      getopt parsed the options. However, this feature conflicts with the const
      argv in cmd_tbl->cmd. This was originally added in 54841ab5 ("Make sure
      that argv[] argument pointers are not modified."). The reason stated in
      that commit is that hush requires argv to stay unmodified. Has this
      situation changed? Barebox also uses hush, and does not have this problem.
      Perhaps we could use their fix?
      
      I have assigned maintenance of getopt to Simon Glass, as it is currently
      only used by the log command. I would also be fine maintaining it.
      
      Signed-off-by: default avatarSean Anderson <seanga2@gmail.com>
      72eda507
  4. Oct 29, 2020
  5. Oct 27, 2020
  6. Oct 26, 2020
  7. Oct 22, 2020
  8. Oct 21, 2020
  9. Oct 19, 2020
  10. Oct 08, 2020
    • Sean Anderson's avatar
      pinctrl: Add support for Kendryte K210 FPIOA · 7224d5cc
      Sean Anderson authored and Tom Rini's avatar Tom Rini committed
      
      The Fully-Programmable Input/Output Array (FPIOA) device controls pin
      multiplexing on the K210. The FPIOA can remap any supported function to any
      multifunctional IO pin. It can also perform basic GPIO functions, such as
      reading the current value of a pin. However, GPIO functionality remains
      largely unimplemented (in favor of the dedicated GPIO peripherals).
      
      Signed-off-by: default avatarSean Anderson <seanga2@gmail.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      7224d5cc
    • Sean Anderson's avatar
      test: pinmux: Add test for pin muxing · 7f0f1806
      Sean Anderson authored and Tom Rini's avatar Tom Rini committed
      
      This extends the pinctrl-sandbox driver to support pin muxing, and adds a
      test for that behaviour. The test is done in C and not python (like the
      existing tests for the pinctrl uclass) because it needs to call
      pinctrl_select_state.  Another option could be to add a command that
      invokes pinctrl_select_state and then test everything in
      test/py/tests/test_pinmux.py.
      
      The pinctrl-sandbox driver now mimics the way that many pinmux devices
      work.  There are two groups of pins which are muxed together, as well as
      four pins which are muxed individually. I have tried to test all normal
      paths. However, very few error cases are explicitly checked for.
      
      Signed-off-by: default avatarSean Anderson <seanga2@gmail.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      7f0f1806
  11. Oct 06, 2020
  12. Oct 05, 2020
  13. Sep 28, 2020
  14. Sep 18, 2020
  15. Sep 16, 2020
  16. Sep 09, 2020
  17. Sep 08, 2020
  18. Aug 31, 2020
  19. Aug 24, 2020
  20. Aug 14, 2020
  21. Aug 08, 2020
  22. Jul 29, 2020
    • Rayagonda Kokatanur's avatar
      MAINTAINERS: update maintainers for broadcom ns3 platform · 1c085cc6
      Rayagonda Kokatanur authored and Tom Rini's avatar Tom Rini committed
      
      Update MAINTAINERS for broadcom ns3 platform (TARGET_NS3).
      
      Signed-off-by: default avatarRayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>
      Reviewed-by: Simon Glass's avatarSimon Glass <sjg@chromium.org>
      1c085cc6
    • Stefan Bosch's avatar
      arm: add (default) config for nanopi2 board · b39cacc2
      Stefan Bosch authored and Tom Rini's avatar Tom Rini committed
      
      Changes in relation to FriendlyARM's U-Boot nanopi2-v2016.01:
      - Configuration changed, mainly several "CONFIG_..." moved from
        s5p4418_nanopi2.h to s5p4418_nanopi2_defconfig and USB related
        configs removed because USB is not supported yet.
      - s5p4418_nanopi2.h: "CONFIG_" removed from several s5p4418/nanopi2
        specific defines because the appropriate values do not need to be
        configurable.
      - pinctrl is supported now, therefore "CONFIG_PINCTRL=y" added to
        s5p4418_nanopi2_defconfig.
      
      Signed-off-by: default avatarStefan Bosch <stefan_b@posteo.net>
      b39cacc2
    • Robert Marko's avatar
      arm: Add support for Qualcomm IPQ40xx family · e479a7d5
      Robert Marko authored and Tom Rini's avatar Tom Rini committed
      
      This introduces initial support for the popular Qualcomm
      IPQ40x8 and IPQ40x9 WiSoC series.
      
      IPQ40xx series have 4x Cortex A7 ARM-v7A cores.
      Supported are: IPQ4018, IPQ4019, IPQ4028 and IPQ4029.
      
      IPQ40x8 and IPQ40x9 use the same cores, but differ in
      addressable RAM size (1GB for IPQ40x9 and 256MB for IPQ40x8)
      and supported peripherals (IPQ40x8 lacks RGMII, LCD controller
      and EMMC/SDHCI controllers).
      
      IQP4028/IPQ4029 models differ from IPQ4018/IPQ4019 only
      by their rated temperatures rates with IPQ402X models being
      rated for wider temperature ranges.
      
      Initially this supports:
      * Simple clock driver (Only for UART1 now, will be extended)
      * Pinctrl driver (Supports UARTX and GPIO now, will be extended)
      * GPIOs already supported by msm_gpio driver with updates
      * UARTs already supported by serial_msm driver with updates
      
      Further peripherals will come in later patches.
      
      Signed-off-by: default avatarRobert Marko <robert.marko@sartura.hr>
      e479a7d5
  23. Jul 27, 2020
  24. Jul 18, 2020
Loading