Hi,
I want to set USB0 to HOST mode on my board which is a design based on AM335x.
In AM335x EVM, USB0 is set to OTG and USB1 is set to HOST.
The board file board-am335xevm.c contains the following code for USB configuration
static struct omap_musb_board_data musb_board_data = {
.interface_type = MUSB_INTERFACE_ULPI,
/*
* mode[0:3] = USB0PORT's mode
* mode[4:7] = USB1PORT's mode
* AM335X beta EVM has USB0 in OTG mode and USB1 in host mode.
*/
.mode = (MUSB_HOST << 4) | MUSB_OTG,
.power = 500,
.instances = 1,
};
To set USB0 to HOST I have changed above code to
.mode = (MUSB_HOST << 4) | MUSB_HOST.
The kernel compiles, but when I try to run, it crashes giving an error --- "Unable to handle kernel NULL pointer dereference at virtual address 00000018"
What could be the problem ? How can I set USB0 to HOST mode ?
Regards
Radhika