I have a custom board that is a modified copy of beaglebone. I am running 3.2.33 kernel.
My problem is that the kernel doesn’t detect the SD Card when its booting. I realized the problem is caused by difference in SD card reader. Beaglebone uses card reader that a card detection switch. The switch is opened (pull-up; hence high) when it is empty, and switch is closed (shorted to ground; low) when card is inserted. In my board, the logic is reversed. I imagined this to be simple modification in the kernel, but cannot find where that card detection config / set-up is. I have looked in board-am335xevm.c file, and still looking around. No luck yet.
Could someone point me to which file to modify? or Is there a flowchart of kernel file chain that would show me which file/function linux kernel calls?