ARM: OMAP2+: hwmod: Add possibility to count hwmod resources based on type