diff options
author | Pali Rohár <pali@kernel.org> | 2023-04-08 16:01:16 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-04-20 10:20:51 +1000 |
commit | ba5a7ca277afc0e9083a7a2021725425a493cfb2 (patch) | |
tree | 53f66ff9ba7b15ce83f9712270c05b28505fd7d8 /arch/powerpc/platforms/85xx/p2020.c | |
parent | b1a54cb693724b6212efa64d877126769ece4d4c (diff) | |
download | linux-stable-ba5a7ca277afc0e9083a7a2021725425a493cfb2.tar.gz linux-stable-ba5a7ca277afc0e9083a7a2021725425a493cfb2.tar.bz2 linux-stable-ba5a7ca277afc0e9083a7a2021725425a493cfb2.zip |
powerpc/85xx: p2020: Move all P2020 DS machine descriptions to p2020.c
This moves P2020 DS machine descriptions into new p2020.c source file.
This is preparation for code de-duplication and providing one unified
machine description for all P2020 boards.
Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230408140122.25293-8-pali@kernel.org
Diffstat (limited to 'arch/powerpc/platforms/85xx/p2020.c')
-rw-r--r-- | arch/powerpc/platforms/85xx/p2020.c | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/85xx/p2020.c b/arch/powerpc/platforms/85xx/p2020.c new file mode 100644 index 000000000000..356335122153 --- /dev/null +++ b/arch/powerpc/platforms/85xx/p2020.c @@ -0,0 +1,41 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Freescale P2020 board Setup + * + * Copyright 2007,2009,2012-2013 Freescale Semiconductor Inc. + * Copyright 2022-2023 Pali Rohár <pali@kernel.org> + */ + +#include <linux/stddef.h> +#include <linux/kernel.h> +#include <linux/of.h> + +#include <asm/machdep.h> +#include <asm/udbg.h> +#include <asm/mpic.h> +#include <asm/swiotlb.h> +#include <asm/ppc-pci.h> + +#include <sysdev/fsl_pci.h> + +#include "smp.h" +#include "mpc85xx.h" + +#ifdef CONFIG_MPC85xx_DS +machine_arch_initcall(p2020_ds, mpc85xx_common_publish_devices); +#endif /* CONFIG_MPC85xx_DS */ + +#ifdef CONFIG_MPC85xx_DS +define_machine(p2020_ds) { + .name = "P2020 DS", + .compatible = "fsl,P2020DS", + .setup_arch = mpc85xx_ds_setup_arch, + .init_IRQ = mpc85xx_ds_pic_init, +#ifdef CONFIG_PCI + .pcibios_fixup_bus = fsl_pcibios_fixup_bus, + .pcibios_fixup_phb = fsl_pcibios_fixup_phb, +#endif + .get_irq = mpic_get_irq, + .progress = udbg_progress, +}; +#endif /* CONFIG_MPC85xx_DS */ |