RE: [PATCH 1/8] DSPBRIDGE: Cleanup SSI handling - remove IO_ADDRESS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From: Felipe Contreras [mailto:felipe.contreras@xxxxxxxxx]
>
>On Fri, Jan 08, 2010 at 02:00:26AM +0100, Omar Ramirez Luna wrote:
>> This patch cleans SSI clock preparation and also removes
>> the dependency on IO_ADDRESS variants for easier maintenance.
>
>So this patch is:

Cleaning ssi handling

> * reorganizing SSI configuration
> * doing some code-style cleanups
> * using ioremap()
>
>That doesn't look very atomic to me.

I'll split this and resend...

>
>> Signed-off-by: Omar Ramirez Luna <omar.ramirez@xxxxxx>
>> ---
>>  arch/arm/plat-omap/include/dspbridge/drv.h |    7 ++++++
>>  drivers/dsp/bridge/services/clk.c          |   30 ++++++++++++++-------------
>>  2 files changed, 23 insertions(+), 14 deletions(-)
>>
>> diff --git a/arch/arm/plat-omap/include/dspbridge/drv.h b/arch/arm/plat-
>omap/include/dspbridge/drv.h
>> index d14613f..59c26fc 100644
>> --- a/arch/arm/plat-omap/include/dspbridge/drv.h
>> +++ b/arch/arm/plat-omap/include/dspbridge/drv.h
>> @@ -115,6 +115,13 @@
>>  #define OMAP_DMMU_BASE 0x5D000000
>>  #define OMAP_DMMU_SIZE 0x1000
>>
>> +#define OMAP_SSI_BASE		0x48058000
>> +#define OMAP_SSI_SIZE		0x1000
>> +
>> +#define SSI_AUTOIDLE			(1 << 0)
>> +#define SSI_SIDLE_SMARTIDLE	(2 << 3)
>> +#define SSI_MIDLE_NOIDLE		(1 << 12)
>> +
>>  #define OMAP_PRCM_VDD1_DOMAIN 1
>>  #define OMAP_PRCM_VDD2_DOMAIN 2
>
>Isn't this some abuse of arch/arm? In general things in header files are
>meant to be used in more than one source file, and it doesn't seem
>anybody would use these other than clk.c.

I kind of agree but I thought it was worse to have registers defined all over the place, like in _tiomap.h (where some of these registers are defined along with MBX...)

That said I'll keep this within clk.c

- omar
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux