mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
powerpc/boot: Change the macro of Boot from SRIO and PCIE master module
Currently, the macro "CONFIG_SYS_FSL_SRIO_PCIE_BOOT_MASTER" can enable the master module of Boot from SRIO and PCIE on a platform. But this is not a silicon feature, it's just a specific booting mode based on the SRIO and PCIE interfaces. So it's inappropriate to put the macro into the file arch/powerpc/include/asm/config_mpc85xx.h. Change the macro "CONFIG_SYS_FSL_SRIO_PCIE_BOOT_MASTER" to "CONFIG_SRIO_PCIE_BOOT_MASTER", remove them from arch/powerpc/include/asm/config_mpc85xx.h file, and add those macros in configuration header file of each board which can support the master module of Boot from SRIO and PCIE. Signed-off-by: Liu Gang <Gang.Liu@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
This commit is contained in:
parent
5a516748a8
commit
c8b281524b
9 changed files with 13 additions and 13 deletions
|
@ -211,7 +211,7 @@ static int fsl_pci_setup_inbound_windows(struct pci_controller *hose,
|
|||
return 1;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SYS_FSL_SRIO_PCIE_BOOT_MASTER
|
||||
#ifdef CONFIG_SRIO_PCIE_BOOT_MASTER
|
||||
static void fsl_pcie_boot_master(pit_t *pi)
|
||||
{
|
||||
/* configure inbound window for slave's u-boot image */
|
||||
|
@ -388,7 +388,7 @@ void fsl_pci_init(struct pci_controller *hose, struct fsl_pci_info *pci_info)
|
|||
/* see if we are a PCIe or PCI controller */
|
||||
pci_hose_read_config_byte(hose, dev, FSL_PCIE_CAP_ID, &pcie_cap);
|
||||
|
||||
#ifdef CONFIG_SYS_FSL_SRIO_PCIE_BOOT_MASTER
|
||||
#ifdef CONFIG_SRIO_PCIE_BOOT_MASTER
|
||||
/* boot from PCIE --master */
|
||||
char *s = getenv("bootmaster");
|
||||
char pcie[6];
|
||||
|
@ -624,7 +624,7 @@ int fsl_pci_init_port(struct fsl_pci_info *pci_info,
|
|||
if (fsl_is_pci_agent(hose)) {
|
||||
fsl_pci_config_unlock(hose);
|
||||
hose->last_busno = hose->first_busno;
|
||||
#ifdef CONFIG_SYS_FSL_SRIO_PCIE_BOOT_MASTER
|
||||
#ifdef CONFIG_SRIO_PCIE_BOOT_MASTER
|
||||
} else {
|
||||
/* boot from PCIE --master releases slave's core 0 */
|
||||
char *s = getenv("bootmaster");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue