Search
SailfishOS Open Build Service
>
Projects
>
home:dcthang:branches:nemo:devel:hw:ti:omap3:n900
>
kernel-adaptation-n900
> linux-2.6-RX-51-set-SGX-maximum-clock-rate-to-platform_data.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File linux-2.6-RX-51-set-SGX-maximum-clock-rate-to-platform_data.patch of Package kernel-adaptation-n900
From def9efd38b9696f959e52d30f5f56323c8e9ab78 Mon Sep 17 00:00:00 2001 From: Kalle Jokiniemi <kalle.jokiniemi@nokia.com> Date: Mon, 9 May 2011 14:11:23 +0300 Subject: [PATCH] RX-51: set SGX maximum clock rate to platform_data The SGX will only run at 83MHz if proper maximum rate is not provided by the board file. Set in the platform_data the correct maximum rate, which is 110MHz (332MHz / 3). Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@nokia.com> --- arch/arm/mach-omap2/board-rx51-video.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-omap2/board-rx51-video.c b/arch/arm/mach-omap2/board-rx51-video.c index 0b98a80..fb8811a 100644 --- a/arch/arm/mach-omap2/board-rx51-video.c +++ b/arch/arm/mach-omap2/board-rx51-video.c @@ -14,6 +14,7 @@ #include <linux/gpio.h> #include <linux/spi/spi.h> #include <linux/mm.h> +#include <linux/pvr.h> #include <asm/mach-types.h> #include <plat/display.h> #include <plat/vram.h> @@ -120,9 +121,16 @@ struct platform_device rx51_display_device = { }, }; +static struct sgx_platform_data rx51_sgx_data = { + .fclock_max = 110666666, +}; + static struct platform_device rx51_sgx_device = { .name = "pvrsrvkm", .id = -1, + .dev = { + .platform_data = &rx51_sgx_data, + }, }; static struct platform_device *rx51_video_devices[] __initdata = { -- 1.7.0.4