PMU device can't be supported in mx5x PSP file, you can add it in linux_top/arch/arm/mach-mx5x/devices.c, please refer to the following steps and try :
(1)open devices.c and and add :
static struct resource mx5_pmu_resources[] = {
[0] = {
.start = MXC_INT_PMU,
.end = MXC_INT_PMU,
.flags = IORESOURCE_IRQ,
},
};
struct platform_device mx5_pmu_device = {
.name = "arm-pmu",
.id = 0,
.num_resources = ARRAY_SIZE(mx5_pmu_resources),
.resource = mx5_pmu_resources,
};
(2) open BSP file (should be mx53_loco.c or mx53_smd.c or mx53_ard.c), register PMU device to linux
static void __init mx_board_init(void)
{
........
mxc_register_device(&mx5_pmu_device,NULL);
.......
}
(3)Selecting PMU drivers when configuring linux kernel by using "make menuconfig"
PMU driver is in path : linux_top/arch/arm/kernel/pmu.c
According to Kconfig and Makefile ,you can know where the menu item is , Select it ,please !
After re-compiling linux kernel, PMU device will be supported, then try your application.