This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to disable pcie init code in kernel?

Hello

      I debug own 814x board, there is no PCIE device. In menuconfig, I disable PCI support. but kernel still deadloop in ti814x_pcie_pllcfg.

      I think this code should not be run. Can't this code be disable through menuconfig? Must I disable(comment) this code manually?

  Thanks!

  Vincent

 

  • Hi Vincent,

    Yes, you should comment this code manually.

    In EZSDK 5.05.02.00, you can comment the ti814x_pcie_pllcfg() function from the ti-ezsdk_dm814x-evm_5_05_02_00/board-support/linux-2.6.37-psp04.04.00.01/arch/arm/mach-omap2/devices.c file:

    static int __init omap2_init_devices(void)
    {
        /*
         * please keep these calls, and their implementations above,
         * in alphabetical order so they're easier to sort through.
         */
        omap_hsmmc_reset();
    #if !defined(CONFIG_ARCH_TI81XX)
        omap_init_audio();
    #endif
        omap_init_camera();
        omap_init_mbox();
        omap_init_mcspi();
        omap_init_elm();
        omap_init_pmu();
        omap_hdq_init();
        omap_init_sti();
        omap_init_sham();
        omap_init_aes();
        omap_init_vout();
    #ifdef CONFIG_ARCH_TI81XX
        if (cpu_is_ti814x()) {
            /* Init PCIe,SATA PLL here, before invoking respective init*/
       //     ti814x_pcie_pllcfg();
            ti814x_sata_pllcfg();
         }

        ti81xx_ethernet_init();
        ti81xx_init_pcie();
        ti81xx_register_edma();
        ti81xx_init_pcm();
        ti816x_sr_init();
        ti81xx_video_mux();
    #ifdef CONFIG_ARCH_TI814X
        ti814x_enable_i2c2();
        ti814x_d_can_init(0);
    #endif
    #ifdef CONFIG_MTD_CFI
        ti814x_nor_init();
    #endif
    #endif
        omap_init_ahci();
    #ifdef CONFIG_ARCH_TI81XX
        ti81xx_rtc_init();
    #endif
        return 0;
    }

    Regards,

    Pavel

  • Hi Pavel

         Thank you very much.

     

    Regards,

    Vincent