fsl_msi.c (a23e1966932464e1c5226cb9ac4ce1d5fc10ba22) fsl_msi.c (01d34cc93639172272c3e47edd5cf1a3ffc6dc7a)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2007-2011 Freescale Semiconductor, Inc.
4 *
5 * Author: Tony Li <tony.li@freescale.com>
6 * Jason Jin <Jason.jin@freescale.com>
7 *
8 * The hwirq alloc and free code reuse from sysdev/mpic_msi.c

--- 550 unchanged lines hidden (view full) ---

559 .msiir_offset = 0x140,
560};
561
562static const struct fsl_msi_feature ipic_msi_feature = {
563 .fsl_pic_ip = FSL_PIC_IP_IPIC,
564 .msiir_offset = 0x38,
565};
566
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2007-2011 Freescale Semiconductor, Inc.
4 *
5 * Author: Tony Li <tony.li@freescale.com>
6 * Jason Jin <Jason.jin@freescale.com>
7 *
8 * The hwirq alloc and free code reuse from sysdev/mpic_msi.c

--- 550 unchanged lines hidden (view full) ---

559 .msiir_offset = 0x140,
560};
561
562static const struct fsl_msi_feature ipic_msi_feature = {
563 .fsl_pic_ip = FSL_PIC_IP_IPIC,
564 .msiir_offset = 0x38,
565};
566
567#ifdef CONFIG_EPAPR_PARAVIRT
567static const struct fsl_msi_feature vmpic_msi_feature = {
568 .fsl_pic_ip = FSL_PIC_IP_VMPIC,
569 .msiir_offset = 0,
570};
568static const struct fsl_msi_feature vmpic_msi_feature = {
569 .fsl_pic_ip = FSL_PIC_IP_VMPIC,
570 .msiir_offset = 0,
571};
572#endif
571
572static const struct of_device_id fsl_of_msi_ids[] = {
573 {
574 .compatible = "fsl,mpic-msi",
575 .data = &mpic_msi_feature,
576 },
577 {
578 .compatible = "fsl,mpic-msi-v4.3",

--- 17 unchanged lines hidden (view full) ---

596};
597
598static struct platform_driver fsl_of_msi_driver = {
599 .driver = {
600 .name = "fsl-msi",
601 .of_match_table = fsl_of_msi_ids,
602 },
603 .probe = fsl_of_msi_probe,
573
574static const struct of_device_id fsl_of_msi_ids[] = {
575 {
576 .compatible = "fsl,mpic-msi",
577 .data = &mpic_msi_feature,
578 },
579 {
580 .compatible = "fsl,mpic-msi-v4.3",

--- 17 unchanged lines hidden (view full) ---

598};
599
600static struct platform_driver fsl_of_msi_driver = {
601 .driver = {
602 .name = "fsl-msi",
603 .of_match_table = fsl_of_msi_ids,
604 },
605 .probe = fsl_of_msi_probe,
604 .remove_new = fsl_of_msi_remove,
606 .remove = fsl_of_msi_remove,
605};
606
607static __init int fsl_of_msi_init(void)
608{
609 return platform_driver_register(&fsl_of_msi_driver);
610}
611
612subsys_initcall(fsl_of_msi_init);
607};
608
609static __init int fsl_of_msi_init(void)
610{
611 return platform_driver_register(&fsl_of_msi_driver);
612}
613
614subsys_initcall(fsl_of_msi_init);