From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tony Lindgren Subject: Re: [PATCH 1/3] arm: dra7xx: Add hwmod data for MDIO and CPSW Date: Wed, 9 Jul 2014 02:08:51 -0700 Message-ID: <20140709090851.GI28884@atomide.com> References: <1404844852-19980-1-git-send-email-bigeasy@linutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1404844852-19980-1-git-send-email-bigeasy@linutronix.de> Sender: linux-omap-owner@vger.kernel.org To: Sebastian Andrzej Siewior Cc: linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Felipe Balbi , Mugunthan V N , Praveen Rao List-Id: devicetree@vger.kernel.org Hi, Can you please check the comments below so we don't have to add duplicate data just to remove it later on. * Sebastian Andrzej Siewior [140708 11:43]: > + > +static struct omap_hwmod_irq_info dra7xx_gmac_irqs[] = { > + { .name = "c0_rx_thresh_pend", .irq = 50 + DRA7XX_IRQ_GIC_START, }, > + { .name = "c0_rx_pend", .irq = 51 + DRA7XX_IRQ_GIC_START, }, > + { .name = "c0_tx_pend", .irq = 52 + DRA7XX_IRQ_GIC_START, }, > + { .name = "c0_misc_pend", .irq = 53 + DRA7XX_IRQ_GIC_START, }, > + { .irq = -1 }, > +}; Why do we need the interrupts here? They should be coming from the .dts files? Is this numbering with or without the crossbar? > +static struct omap_hwmod_addr_space dra7xx_gmac_addr_space[] = { > + /* cpsw ss */ > + { > + .pa_start = 0x48484000, > + .pa_end = 0x48484000 + SZ_2K - 1, > + }, > + /* cpsw wr */ > + { > + .pa_start = 0x48485200, > + .pa_end = 0x48485200 + SZ_256 - 1, > + .flags = ADDR_TYPE_RT, > + }, > + { } > +}; Also for the IO range, this should be coming from the .dts files now? > +static struct omap_hwmod_addr_space dra7xx_mdio_addr_space[] = { > + { > + .pa_start = 0x48485000, > + .pa_end = 0x48485000 + SZ_256 - 1, > + }, > + { } > +}; Here too? Regards, Tony