linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: snjw23@gmail.com (Sylwester Nawrocki)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] ARM: EXYNOS: Add files about definition of C2C
Date: Sat, 04 Feb 2012 14:11:13 +0100	[thread overview]
Message-ID: <4F2D2E71.1030105@gmail.com> (raw)
In-Reply-To: <000501cce314$cf9fcff0$6edf6fd0$%lee@samsung.com>

Hi,

On 02/04/2012 09:13 AM, Kisang Lee wrote:
> Cc: Arnd Bergmann<arnd<at>  arndb.de>
> Cc: Greg Kroah-Hartman<greg<at>  kroah.com>
> 
> Following files are added for C2C driver
> c2c.h : Definition of C2C platform data and mode
> regs-c2c.h : Definition of C2C registers
>
> Signed-off-by: Kisang Lee<kisang80.lee@samsung.com>
> ---
>   arch/arm/mach-exynos/include/mach/c2c.h      |   65 +++++++++++++++++++++++
>   arch/arm/mach-exynos/include/mach/regs-c2c.h |   71 ++++++++++++++++++++++++++
>   2 files changed, 136 insertions(+), 0 deletions(-)
>   create mode 100644 arch/arm/mach-exynos/include/mach/c2c.h
>   create mode 100644 arch/arm/mach-exynos/include/mach/regs-c2c.h
> 
...
> diff --git a/arch/arm/mach-exynos/include/mach/regs-c2c.h b/arch/arm/mach-exynos/include/mach/regs-c2c.h
> new file mode 100644
> index 0000000..0c3d005
> --- /dev/null
> +++ b/arch/arm/mach-exynos/include/mach/regs-c2c.h
> @@ -0,0 +1,71 @@
> +/* linux/arch/arm/mach-exynos/include/mach/regs-c2c.h
> + *
> + * Copyright (c) 2011 Samsung Electronics Co., Ltd.

2012 ?

> + * http://www.samsung.com/
> + *
> + * Register definition file for Samsung C2C
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> +*/
> +
> +#ifndef __ASM_ARM_REGS_S5P_C2C_H
> +#define __ASM_ARM_REGS_S5P_C2C_H
> +
> +/***************************************************************/
> +/* C2C Registers part				*/
> +/***************************************************************/
> +#define EXYNOS_C2C_REVISION		0x0
> +#define EXYNOS_C2C_SYSCONFIG		0x4
> +#define EXYNOS_C2C_SYSSTATUS		0x8
> +#define EXYNOS_C2C_PORTCONFIG		0xc
> +#define EXYNOS_C2C_MIRRORMODE		0x10
> +#define EXYNOS_C2C_IRQ_RAW_STAT0	0x14
> +#define EXYNOS_C2C_IRQ_RAW_STAT1	0x18
> +#define EXYNOS_C2C_IRQ_EN_STAT0	0x1c
> +#define EXYNOS_C2C_IRQ_EN_STAT1	0x20
> +#define EXYNOS_C2C_IRQ_EN_SET0		0x24
> +#define EXYNOS_C2C_IRQ_EN_SET1		0x28
> +#define EXYNOS_C2C_IRQ_EN_CLEAR0	0x2c
> +#define EXYNOS_C2C_IRQ_EN_CLEAR1	0x30
> +#define EXYNOS_C2C_IRQ_EOI		0x34
> +
> +#define EXYNOS_C2C_FCLK_FREQ		0x40
> +#define EXYNOS_C2C_RX_MAX_FREQ		0x44
> +#define EXYNOS_C2C_TX_MAX_FREQ		0x48
> +#define EXYNOS_C2C_RX_MAX_FREQ_ACK	0x4c
> +#define EXYNOS_C2C_WAKE_REQ		0x50
> +#define EXYNOS_C2C_WAKE_ACK		0x54
> +#define EXYNOS_C2C_STANDBY		0x60
> +#define EXYNOS_C2C_STANDBY_IN		0x64
> +#define EXYNOS_C2C_WAIT		0x68
> +#define EXYNOS_C2C_GENI_CONTROL	0x70
> +#define EXYNOS_C2C_GENI_MASK		0x74
> +#define EXYNOS_C2C_GENO_STATUS		0x80
> +
> +#define EXYNOS_C2C_GENO_INT		0x84
> +#define EXYNOS_C2C_GENO_LEVEL		0x88
> +
> +/***************************************************************/
> +/* C2C Bit definition part					*/
> +/***************************************************************/
> +/* SYSREG Bit definition */
> +#define C2C_SYSREG_CG		(31) /* C2C Clock Gating [31] */
> +#define C2C_SYSREG_MO		(30) /* Master On [30] */
> +#define C2C_SYSREG_FCLK		(20) /* Default Functional Clock Freq [29:20] */
> +#define C2C_SYSREG_TXW		(18) /* Default Tx Width [19:18] */
> +#define C2C_SYSREG_RXW		(16) /* Default Rx Width [17:16] */
> +#define C2C_SYSREG_RST		(15) /* Reset [15] */
> +#define C2C_SYSREG_MD		(14) /* Master On [14] */
> +#define C2C_SYSREG_RTRST	(13) /* Reset retention registers [13] */
> +#define C2C_SYSREG_BASE_ADDR	(3)  /* DRAM Base Address [12:3] */
> +#define C2C_SYSREG_DRAM_SIZE	(0)  /* DRAM Size [2:0] */
> +
> +#define C2C_GENIO_LATENCY_INT	(26)
> +#define C2C_GENIO_OPP_INT	(27)
> +#define C2C_GENIO_OPP_MODE0	(28)
> +#define C2C_GENIO_OPP_MODE1	(29)
> +#define C2C_GENIO_LATENCY0	(30)
> +#define C2C_GENIO_LATENCY1	(31)

Could we have the parentheses around numbers removed ? They don't seem
to be useful for anything.

> +#endif /* __ASM_ARM_REGS_S5P_C2C_H */

--

Thanks,
Sylwester

  parent reply	other threads:[~2012-02-04 13:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-04  8:13 [PATCH 1/2] ARM: EXYNOS: Add files about definition of C2C Kisang Lee
2012-02-04  9:41 ` Kyungmin Park
2012-02-04 13:11 ` Sylwester Nawrocki [this message]
2012-02-04 14:04 ` Russell King - ARM Linux

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F2D2E71.1030105@gmail.com \
    --to=snjw23@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).