OMAP4/5: device: Add support to get the device type.