aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorBenoit Cousson <b-cousson@ti.com>2010-12-23 17:30:32 -0500
committerTony Lindgren <tony@atomide.com>2010-12-24 12:39:27 -0500
commitfe13471c4b546e07ddbaf5fb2209b50c14b99b20 (patch)
tree1c7b472b7ac472a1624ac5d7933a141220aaf44c /arch/arm
parentd7cf5f33fc68573d7bb9d4fc244ea1a3ed0b011b (diff)
OMAP4: hwmod data: Fix alignment and end of line in structurefields
In order to be fully aligned with the Python generator output, change a couple of fields. - Add tab in class structures to align attributes - Add a comma at the end of the following line to simplify the generation by having always the same eol: ".pre_shutdown = &omap2_wd_timer_disable," - Add a blank line before the first entry of the omap44xx_hwmods array. Signed-off-by: Benoit Cousson <b-cousson@ti.com> Cc: Paul Walmsley <paul@pwsan.com> Tested-by: G, Manjunath Kondaiah <manjugk@ti.com> Acked-by: Kevin Hilman <khilman@deeprootsystems.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_44xx_data.c43
1 files changed, 22 insertions, 21 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
index f35a99dde0b..c2806bd11fb 100644
--- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
@@ -66,7 +66,7 @@ static struct omap_hwmod omap44xx_mpu_private_hwmod;
66 * instance(s): dmm 66 * instance(s): dmm
67 */ 67 */
68static struct omap_hwmod_class omap44xx_dmm_hwmod_class = { 68static struct omap_hwmod_class omap44xx_dmm_hwmod_class = {
69 .name = "dmm", 69 .name = "dmm",
70}; 70};
71 71
72/* dmm interface data */ 72/* dmm interface data */
@@ -121,7 +121,7 @@ static struct omap_hwmod omap44xx_dmm_hwmod = {
121 * instance(s): emif_fw 121 * instance(s): emif_fw
122 */ 122 */
123static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = { 123static struct omap_hwmod_class omap44xx_emif_fw_hwmod_class = {
124 .name = "emif_fw", 124 .name = "emif_fw",
125}; 125};
126 126
127/* emif_fw interface data */ 127/* emif_fw interface data */
@@ -170,7 +170,7 @@ static struct omap_hwmod omap44xx_emif_fw_hwmod = {
170 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3 170 * instance(s): l3_instr, l3_main_1, l3_main_2, l3_main_3
171 */ 171 */
172static struct omap_hwmod_class omap44xx_l3_hwmod_class = { 172static struct omap_hwmod_class omap44xx_l3_hwmod_class = {
173 .name = "l3", 173 .name = "l3",
174}; 174};
175 175
176/* l3_instr interface data */ 176/* l3_instr interface data */
@@ -347,7 +347,7 @@ static struct omap_hwmod omap44xx_l3_main_3_hwmod = {
347 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup 347 * instance(s): l4_abe, l4_cfg, l4_per, l4_wkup
348 */ 348 */
349static struct omap_hwmod_class omap44xx_l4_hwmod_class = { 349static struct omap_hwmod_class omap44xx_l4_hwmod_class = {
350 .name = "l4", 350 .name = "l4",
351}; 351};
352 352
353/* l4_abe interface data */ 353/* l4_abe interface data */
@@ -461,7 +461,7 @@ static struct omap_hwmod omap44xx_l4_wkup_hwmod = {
461 * instance(s): mpu_private 461 * instance(s): mpu_private
462 */ 462 */
463static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = { 463static struct omap_hwmod_class omap44xx_mpu_bus_hwmod_class = {
464 .name = "mpu_bus", 464 .name = "mpu_bus",
465}; 465};
466 466
467/* mpu_private interface data */ 467/* mpu_private interface data */
@@ -667,7 +667,7 @@ static struct omap_hwmod omap44xx_dma_system_hwmod = {
667 */ 667 */
668 668
669static struct omap_hwmod_class omap44xx_dsp_hwmod_class = { 669static struct omap_hwmod_class omap44xx_dsp_hwmod_class = {
670 .name = "dsp", 670 .name = "dsp",
671}; 671};
672 672
673/* dsp */ 673/* dsp */
@@ -764,15 +764,15 @@ static struct omap_hwmod_class_sysconfig omap44xx_gpio_sysc = {
764}; 764};
765 765
766static struct omap_hwmod_class omap44xx_gpio_hwmod_class = { 766static struct omap_hwmod_class omap44xx_gpio_hwmod_class = {
767 .name = "gpio", 767 .name = "gpio",
768 .sysc = &omap44xx_gpio_sysc, 768 .sysc = &omap44xx_gpio_sysc,
769 .rev = 2, 769 .rev = 2,
770}; 770};
771 771
772/* gpio dev_attr */ 772/* gpio dev_attr */
773static struct omap_gpio_dev_attr gpio_dev_attr = { 773static struct omap_gpio_dev_attr gpio_dev_attr = {
774 .bank_width = 32, 774 .bank_width = 32,
775 .dbck_flag = true, 775 .dbck_flag = true,
776}; 776};
777 777
778/* gpio1 */ 778/* gpio1 */
@@ -1109,8 +1109,8 @@ static struct omap_hwmod_class_sysconfig omap44xx_i2c_sysc = {
1109}; 1109};
1110 1110
1111static struct omap_hwmod_class omap44xx_i2c_hwmod_class = { 1111static struct omap_hwmod_class omap44xx_i2c_hwmod_class = {
1112 .name = "i2c", 1112 .name = "i2c",
1113 .sysc = &omap44xx_i2c_sysc, 1113 .sysc = &omap44xx_i2c_sysc,
1114}; 1114};
1115 1115
1116/* i2c1 */ 1116/* i2c1 */
@@ -1331,7 +1331,7 @@ static struct omap_hwmod omap44xx_i2c4_hwmod = {
1331 */ 1331 */
1332 1332
1333static struct omap_hwmod_class omap44xx_iva_hwmod_class = { 1333static struct omap_hwmod_class omap44xx_iva_hwmod_class = {
1334 .name = "iva", 1334 .name = "iva",
1335}; 1335};
1336 1336
1337/* iva */ 1337/* iva */
@@ -1440,7 +1440,7 @@ static struct omap_hwmod omap44xx_iva_hwmod = {
1440 */ 1440 */
1441 1441
1442static struct omap_hwmod_class omap44xx_mpu_hwmod_class = { 1442static struct omap_hwmod_class omap44xx_mpu_hwmod_class = {
1443 .name = "mpu", 1443 .name = "mpu",
1444}; 1444};
1445 1445
1446/* mpu */ 1446/* mpu */
@@ -1495,9 +1495,9 @@ static struct omap_hwmod_class_sysconfig omap44xx_smartreflex_sysc = {
1495}; 1495};
1496 1496
1497static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = { 1497static struct omap_hwmod_class omap44xx_smartreflex_hwmod_class = {
1498 .name = "smartreflex", 1498 .name = "smartreflex",
1499 .sysc = &omap44xx_smartreflex_sysc, 1499 .sysc = &omap44xx_smartreflex_sysc,
1500 .rev = 2, 1500 .rev = 2,
1501}; 1501};
1502 1502
1503/* smartreflex_core */ 1503/* smartreflex_core */
@@ -1656,8 +1656,8 @@ static struct omap_hwmod_class_sysconfig omap44xx_uart_sysc = {
1656}; 1656};
1657 1657
1658static struct omap_hwmod_class omap44xx_uart_hwmod_class = { 1658static struct omap_hwmod_class omap44xx_uart_hwmod_class = {
1659 .name = "uart", 1659 .name = "uart",
1660 .sysc = &omap44xx_uart_sysc, 1660 .sysc = &omap44xx_uart_sysc,
1661}; 1661};
1662 1662
1663/* uart1 */ 1663/* uart1 */
@@ -1889,7 +1889,7 @@ static struct omap_hwmod_class_sysconfig omap44xx_wd_timer_sysc = {
1889static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = { 1889static struct omap_hwmod_class omap44xx_wd_timer_hwmod_class = {
1890 .name = "wd_timer", 1890 .name = "wd_timer",
1891 .sysc = &omap44xx_wd_timer_sysc, 1891 .sysc = &omap44xx_wd_timer_sysc,
1892 .pre_shutdown = &omap2_wd_timer_disable 1892 .pre_shutdown = &omap2_wd_timer_disable,
1893}; 1893};
1894 1894
1895/* wd_timer2 */ 1895/* wd_timer2 */
@@ -2002,6 +2002,7 @@ static struct omap_hwmod omap44xx_wd_timer3_hwmod = {
2002}; 2002};
2003 2003
2004static __initdata struct omap_hwmod *omap44xx_hwmods[] = { 2004static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
2005
2005 /* dmm class */ 2006 /* dmm class */
2006 &omap44xx_dmm_hwmod, 2007 &omap44xx_dmm_hwmod,
2007 2008