1. 26 Jun, 2020 3 commits
  2. 25 Jun, 2020 26 commits
  3. 24 Jun, 2020 9 commits
    • Walter Lozano's avatar
      sandbox: Move section u_boot_list to make it RW · 81e88fc4
      Walter Lozano authored
      In order to be able to update data in u_boot_list, move this section to
      make it RW.
      Signed-off-by: Walter Lozano's avatarWalter Lozano <walter.lozano@collabora.com>
      81e88fc4
    • Walter Lozano's avatar
      core: extend struct driver_info to point to device · 9a274799
      Walter Lozano authored
      Currently when creating an U_BOOT_DEVICE entry a struct driver_info
      is declared, which contains the data needed to instantiate the device.
      However, the actual device is created at runtime and there is no proper
      way to get the device based on its struct driver_info.
      
      This patch extends struct driver_info adding a pointer to udevice which
      is populated during the bind process, allowing to generate a set of
      functions to get the device based on its struct driver_info.
      Signed-off-by: Walter Lozano's avatarWalter Lozano <walter.lozano@collabora.com>
      9a274799
    • Walter Lozano's avatar
      core: drop const for struct driver_info · 7bcaf24b
      Walter Lozano authored
      In order to prepare for a new support of phandle when OF_PLATDATA is used
      drop the const for struct driver_info as this struct will need to be
      updated on runtime.
      Signed-off-by: Walter Lozano's avatarWalter Lozano <walter.lozano@collabora.com>
      7bcaf24b
    • Walter Lozano's avatar
      dm: doc: update of-plat with the support for driver aliases · fec54673
      Walter Lozano authored
      Update the documentation with the support for driver aliases using
      U_BOOT_DRIVER_ALIAS.
      Signed-off-by: Walter Lozano's avatarWalter Lozano <walter.lozano@collabora.com>
      fec54673
    • Walter Lozano's avatar
      dtoc: add option to disable warnings · 3a84e123
      Walter Lozano authored
      As dtoc now performs checks for valid driver names, when running dtoc
      tests several warnings arise as these tests don't use valid driver
      names.
      
      This patch adds an option to disable those warning, which is only
      intended for running tests.
      Signed-off-by: Walter Lozano's avatarWalter Lozano <walter.lozano@collabora.com>
      3a84e123
    • Walter Lozano's avatar
      dtoc: add support to scan drivers · 8ee7ab59
      Walter Lozano authored
      Currently dtoc scans dtbs to convert them to struct platdata and
      to generate U_BOOT_DEVICE entries. These entries need to be filled
      with the driver name, but at this moment the information used is the
      compatible name present in the dtb. This causes that only nodes with
      a compatible name that matches a driver name generate a working
      entry.
      
      In order to improve this behaviour, this patch adds to dtoc the
      capability of scan drivers source code to generate a list of valid driver
      names and aliases. This allows to generate U_BOOT_DEVICE entries using
      valid driver names and rise a warning in the case a name is not valid.
      Signed-off-by: Walter Lozano's avatarWalter Lozano <walter.lozano@collabora.com>
      8ee7ab59
    • Walter Lozano's avatar
      core: add support for U_BOOT_DRIVER_ALIAS · 2fbf3bd9
      Walter Lozano authored
      Currently when using OF_PLATDATA the binding between devices and drivers
      is done trying to match the compatible string in the node with a driver
      name. However, usually a single driver supports multiple compatible strings
      which causes that only devices which its compatible string matches a
      driver name get bound.
      
      To overcome this issue, this patch adds the U_BOOT_DRIVER_ALIAS macro,
      which generates no code at all, but allows an easy way to declare driver
      name aliases. Thanks to this, dtoc could be improve to look for the driver
      name based on its alias when it populates the U_BOOT_DEVICE entry.
      Signed-off-by: Walter Lozano's avatarWalter Lozano <walter.lozano@collabora.com>
      2fbf3bd9
    • Walter Lozano's avatar
      dtoc: add missing code comments · fc002d9f
      Walter Lozano authored
      Add missing information about internal class members in order to make
      the code easier to follow.
      Signed-off-by: Walter Lozano's avatarWalter Lozano <walter.lozano@collabora.com>
      fc002d9f
    • Walter Lozano's avatar
      drivers: rename drivers to match compatible string · 23d50a90
      Walter Lozano authored
      When using OF_PLATDATA, the bind process between devices and drivers
      is performed trying to match compatible string with driver names.
      However driver names are not strictly defined, and also there are different
      names used when declaring a driver with U_BOOT_DRIVER, the name of the
      symbol used in the linker list and the used in the struct driver_info.
      
      In order to make things a bit more clear, rename the drivers names. This
      will also help for further OF_PLATDATA improvements, such as checking
      for valid driver names.
      Signed-off-by: Walter Lozano's avatarWalter Lozano <walter.lozano@collabora.com>
      23d50a90
  4. 12 May, 2020 2 commits