RE: [PATCH v4 1/4] TI816X: Update common omap platform files

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

 



Hi Kevin,

Hilman, Kevin wrote on Saturday, January 22, 2011 4:01 AM:

> Hi Hemant,
> 
> Hemant Pedanekar <hemantp@xxxxxx> writes:
> 
>> This patch updates the common platform files with TI816X support. Also
>> adds new files for TI816X module base addresses and irq definitions.
> [...]
> 
>> diff --git a/arch/arm/plat-omap/include/plat/irqs-ti816x.h
> b/arch/arm/plat-omap/include/plat/irqs-ti816x.h
>> new file mode 100644
>> index 0000000..3ec5d1b
[...]
>> +#define TI816X_IRQ_SECPUBINT	116
>> +#define TI816X_IRQ_SECSECINT	117
>> +#define TI816X_IRQ_SECPUBSWINT	118
>> +#define TI816X_IRQ_SECSECSWINT	119
>> +#define TI816X_IRQ_SMRFLX0	120
>> +#define TI816X_IRQ_SMRFLX1	121
>> +#define TI816X_IRQ_SYS_MMU	122
>> +#define TI816X_IRQ_MC_MMU	123
>> +#define TI816X_IRQ_DMM		124
>> +
>> +
>> +#endif
> 
> For new platforms, We don't need to have a list of all the
> IRQ numbers.
> 
> Driver code should always be getting IRQ numbers (and base addresses
> etc.) from struct resource/platform_data, which is populated
> from omap_hwmod.
>

Are you suggesting to get rid of this file altogether or the IRQs which 
may never be used from kernel be removed from this file (and added later
If needed)?
  
Or shall I add this file only in hwmod patch which will be submitted later?

[...]
>> diff --git a/arch/arm/plat-omap/include/plat/serial.h
> b/arch/arm/plat-omap/include/plat/serial.h
>> index cec5d56..3c3c319 100644
>> --- a/arch/arm/plat-omap/include/plat/serial.h
>> +++ b/arch/arm/plat-omap/include/plat/serial.h
>> @@ -51,6 +51,11 @@
>>  #define OMAP4_UART3_BASE	0x48020000
>>  #define OMAP4_UART4_BASE	0x4806e000
>> 
>> +/* TI816X serial ports */
>> +#define TI816X_UART1_BASE	0x48020000
>> +#define TI816X_UART2_BASE	0x48022000
>> +#define TI816X_UART3_BASE	0x48024000
> 
>>  /* External port on Zoom2/3 */
>>  #define ZOOM_UART_BASE		0x10000000
>>  #define ZOOM_UART_VIRT		0xfa400000
>> diff --git a/arch/arm/plat-omap/include/plat/ti816x.h
> b/arch/arm/plat-omap/include/plat/ti816x.h
>> new file mode 100644
>> index 0000000..f1729f7
>> --- /dev/null
>> +++ b/arch/arm/plat-omap/include/plat/ti816x.h
>> @@ -0,0 +1,31 @@
[...]
>> +
>> +#define L3_TI816X_BASE		0x44000000
>> +#define L4_FAST_TI816X_BASE	0x4a000000
>> +#define L4_SLOW_TI816X_BASE	0x48000000
>> +
>> +#define TI816X_SCM_BASE		0x48140000
>> +#define TI816X_CTRL_BASE	TI816X_SCM_BASE
>> +#define TI816X_PRCM_BASE	0x48180000
>> +
>> +#define TI816X_ARM_INTC_BASE	0x48200000
>> +
>> +#define TI816X_GPMC_BASE	0x50000000
>> +
>> +#endif /* __ASM_ARCH_TI816X_H */
> 
> All of these fall into the "not used in this patch" category.
> 
> It is best to add these defines in the patches where they are used so
> reviewers can see the usage and/or the need.
> 
> With all of these defines, the subject for this patch should probably
> just be about adding the SoC detection infrastructure.
>
> Thanks,
> 
> Kevin

Okay, I will remove some of the unused defs (like GPMC_BASE) and reorganize
The patches to have files in correct groups.

Thanks.
   Hemant
 

--
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