Commit 279806bf authored by Mark Rutland's avatar Mark Rutland Committed by Olof Johansson

arm: omap: specify PMUs are for ARMv7 CPUs

Now that we can specify which PMU variant we're likely to deal with, do
so in the omap board code. This will allow us to split the ARMv6, ARMv7,
and XScale PMU drivers.

The unnecessary include of asm/pmu.h is also removed.
Signed-off-by: default avatarMark Rutland <mark.rutland@arm.com>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Olof Johansson <olof@lixom.net>
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parent 744503b3
......@@ -13,7 +13,7 @@
*/
#include <linux/of.h>
#include <asm/pmu.h>
#include <asm/system_info.h>
#include "soc.h"
#include "omap_hwmod.h"
......@@ -37,7 +37,8 @@ static int __init omap2_init_pmu(unsigned oh_num, char *oh_names[])
{
int i;
struct omap_hwmod *oh[3];
char *dev_name = "arm-pmu";
char *dev_name = cpu_architecture() == CPU_ARCH_ARMv6 ?
"armv6-pmu" : "armv7-pmu";
if ((!oh_num) || (oh_num > 3))
return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment