[1/5] exynos5: Add system register structure

Message ID 1335966762-9769-2-git-send-email-rajeshwari.s@samsung.com
State New
Headers show

Commit Message

Rajeshwari Shinde May 2, 2012, 1:52 p.m.
This patch add structure for SYSREG.

Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
Reviewed-by: Vivek Gautam <gautam.vivek@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
 arch/arm/include/asm/arch-exynos/sysreg.h |   43 +++++++++++++++++++++++++++++
 1 files changed, 43 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/include/asm/arch-exynos/sysreg.h

Comments

Marek Vasut May 2, 2012, 3:53 p.m. | #1
Dear Rajeshwari Shinde,

> This patch add structure for SYSREG.

Ccing Minkyu. Can I get your opinion on these patches please?

> 
> Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
> Reviewed-by: Vivek Gautam <gautam.vivek@samsung.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> ---
>  arch/arm/include/asm/arch-exynos/sysreg.h |   43
> +++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0
> deletions(-)
>  create mode 100644 arch/arm/include/asm/arch-exynos/sysreg.h
> 
> diff --git a/arch/arm/include/asm/arch-exynos/sysreg.h
> b/arch/arm/include/asm/arch-exynos/sysreg.h new file mode 100644
> index 0000000..aca4b2b
> --- /dev/null
> +++ b/arch/arm/include/asm/arch-exynos/sysreg.h
> @@ -0,0 +1,43 @@
> +/*
> + * (C) Copyright 2012 Samsung Electronics
> + * Register map for sysreg
> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License as
> + * published by the Free Software Foundation; either version 2 of
> + * the License, or (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
> + * MA 02111-1307 USA
> + */
> +
> +#ifndef __EXYNOS5_SYSREG_H__
> +#define __EXYNOS5_SYSREG_H__
> +
> +#ifndef __ASSEMBLY__
> +/* sysreg map */
> +struct exynos5_sysreg {
> +	/* Add registers as and when required */
> +	unsigned char	res1[0x214];
> +	unsigned int	disp1blk_cfg;
> +	unsigned int	dispblk_cfg2;
> +	unsigned int	hdcp_e_fuse_mem_cfg;
> +	unsigned int	gsclblk_cfg0;
> +	unsigned int	gsclblk_cfg1;
> +	unsigned int	ispblk_cfg;
> +	unsigned int	usb20_phy_cfg;
> +	unsigned char	res2[0x29c];
> +	unsigned int	mipi_dphy;
> +	unsigned int	dptx_phy;
> +	unsigned int	phyclk_sel;
> +};
> +#endif
> +
> +#endif

Best regards,
Marek Vasut
Kyungmin Park May 3, 2012, 1:47 a.m. | #2
+ Minkyu,

On 5/3/12, Marek Vasut <marex@denx.de> wrote:
> Dear Rajeshwari Shinde,
>
>> This patch add structure for SYSREG.
>
> Ccing Minkyu. Can I get your opinion on these patches please?
>
>>
>> Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
>> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
>> Reviewed-by: Vivek Gautam <gautam.vivek@samsung.com>
>> Reviewed-by: Simon Glass <sjg@chromium.org>
>> ---
>>  arch/arm/include/asm/arch-exynos/sysreg.h |   43
>> +++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0
>> deletions(-)
>>  create mode 100644 arch/arm/include/asm/arch-exynos/sysreg.h
>>
>> diff --git a/arch/arm/include/asm/arch-exynos/sysreg.h
>> b/arch/arm/include/asm/arch-exynos/sysreg.h new file mode 100644
>> index 0000000..aca4b2b
>> --- /dev/null
>> +++ b/arch/arm/include/asm/arch-exynos/sysreg.h
>> @@ -0,0 +1,43 @@
>> +/*
>> + * (C) Copyright 2012 Samsung Electronics
>> + * Register map for sysreg
>> + *
>> + * This program is free software; you can redistribute it and/or
>> + * modify it under the terms of the GNU General Public License as
>> + * published by the Free Software Foundation; either version 2 of
>> + * the License, or (at your option) any later version.
>> + *
>> + * This program is distributed in the hope that it will be useful,
>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>> + * GNU General Public License for more details.
>> + *
>> + * You should have received a copy of the GNU General Public License
>> + * along with this program; if not, write to the Free Software
>> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
>> + * MA 02111-1307 USA
>> + */
>> +
>> +#ifndef __EXYNOS5_SYSREG_H__
>> +#define __EXYNOS5_SYSREG_H__
>> +
>> +#ifndef __ASSEMBLY__
>> +/* sysreg map */
>> +struct exynos5_sysreg {
>> +	/* Add registers as and when required */
>> +	unsigned char	res1[0x214];
>> +	unsigned int	disp1blk_cfg;
>> +	unsigned int	dispblk_cfg2;
>> +	unsigned int	hdcp_e_fuse_mem_cfg;
>> +	unsigned int	gsclblk_cfg0;
>> +	unsigned int	gsclblk_cfg1;
>> +	unsigned int	ispblk_cfg;
>> +	unsigned int	usb20_phy_cfg;
>> +	unsigned char	res2[0x29c];
>> +	unsigned int	mipi_dphy;
>> +	unsigned int	dptx_phy;
>> +	unsigned int	phyclk_sel;
>> +};
>> +#endif
>> +
>> +#endif
>
> Best regards,
> Marek Vasut
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
Chander Kashyap May 3, 2012, 5:38 a.m. | #3
Dear Rajeshwari,

On 2 May 2012 21:23, Marek Vasut <marex@denx.de> wrote:
> Dear Rajeshwari Shinde,
>
>> This patch add structure for SYSREG.
>
> Ccing Minkyu. Can I get your opinion on these patches please?
>
>>
>> Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
>> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
>> Reviewed-by: Vivek Gautam <gautam.vivek@samsung.com>
>> Reviewed-by: Simon Glass <sjg@chromium.org>
>> ---
>>  arch/arm/include/asm/arch-exynos/sysreg.h |   43
>> +++++++++++++++++++++++++++++ 1 files changed, 43 insertions(+), 0
>> deletions(-)
>>  create mode 100644 arch/arm/include/asm/arch-exynos/sysreg.h
>>
>> diff --git a/arch/arm/include/asm/arch-exynos/sysreg.h
>> b/arch/arm/include/asm/arch-exynos/sysreg.h new file mode 100644
>> index 0000000..aca4b2b
>> --- /dev/null
>> +++ b/arch/arm/include/asm/arch-exynos/sysreg.h
>> @@ -0,0 +1,43 @@
>> +/*
>> + * (C) Copyright 2012 Samsung Electronics
>> + * Register map for sysreg
>> + *
>> + * This program is free software; you can redistribute it and/or
>> + * modify it under the terms of the GNU General Public License as
>> + * published by the Free Software Foundation; either version 2 of
>> + * the License, or (at your option) any later version.
>> + *
>> + * This program is distributed in the hope that it will be useful,
>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>> + * GNU General Public License for more details.
>> + *
>> + * You should have received a copy of the GNU General Public License
>> + * along with this program; if not, write to the Free Software
>> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
>> + * MA 02111-1307 USA
>> + */
>> +
>> +#ifndef __EXYNOS5_SYSREG_H__
>> +#define __EXYNOS5_SYSREG_H__
>> +
>> +#ifndef __ASSEMBLY__
>> +/* sysreg map */
>> +struct exynos5_sysreg {
>> +     /* Add registers as and when required */
>> +     unsigned char   res1[0x214];
>> +     unsigned int    disp1blk_cfg;
>> +     unsigned int    dispblk_cfg2;
>> +     unsigned int    hdcp_e_fuse_mem_cfg;
>> +     unsigned int    gsclblk_cfg0;
>> +     unsigned int    gsclblk_cfg1;
>> +     unsigned int    ispblk_cfg;
>> +     unsigned int    usb20_phy_cfg;
>> +     unsigned char   res2[0x29c];
>> +     unsigned int    mipi_dphy;
>> +     unsigned int    dptx_phy;
>> +     unsigned int    phyclk_sel;
>> +};
>> +#endif
>> +
>> +#endif
>
> Best regards,
> Marek Vasut
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

Acked-by: Chander kashyap <chander.kashyap@linaro.org>
Minkyu Kang May 3, 2012, 7:14 a.m. | #4
Dear Rajeshwari Shinde,

On 2 May 2012 22:52, Rajeshwari Shinde <rajeshwari.s@samsung.com> wrote:
> This patch add structure for SYSREG.
>
> Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
> Reviewed-by: Vivek Gautam <gautam.vivek@samsung.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>
> ---
>  arch/arm/include/asm/arch-exynos/sysreg.h |   43 +++++++++++++++++++++++++++++
>  1 files changed, 43 insertions(+), 0 deletions(-)
>  create mode 100644 arch/arm/include/asm/arch-exynos/sysreg.h
>
> diff --git a/arch/arm/include/asm/arch-exynos/sysreg.h b/arch/arm/include/asm/arch-exynos/sysreg.h
> new file mode 100644
> index 0000000..aca4b2b
> --- /dev/null
> +++ b/arch/arm/include/asm/arch-exynos/sysreg.h
> @@ -0,0 +1,43 @@
> +/*
> + * (C) Copyright 2012 Samsung Electronics
> + * Register map for sysreg

Please add your name.

> + *
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU General Public License as
> + * published by the Free Software Foundation; either version 2 of
> + * the License, or (at your option) any later version.
> + *
> + * This program is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> + * GNU General Public License for more details.
> + *
> + * You should have received a copy of the GNU General Public License
> + * along with this program; if not, write to the Free Software
> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
> + * MA 02111-1307 USA
> + */
> +
> +#ifndef __EXYNOS5_SYSREG_H__

please modify it to __ASM_ARM_ARCH_SYSREG_H__.

> +#define __EXYNOS5_SYSREG_H__
> +
> +#ifndef __ASSEMBLY__
> +/* sysreg map */
> +struct exynos5_sysreg {
> +       /* Add registers as and when required */
> +       unsigned char   res1[0x214];
> +       unsigned int    disp1blk_cfg;
> +       unsigned int    dispblk_cfg2;
> +       unsigned int    hdcp_e_fuse_mem_cfg;
> +       unsigned int    gsclblk_cfg0;
> +       unsigned int    gsclblk_cfg1;
> +       unsigned int    ispblk_cfg;
> +       unsigned int    usb20_phy_cfg;
> +       unsigned char   res2[0x29c];
> +       unsigned int    mipi_dphy;
> +       unsigned int    dptx_phy;
> +       unsigned int    phyclk_sel;
> +};
> +#endif
> +
> +#endif

Thanks.
Minkyu Kang.
Rajeshwari Birje May 3, 2012, 12:21 p.m. | #5
Hi Minkyu,

Thank you for the comments.

On Thu, May 3, 2012 at 12:44 PM, Minkyu Kang <promsoft@gmail.com> wrote:
> Dear Rajeshwari Shinde,
>
> On 2 May 2012 22:52, Rajeshwari Shinde <rajeshwari.s@samsung.com> wrote:
>> This patch add structure for SYSREG.
>>
>> Signed-off-by: Che-Liang Chiou <clchiou@chromium.org>
>> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
>> Reviewed-by: Vivek Gautam <gautam.vivek@samsung.com>
>> Reviewed-by: Simon Glass <sjg@chromium.org>
>> ---
>>  arch/arm/include/asm/arch-exynos/sysreg.h |   43 +++++++++++++++++++++++++++++
>>  1 files changed, 43 insertions(+), 0 deletions(-)
>>  create mode 100644 arch/arm/include/asm/arch-exynos/sysreg.h
>>
>> diff --git a/arch/arm/include/asm/arch-exynos/sysreg.h b/arch/arm/include/asm/arch-exynos/sysreg.h
>> new file mode 100644
>> index 0000000..aca4b2b
>> --- /dev/null
>> +++ b/arch/arm/include/asm/arch-exynos/sysreg.h
>> @@ -0,0 +1,43 @@
>> +/*
>> + * (C) Copyright 2012 Samsung Electronics
>> + * Register map for sysreg
>
> Please add your name.
-- will do so.
>
>> + *
>> + * This program is free software; you can redistribute it and/or
>> + * modify it under the terms of the GNU General Public License as
>> + * published by the Free Software Foundation; either version 2 of
>> + * the License, or (at your option) any later version.
>> + *
>> + * This program is distributed in the hope that it will be useful,
>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>> + * GNU General Public License for more details.
>> + *
>> + * You should have received a copy of the GNU General Public License
>> + * along with this program; if not, write to the Free Software
>> + * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
>> + * MA 02111-1307 USA
>> + */
>> +
>> +#ifndef __EXYNOS5_SYSREG_H__
>
> please modify it to __ASM_ARM_ARCH_SYSREG_H__.
-- Will correct this
>
>> +#define __EXYNOS5_SYSREG_H__
>> +
>> +#ifndef __ASSEMBLY__
>> +/* sysreg map */
>> +struct exynos5_sysreg {
>> +       /* Add registers as and when required */
>> +       unsigned char   res1[0x214];
>> +       unsigned int    disp1blk_cfg;
>> +       unsigned int    dispblk_cfg2;
>> +       unsigned int    hdcp_e_fuse_mem_cfg;
>> +       unsigned int    gsclblk_cfg0;
>> +       unsigned int    gsclblk_cfg1;
>> +       unsigned int    ispblk_cfg;
>> +       unsigned int    usb20_phy_cfg;
>> +       unsigned char   res2[0x29c];
>> +       unsigned int    mipi_dphy;
>> +       unsigned int    dptx_phy;
>> +       unsigned int    phyclk_sel;
>> +};
>> +#endif
>> +
>> +#endif
>
> Thanks.
> Minkyu Kang.
> --
> from. prom.
> www.promsoft.net
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

Regards,
Rajeshwari Shinde.

Patch

diff --git a/arch/arm/include/asm/arch-exynos/sysreg.h b/arch/arm/include/asm/arch-exynos/sysreg.h
new file mode 100644
index 0000000..aca4b2b
--- /dev/null
+++ b/arch/arm/include/asm/arch-exynos/sysreg.h
@@ -0,0 +1,43 @@ 
+/*
+ * (C) Copyright 2012 Samsung Electronics
+ * Register map for sysreg
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ */
+
+#ifndef __EXYNOS5_SYSREG_H__
+#define __EXYNOS5_SYSREG_H__
+
+#ifndef __ASSEMBLY__
+/* sysreg map */
+struct exynos5_sysreg {
+	/* Add registers as and when required */
+	unsigned char	res1[0x214];
+	unsigned int	disp1blk_cfg;
+	unsigned int	dispblk_cfg2;
+	unsigned int	hdcp_e_fuse_mem_cfg;
+	unsigned int	gsclblk_cfg0;
+	unsigned int	gsclblk_cfg1;
+	unsigned int	ispblk_cfg;
+	unsigned int	usb20_phy_cfg;
+	unsigned char	res2[0x29c];
+	unsigned int	mipi_dphy;
+	unsigned int	dptx_phy;
+	unsigned int	phyclk_sel;
+};
+#endif
+
+#endif