From: Mike Turquette <mturquette@ti.com>
To: "Agarwal, Preshit" <preshit.agarwal@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH] Registering sgx device and it's platform specific data
Date: Fri, 26 Mar 2010 12:02:03 -0500 [thread overview]
Message-ID: <4BACE88B.8040303@ti.com> (raw)
In-Reply-To: <19F8576C6E063C45BE387C64729E7394044DEBED02@dbde02.ent.ti.com>
Agarwal, Preshit wrote:
> In this patch SGX powervr_device is registered with it's platform specific
> data to provide information about setting constraint through
> omap_pm_set_min_bus_tput.
> This patch removes the requirement of EXPORT_SYMBOL for the omap_pm_set_min_bus_tput
> function.
>
> Signed-off-by: Allen Pais <allen.pais@ti.com>
> Signed-off-by: Preshit Agarwal <preshit.agarwal@ti.com>
> ---
> arch/arm/mach-omap2/devices.c | 26 ++++++++++++++++++++++-
> arch/arm/mach-omap2/include/mach/omap_sgxdef.h | 13 ++++++++++++
> 2 files changed, 37 insertions(+), 2 deletions(-)
> create mode 100644 arch/arm/mach-omap2/include/mach/omap_sgxdef.h
>
> diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c
> index 7131d8d..32a06b6 100644
> --- a/arch/arm/mach-omap2/devices.c
> +++ b/arch/arm/mach-omap2/devices.c
> @@ -26,7 +26,7 @@
> #include <plat/mux.h>
> #include <mach/gpio.h>
> #include <plat/mmc.h>
> -
> +#include <mach/omap_sgxdef.h>
It is best to maintain the original whitespace.
> #include "mux.h"
>
> #if defined(CONFIG_VIDEO_OMAP2) || defined(CONFIG_VIDEO_OMAP2_MODULE)
> @@ -773,6 +773,28 @@ static inline void omap_hdq_init(void)
> static inline void omap_hdq_init(void) {}
> #endif
>
> +struct sgx_platform_data omap_sgx_data = {
> + .set_min_bus_tput = omap_pm_set_min_bus_tput,
> +};
> +
> +static struct platform_device powervr_device = {
> + .name = "pvrsrvkm",
> + .id = -1,
> +#ifdef CONFIG_PM
> + .dev = {
> + .platform_data = &omap_sgx_data,
> + }
> +#else
> + .dev = {
> + .platform_data = NULL,}
> +#endif
> +};
> +static void omap_init_sgx(void)
> +{
> + (void) platform_device_register(&powervr_device);
> +}
> +
> +
> /*-------------------------------------------------------------------------*/
>
> static int __init omap2_init_devices(void)
> @@ -787,7 +809,7 @@ static int __init omap2_init_devices(void)
> omap_hdq_init();
> omap_init_sti();
> omap_init_sha1_md5();
> -
> + omap_init_sgx();
Same whitespace issue as above.
Regards,
Mike
> return 0;
> }
> arch_initcall(omap2_init_devices);
> diff --git a/arch/arm/mach-omap2/include/mach/omap_sgxdef.h b/arch/arm/mach-omap2/include/mach/omap_sgxdef.h
> new file mode 100644
> index 0000000..08e24bb
> --- /dev/null
> +++ b/arch/arm/mach-omap2/include/mach/omap_sgxdef.h
> @@ -0,0 +1,13 @@
> +#ifndef OMAP_SGXDEF_H
> +#define OMAP_SGXDEF_H
> +
> +#include <plat/omap-pm.h>
> +
> +#ifdef CONFIG_PM
> +struct sgx_platform_data {
> + void(*set_min_bus_tput)(struct device *dev, u8 agent_id,
> + unsigned long r);
> +};
> +
> +#endif
> +#endif
next prev parent reply other threads:[~2010-03-26 17:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-26 10:33 [PATCH] Registering sgx device and it's platform specific data Agarwal, Preshit
2010-03-26 17:02 ` Mike Turquette [this message]
2010-03-26 17:49 ` Felipe Balbi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4BACE88B.8040303@ti.com \
--to=mturquette@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=preshit.agarwal@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox