From: kmpark@infradead.org (Kyungmin Park)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 09/12] [ARM][S3C6410] Add definitions of keypad register
Date: Mon, 7 Sep 2009 08:56:30 +0900 [thread overview]
Message-ID: <9c9fda240909061656i17a63cb6m95462bea6f33ae0c@mail.gmail.com> (raw)
In-Reply-To: <00a701ca2e2d$0031cc30$00956490$%yang@samsung.com>
2009/9/5 ??? <jsgood.yang@samsung.com>:
> This patch supports register map for s3c keypad driver.
>
> Signed-off-by: Jinsung Yang <jsgood.yang@samsung.com>
> Signed-off-by: Kyeongil Kim <ki0351.kim@samsung.com>
> ---
> ?arch/arm/plat-s3c/include/plat/regs-keypad.h | ? 39 ++++++++++++++++++++++++++
> ?1 files changed, 39 insertions(+), 0 deletions(-)
> ?create mode 100644 arch/arm/plat-s3c/include/plat/regs-keypad.h
>
> diff --git a/arch/arm/plat-s3c/include/plat/regs-keypad.h b/arch/arm/plat-s3c/include/plat/regs-keypad.h
> new file mode 100644
> index 0000000..ca71ecb
> --- /dev/null
> +++ b/arch/arm/plat-s3c/include/plat/regs-keypad.h
> @@ -0,0 +1,39 @@
> +/* linux/arch/arm/plat-s3c/include/plat/regs-keypad.h
> + *
> + * S3C Key Interface register definitions
> + *
> + * Kim Kyoungil, Copyright (c) 2006-2009 Samsung Electronics
> + * ? ? ?http://www.samsungsemi.com/
> + *
> + * 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_ARCH_REGS_KEYPAD_H
> +#define __ASM_ARCH_REGS_KEYPAD_H
> +
> +/*
> + * Keypad Interface
> + */
> +#define S3C_KEYPADREG(x) ? ? ? (x)
> +
> +#define S3C_KEYIFCON ? ? ? ? ? S3C_KEYPADREG(0x00)
> +#define S3C_KEYIFSTSCLR ? ? ? ? ? ? ? ?S3C_KEYPADREG(0x04)
> +#define S3C_KEYIFCOL ? ? ? ? ? S3C_KEYPADREG(0x08)
> +#define S3C_KEYIFROW ? ? ? ? ? S3C_KEYPADREG(0x0C)
> +#define S3C_KEYIFFC ? ? ? ? ? ?S3C_KEYPADREG(0x10)
> +
> +#define S3C_KEYIF_COL_DMASK ? ?(0xff)
> +#define S3C_KEYIF_ROW_DMASK ? ?(0xff)
> +#define S3C_KEYIF_INT_F_EN ? ? (1 << 0) /*falling edge(key-pressed) interuppt enable*/
> +#define S3C_KEYIF_INT_R_EN ? ? (1 << 1) /*rising edge(key-released) interuppt enable*/
> +#define S3C_KEYIF_DF_EN ? ? ? ? ? ? ? ?(1 << 2) /*debouncing filter enable*/
> +#define S3C_KEYIF_FC_EN ? ? ? ? ? ? ? ?(1 << 3) /*filter clock enable*/
> +#define S3C_KEYIF_CON_MASK_ALL (0x1f)
> +#define S3C_KEYIF_COL_MASK_ALL (0xffff)
> +#define S3C_KEYIF_STSCLR_CLEAR (0xffff)
Can you re-organize it as each register. I mean KEYIFCON fileds first,
KEYIFSTRCLR files second and so on.
Can't figure out well
Thank you,
Kyungmin Park
> +
> +#endif /* __ASM_ARCH_REGS_KEYPAD_H */
> +
> --
> 1.6.2.5
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
next prev parent reply other threads:[~2009-09-06 23:56 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-05 13:30 [PATCH 09/12] [ARM][S3C6410] Add definitions of keypad register 양진성
2009-09-06 23:56 ` Kyungmin Park [this message]
2009-09-07 10:07 ` Jinsung Yang
2009-09-07 10:09 ` Kyungmin Park
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=9c9fda240909061656i17a63cb6m95462bea6f33ae0c@mail.gmail.com \
--to=kmpark@infradead.org \
--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).