Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1347a2c1 authored by Andy Fleming's avatar Andy Fleming Committed by Kumar Gala
Browse files

[POWERPC} Add oprofile support for e300



The e300 c3 and c4 variants support hardware performance monitor counters
which are identical to those found in the e500.

Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 39aef685
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -959,6 +959,9 @@ static struct cpu_spec __initdata cpu_specs[] = {
		.icache_bsize		= 32,
		.icache_bsize		= 32,
		.dcache_bsize		= 32,
		.dcache_bsize		= 32,
		.cpu_setup		= __setup_cpu_603,
		.cpu_setup		= __setup_cpu_603,
		.num_pmcs		= 4,
		.oprofile_cpu_type	= "ppc/e300",
		.oprofile_type		= PPC_OPROFILE_FSL_EMB,
		.platform		= "ppc603",
		.platform		= "ppc603",
	},
	},
	{	/* e300c4 (e300c1, plus one IU) */
	{	/* e300c4 (e300c1, plus one IU) */
@@ -971,6 +974,9 @@ static struct cpu_spec __initdata cpu_specs[] = {
		.dcache_bsize		= 32,
		.dcache_bsize		= 32,
		.cpu_setup		= __setup_cpu_603,
		.cpu_setup		= __setup_cpu_603,
		.machine_check		= machine_check_generic,
		.machine_check		= machine_check_generic,
		.num_pmcs		= 4,
		.oprofile_cpu_type	= "ppc/e300",
		.oprofile_type		= PPC_OPROFILE_FSL_EMB,
		.platform		= "ppc603",
		.platform		= "ppc603",
	},
	},
	{	/* default match, we assume split I/D cache & TB (non-601)... */
	{	/* default match, we assume split I/D cache & TB (non-601)... */
+1 −0
Original line number Original line Diff line number Diff line
@@ -24,6 +24,7 @@ config PPC_83xx
	select MPC83xx
	select MPC83xx
	select IPIC
	select IPIC
	select WANT_DEVICE_TREE
	select WANT_DEVICE_TREE
	select FSL_EMB_PERFMON


config PPC_86xx
config PPC_86xx
	bool "Freescale 86xx"
	bool "Freescale 86xx"