diff mbox

[U-Boot] arm: socfpga: arria10: add additional i2c nodes for Arria10

Message ID 1448988115-20700-1-git-send-email-dinguyen@opensource.altera.com
State Deferred
Delegated to: Marek Vasut
Headers show

Commit Message

Dinh Nguyen Dec. 1, 2015, 4:41 p.m. UTC
From: Dinh Nguyen <dinguyen@opensource.altera.com>

Add remaining 3 I2C base addresses for the Arria10.

Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
---
 arch/arm/mach-socfpga/include/mach/base_addr_a10.h | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Stefan Roese Dec. 1, 2015, 5:12 p.m. UTC | #1
On 01.12.2015 17:41, dinguyen@opensource.altera.com wrote:
> From: Dinh Nguyen <dinguyen@opensource.altera.com>
>
> Add remaining 3 I2C base addresses for the Arria10.
>
> Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
> ---
>   arch/arm/mach-socfpga/include/mach/base_addr_a10.h | 4 ++++
>   1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/mach-socfpga/include/mach/base_addr_a10.h b/arch/arm/mach-socfpga/include/mach/base_addr_a10.h
> index a7056d4..8653dd5 100644
> --- a/arch/arm/mach-socfpga/include/mach/base_addr_a10.h
> +++ b/arch/arm/mach-socfpga/include/mach/base_addr_a10.h
> @@ -29,6 +29,10 @@
>   #define SOCFPGA_MPUL2_ADDRESS			0xfffff000
>   #define SOCFPGA_I2C0_ADDRESS			0xffc02200
>   #define SOCFPGA_I2C1_ADDRESS			0xffc02300
> +#define SOCFPGA_I2C2_ADDRESS			0xffc02400
> +#define SOCFPGA_I2C3_ADDRESS			0xffc02500
> +#define SOCFPGA_I2C4_ADDRESS			0xffc02600
> +
>
>   #define SOCFPGA_ECC_OCRAM_ADDRESS		0xff8c3000
>   #define SOCFPGA_UART0_ADDRESS			0xffc02000

Nitpicking, but there seems to be one empty line too much
added above.

Other than this:

Reviewed-by: Stefan Roese <sr@denx.de>

BTW: Is anyone working on DM conversion of this I2C driver? All
those macros for the base addresses would not be needed then.

Thanks,
Stefan
Marek Vasut Dec. 1, 2015, 6:41 p.m. UTC | #2
On Tuesday, December 01, 2015 at 06:12:32 PM, Stefan Roese wrote:
> On 01.12.2015 17:41, dinguyen@opensource.altera.com wrote:
> > From: Dinh Nguyen <dinguyen@opensource.altera.com>
> > 
> > Add remaining 3 I2C base addresses for the Arria10.
> > 
> > Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
> > ---
> > 
> >   arch/arm/mach-socfpga/include/mach/base_addr_a10.h | 4 ++++
> >   1 file changed, 4 insertions(+)
> > 
> > diff --git a/arch/arm/mach-socfpga/include/mach/base_addr_a10.h
> > b/arch/arm/mach-socfpga/include/mach/base_addr_a10.h index
> > a7056d4..8653dd5 100644
> > --- a/arch/arm/mach-socfpga/include/mach/base_addr_a10.h
> > +++ b/arch/arm/mach-socfpga/include/mach/base_addr_a10.h
> > @@ -29,6 +29,10 @@
> > 
> >   #define SOCFPGA_MPUL2_ADDRESS			0xfffff000
> >   #define SOCFPGA_I2C0_ADDRESS			0xffc02200
> >   #define SOCFPGA_I2C1_ADDRESS			0xffc02300
> > 
> > +#define SOCFPGA_I2C2_ADDRESS			0xffc02400
> > +#define SOCFPGA_I2C3_ADDRESS			0xffc02500
> > +#define SOCFPGA_I2C4_ADDRESS			0xffc02600
> > +
> > 
> >   #define SOCFPGA_ECC_OCRAM_ADDRESS		0xff8c3000
> >   #define SOCFPGA_UART0_ADDRESS			0xffc02000
> 
> Nitpicking, but there seems to be one empty line too much
> added above.
> 
> Other than this:
> 
> Reviewed-by: Stefan Roese <sr@denx.de>
> 
> BTW: Is anyone working on DM conversion of this I2C driver? All
> those macros for the base addresses would not be needed then.

Fixed and applied.

Best regards,
Marek Vasut
Chin Liang See Dec. 2, 2015, 5:36 a.m. UTC | #3
On Tue, 2015-12-01 at 10:41 -0600, dinguyen@opensource.altera.com
wrote:
> From: Dinh Nguyen <dinguyen@opensource.altera.com>
> 
> Add remaining 3 I2C base addresses for the Arria10.
> 
> Signed-off-by: Dinh Nguyen <dinguyen@opensource.altera.com>
> ---


Acked-by: Chin Liang See <clsee@altera.com>

Thanks
Chin Liang
diff mbox

Patch

diff --git a/arch/arm/mach-socfpga/include/mach/base_addr_a10.h b/arch/arm/mach-socfpga/include/mach/base_addr_a10.h
index a7056d4..8653dd5 100644
--- a/arch/arm/mach-socfpga/include/mach/base_addr_a10.h
+++ b/arch/arm/mach-socfpga/include/mach/base_addr_a10.h
@@ -29,6 +29,10 @@ 
 #define SOCFPGA_MPUL2_ADDRESS			0xfffff000
 #define SOCFPGA_I2C0_ADDRESS			0xffc02200
 #define SOCFPGA_I2C1_ADDRESS			0xffc02300
+#define SOCFPGA_I2C2_ADDRESS			0xffc02400
+#define SOCFPGA_I2C3_ADDRESS			0xffc02500
+#define SOCFPGA_I2C4_ADDRESS			0xffc02600
+
 
 #define SOCFPGA_ECC_OCRAM_ADDRESS		0xff8c3000
 #define SOCFPGA_UART0_ADDRESS			0xffc02000