From d503c8268ff7bebddcc6d8041d404f2a5be38591 Mon Sep 17 00:00:00 2001 From: Loren HUANG Date: Tue, 1 Apr 2014 16:58:56 +0800 Subject: ENGR00306443 [MX6SX] Update the gc400t QoS value Per SoC team recommandation, update the gc400t QoS value to write 2 and Read 8. It can improve gpu performance in most case. 3d fill: 165->172Mpixel/s 2d fill: 190->228Mpixel/s Signed-off-by: Loren HUANG --- arch/arm/cpu/armv7/mx6/soc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index 528ed79..3608655 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu/armv7/mx6/soc.c @@ -415,6 +415,15 @@ int arch_cpu_init(void) mxs_dma_init(); #endif +#ifdef CONFIG_MX6SX + /* Update the gpu QoS to Write 2, Read 8 */ + writel(0, QOSC_BASE_ADDR); /* Disable clkgate & soft_rst */ + writel(0, QOSC_BASE_ADDR+0x60); /* Enable all masters */ + writel(0, QOSC_BASE_ADDR+0x1400); /* Disable clkgate & soft_rst for gpu */ + writel(0x0f000222, QOSC_BASE_ADDR+0x14d0); /* Set Write QoS 2 */ + writel(0x0f020822, QOSC_BASE_ADDR+0x14e0); /* Set Read QoS 8 */ +#endif + return 0; } -- cgit v1.1