Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

cpu_init.c

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    • Kumar Gala's avatar
      a09b9b68
      powerpc/8xxx: Refactor SRIO initialization into common code · a09b9b68
      Kumar Gala authored
      
      Moved the SRIO init out of corenet_ds and into common code for
      8xxx/QorIQ processors that have SRIO.  We mimic what we do with PCIe
      controllers for SRIO.
      
      We utilize the fact that SRIO is over serdes to determine if its
      configured or not and thus can setup the LAWs needed for it dynamically.
      
      We additionally update the device tree (to remove the SRIO nodes) if the
      board doesn't have SRIO enabled.
      
      Introduced the following standard defines for board config.h:
      
      CONFIG_SYS_SRIO - Chip has SRIO or not
      CONFIG_SRIO1 - Board has SRIO 1 port available
      CONFIG_SRIO2 - Board has SRIO 2 port available
      
      (where 'n' is the port #)
      CONFIG_SYS_SRIOn_MEM_VIRT - virtual address in u-boot
      CONFIG_SYS_SRIOn_MEM_PHYS - physical address (for law setup)
      CONFIG_SYS_SRIOn_MEM_SIZE - size of window (for law setup)
      
      [ These mimic what we have for PCI and PCIe controllers ]
      
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      Acked-by: default avatarWolfgang Denk <wd@denx.de>
      a09b9b68
      History
      powerpc/8xxx: Refactor SRIO initialization into common code
      Kumar Gala authored
      
      Moved the SRIO init out of corenet_ds and into common code for
      8xxx/QorIQ processors that have SRIO.  We mimic what we do with PCIe
      controllers for SRIO.
      
      We utilize the fact that SRIO is over serdes to determine if its
      configured or not and thus can setup the LAWs needed for it dynamically.
      
      We additionally update the device tree (to remove the SRIO nodes) if the
      board doesn't have SRIO enabled.
      
      Introduced the following standard defines for board config.h:
      
      CONFIG_SYS_SRIO - Chip has SRIO or not
      CONFIG_SRIO1 - Board has SRIO 1 port available
      CONFIG_SRIO2 - Board has SRIO 2 port available
      
      (where 'n' is the port #)
      CONFIG_SYS_SRIOn_MEM_VIRT - virtual address in u-boot
      CONFIG_SYS_SRIOn_MEM_PHYS - physical address (for law setup)
      CONFIG_SYS_SRIOn_MEM_SIZE - size of window (for law setup)
      
      [ These mimic what we have for PCI and PCIe controllers ]
      
      Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
      Acked-by: default avatarWolfgang Denk <wd@denx.de>