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

Commit c7b95bcb authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Ralf Baechle
Browse files

MIPS: TXx9: Runtime configuration of timeout-error



Add kernel options to control bus timeout error.

Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent d10e025f
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
@@ -68,7 +68,12 @@ unsigned int txx9_master_clock;
unsigned int txx9_cpu_clock;
unsigned int txx9_cpu_clock;
unsigned int txx9_gbus_clock;
unsigned int txx9_gbus_clock;


#ifdef CONFIG_CPU_TX39XX
/* don't enable by default - see errata */
int txx9_ccfg_toeon __initdata;
#else
int txx9_ccfg_toeon __initdata = 1;
int txx9_ccfg_toeon __initdata = 1;
#endif


/* Minimum CLK support */
/* Minimum CLK support */


@@ -315,6 +320,12 @@ static void __init preprocess_cmdline(void)
		} else if (strcmp(str, "dcdisable") == 0) {
		} else if (strcmp(str, "dcdisable") == 0) {
			txx9_dc_disable = 1;
			txx9_dc_disable = 1;
			continue;
			continue;
		} else if (strcmp(str, "toeoff") == 0) {
			txx9_ccfg_toeon = 0;
			continue;
		} else if (strcmp(str, "toeon") == 0) {
			txx9_ccfg_toeon = 1;
			continue;
		}
		}
		if (arcs_cmdline[0])
		if (arcs_cmdline[0])
			strcat(arcs_cmdline, " ");
			strcat(arcs_cmdline, " ");
+0 −5
Original line number Original line Diff line number Diff line
@@ -32,11 +32,6 @@ void __init tx3927_setup(void)
	int i;
	int i;
	unsigned int conf;
	unsigned int conf;


	/* don't enable - see errata */
	txx9_ccfg_toeon = 0;
	if (strstr(prom_getcmdline(), "toeon") != NULL)
		txx9_ccfg_toeon = 1;

	txx9_reg_res_init(TX3927_REV_PCODE(), TX3927_REG_BASE,
	txx9_reg_res_init(TX3927_REV_PCODE(), TX3927_REG_BASE,
			  TX3927_REG_SIZE);
			  TX3927_REG_SIZE);