* [PATCH] NUC900: Add extern header file support for some driver
@ 2010-01-02 15:44 Wan ZongShun
[not found] ` <4B3F7EC3.7060707@ru.mvista.com>
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Wan ZongShun @ 2010-01-02 15:44 UTC (permalink / raw)
To: linux-arm-kernel
Dear Wang Qiang,
This patch provides a API for your LCD driver or other drivers, if you
want to use those APIs, please include corresponding header file.
Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
---
arch/arm/mach-w90x900/include/mach/clkdev.h | 3 +++
arch/arm/mach-w90x900/include/mach/mfp.h | 23 +++++++++++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)
create mode 100644 arch/arm/mach-w90x900/include/mach/mfp.h
diff --git a/arch/arm/mach-w90x900/include/mach/clkdev.h
b/arch/arm/mach-w90x900/include/mach/clkdev.h
index 04b37a8..b35f4bc 100644
--- a/arch/arm/mach-w90x900/include/mach/clkdev.h
+++ b/arch/arm/mach-w90x900/include/mach/clkdev.h
@@ -4,4 +4,7 @@
#define __clk_get(clk) ({ 1; })
#define __clk_put(clk) do { } while (0)
+extern void nuc900_driver_clksrc_div(struct device *dev, unsigned char
*src,
+ unsigned char divider);
+
#endif
diff --git a/arch/arm/mach-w90x900/include/mach/mfp.h
b/arch/arm/mach-w90x900/include/mach/mfp.h
new file mode 100644
index 0000000..69a094a
--- /dev/null
+++ b/arch/arm/mach-w90x900/include/mach/mfp.h
@@ -0,0 +1,23 @@
+/*
+ * arch/arm/mach-w90x900/include/mach/mfp.h
+ *
+ * Copyright (c) 2008 Nuvoton technology corporation
+ * All rights reserved.
+ *
+ * Wan ZongShun <mcuos.com@gmail.com>
+ *
+ * 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.
+ *
+ */
+#ifndef __ASM_ARM_MFP_H
+#define __ASM_ARM_MFP_H
+
+extern void mfp_set_groupf(struct device *dev);
+extern void mfp_set_groupc(struct device *dev);
+extern void mfp_set_groupi(struct device *dev);
+extern void mfp_set_groupg(struct device *dev);
+
+#endif /* __ASM_ARM_MFP_H */
--
1.5.6.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] NUC900: Add extern header file support for some driver
[not found] ` <4B3F7EC3.7060707@ru.mvista.com>
@ 2010-01-03 2:19 ` Wan ZongShun
0 siblings, 0 replies; 7+ messages in thread
From: Wan ZongShun @ 2010-01-03 2:19 UTC (permalink / raw)
To: linux-arm-kernel
Dear Sergei,
You are right, and it reason from my mail client setting.
Re-submit it.
Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
---
arch/arm/mach-w90x900/include/mach/clkdev.h | 3 +++
arch/arm/mach-w90x900/include/mach/mfp.h | 23 +++++++++++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)
create mode 100644 arch/arm/mach-w90x900/include/mach/mfp.h
diff --git a/arch/arm/mach-w90x900/include/mach/clkdev.h
b/arch/arm/mach-w90x900/include/mach/clkdev.h
index 04b37a8..b35f4bc 100644
--- a/arch/arm/mach-w90x900/include/mach/clkdev.h
+++ b/arch/arm/mach-w90x900/include/mach/clkdev.h
@@ -4,4 +4,7 @@
#define __clk_get(clk) ({ 1; })
#define __clk_put(clk) do { } while (0)
+extern void nuc900_driver_clksrc_div(struct device *dev, unsigned char *src,
+ unsigned char divider);
+
#endif
diff --git a/arch/arm/mach-w90x900/include/mach/mfp.h
b/arch/arm/mach-w90x900/include/mach/mfp.h
new file mode 100644
index 0000000..69a094a
--- /dev/null
+++ b/arch/arm/mach-w90x900/include/mach/mfp.h
@@ -0,0 +1,23 @@
+/*
+ * arch/arm/mach-w90x900/include/mach/mfp.h
+ *
+ * Copyright (c) 2008 Nuvoton technology corporation
+ * All rights reserved.
+ *
+ * Wan ZongShun <mcuos.com@gmail.com>
+ *
+ * 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.
+ *
+ */
+#ifndef __ASM_ARM_MFP_H
+#define __ASM_ARM_MFP_H
+
+extern void mfp_set_groupf(struct device *dev);
+extern void mfp_set_groupc(struct device *dev);
+extern void mfp_set_groupi(struct device *dev);
+extern void mfp_set_groupg(struct device *dev);
+
+#endif /* __ASM_ARM_MFP_H */
--
1.5.6.3
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH] NUC900: Add extern header file support for some driver
2010-01-02 15:44 [PATCH] NUC900: Add extern header file support for some driver Wan ZongShun
[not found] ` <4B3F7EC3.7060707@ru.mvista.com>
@ 2010-01-04 16:42 ` Ben Dooks
2010-01-04 16:58 ` Russell King - ARM Linux
2 siblings, 0 replies; 7+ messages in thread
From: Ben Dooks @ 2010-01-04 16:42 UTC (permalink / raw)
To: linux-arm-kernel
Wan ZongShun wrote:
> Dear Wang Qiang,
>
> This patch provides a API for your LCD driver or other drivers, if you
> want to use those APIs, please include corresponding header file.
>
> Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
> ---
> arch/arm/mach-w90x900/include/mach/clkdev.h | 3 +++
> arch/arm/mach-w90x900/include/mach/mfp.h | 23 +++++++++++++++++++++++
> 2 files changed, 26 insertions(+), 0 deletions(-)
> create mode 100644 arch/arm/mach-w90x900/include/mach/mfp.h
>
> diff --git a/arch/arm/mach-w90x900/include/mach/clkdev.h
> b/arch/arm/mach-w90x900/include/mach/clkdev.h
> index 04b37a8..b35f4bc 100644
> --- a/arch/arm/mach-w90x900/include/mach/clkdev.h
> +++ b/arch/arm/mach-w90x900/include/mach/clkdev.h
> @@ -4,4 +4,7 @@
> #define __clk_get(clk) ({ 1; })
> #define __clk_put(clk) do { } while (0)
>
> +extern void nuc900_driver_clksrc_div(struct device *dev, unsigned char
> *src,
> + unsigned char divider);
> +
hmm, why not have a 'struct clk' with a .set_rate method?
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] NUC900: Add extern header file support for some driver
2010-01-02 15:44 [PATCH] NUC900: Add extern header file support for some driver Wan ZongShun
[not found] ` <4B3F7EC3.7060707@ru.mvista.com>
2010-01-04 16:42 ` Ben Dooks
@ 2010-01-04 16:58 ` Russell King - ARM Linux
2010-01-05 2:26 ` 王强
2 siblings, 1 reply; 7+ messages in thread
From: Russell King - ARM Linux @ 2010-01-04 16:58 UTC (permalink / raw)
To: linux-arm-kernel
On Sat, Jan 02, 2010 at 11:44:45PM +0800, Wan ZongShun wrote:
> Dear Wang Qiang,
>
> This patch provides a API for your LCD driver or other drivers, if you
> want to use those APIs, please include corresponding header file.
>
> Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
> ---
> arch/arm/mach-w90x900/include/mach/clkdev.h | 3 +++
> arch/arm/mach-w90x900/include/mach/mfp.h | 23 +++++++++++++++++++++++
> 2 files changed, 26 insertions(+), 0 deletions(-)
> create mode 100644 arch/arm/mach-w90x900/include/mach/mfp.h
>
> diff --git a/arch/arm/mach-w90x900/include/mach/clkdev.h
> b/arch/arm/mach-w90x900/include/mach/clkdev.h
> index 04b37a8..b35f4bc 100644
> --- a/arch/arm/mach-w90x900/include/mach/clkdev.h
> +++ b/arch/arm/mach-w90x900/include/mach/clkdev.h
> @@ -4,4 +4,7 @@
> #define __clk_get(clk) ({ 1; })
> #define __clk_put(clk) do { } while (0)
>
> +extern void nuc900_driver_clksrc_div(struct device *dev, unsigned char
> *src,
> + unsigned char divider);
> +
I'd prefer it if this header didn't get used for non-clkdev<->plat code
stuff.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] NUC900: Add extern header file support for some driver
2010-01-04 16:58 ` Russell King - ARM Linux
@ 2010-01-05 2:26 ` 王强
2010-01-05 2:43 ` Wan ZongShun
0 siblings, 1 reply; 7+ messages in thread
From: 王强 @ 2010-01-05 2:26 UTC (permalink / raw)
To: linux-arm-kernel
2010/1/5 Russell King - ARM Linux <linux@arm.linux.org.uk>
> On Sat, Jan 02, 2010 at 11:44:45PM +0800, Wan ZongShun wrote:
> > Dear Wang Qiang,
> >
> > This patch provides a API for your LCD driver or other drivers, if you
> > want to use those APIs, please include corresponding header file.
> >
> > Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
> > ---
> > arch/arm/mach-w90x900/include/mach/clkdev.h | 3 +++
> > arch/arm/mach-w90x900/include/mach/mfp.h | 23
> +++++++++++++++++++++++
> > 2 files changed, 26 insertions(+), 0 deletions(-)
> > create mode 100644 arch/arm/mach-w90x900/include/mach/mfp.h
> >
> > diff --git a/arch/arm/mach-w90x900/include/mach/clkdev.h
> > b/arch/arm/mach-w90x900/include/mach/clkdev.h
> > index 04b37a8..b35f4bc 100644
> > --- a/arch/arm/mach-w90x900/include/mach/clkdev.h
> > +++ b/arch/arm/mach-w90x900/include/mach/clkdev.h
> > @@ -4,4 +4,7 @@
> > #define __clk_get(clk) ({ 1; })
> > #define __clk_put(clk) do { } while (0)
> >
> > +extern void nuc900_driver_clksrc_div(struct device *dev, unsigned char
> > *src,
> > + unsigned char
> divider);
> > +
>
> I'd prefer it if this header didn't get used for non-clkdev<->plat code
> stuff.
So, you mean I can use this header in the LCD driver of nuc900 plat?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100105/90efb3e7/attachment-0001.htm>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] NUC900: Add extern header file support for some driver
2010-01-05 2:26 ` 王强
@ 2010-01-05 2:43 ` Wan ZongShun
2010-01-05 3:02 ` Wang Qiang
0 siblings, 1 reply; 7+ messages in thread
From: Wan ZongShun @ 2010-01-05 2:43 UTC (permalink / raw)
To: linux-arm-kernel
2010/1/5 ?? <rurality.linux@gmail.com>:
>
>
> 2010/1/5 Russell King - ARM Linux <linux@arm.linux.org.uk>
>>
>> On Sat, Jan 02, 2010 at 11:44:45PM +0800, Wan ZongShun wrote:
>> > Dear Wang Qiang,
>> >
>> > This patch provides a API for your LCD driver or other drivers, if you
>> > want to use those APIs, please include corresponding header file.
>> >
>> > Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
>> > ---
>> > ?arch/arm/mach-w90x900/include/mach/clkdev.h | ? ?3 +++
>> > ?arch/arm/mach-w90x900/include/mach/mfp.h ? ?| ? 23
>> > +++++++++++++++++++++++
>> > ?2 files changed, 26 insertions(+), 0 deletions(-)
>> > ?create mode 100644 arch/arm/mach-w90x900/include/mach/mfp.h
>> >
>> > diff --git a/arch/arm/mach-w90x900/include/mach/clkdev.h
>> > b/arch/arm/mach-w90x900/include/mach/clkdev.h
>> > index 04b37a8..b35f4bc 100644
>> > --- a/arch/arm/mach-w90x900/include/mach/clkdev.h
>> > +++ b/arch/arm/mach-w90x900/include/mach/clkdev.h
>> > @@ -4,4 +4,7 @@
>> > ?#define __clk_get(clk) ({ 1; })
>> > ?#define __clk_put(clk) do { } while (0)
>> >
>> > +extern void nuc900_driver_clksrc_div(struct device *dev, unsigned char
>> > *src,
>> > + ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? unsigned char
>> > divider);
>> > +
>>
>> I'd prefer it if this header didn't get used for non-clkdev<->plat code
>> stuff.
>
> So, you mean I can use this header in the LCD driver of?nuc900 plat?
>
Hmmm, I don't think so.
I think it is better to implement other API as Ben Dooks mentioned,
but if you want to use
this API provided by me, we have to add the extern to other header
file rather than the specific clkdev header file.
So, please wait me for new patch.
--
*linux-arm-kernel mailing list
mail addr:linux-arm-kernel at lists.infradead.org
you can subscribe by:
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
* linux-arm-NUC900 mailing list
mail addr:NUC900 at googlegroups.com
main web: https://groups.google.com/group/NUC900
you can subscribe it by sending me mail:
mcuos.com at gmail.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH] NUC900: Add extern header file support for some driver
2010-01-05 2:43 ` Wan ZongShun
@ 2010-01-05 3:02 ` Wang Qiang
0 siblings, 0 replies; 7+ messages in thread
From: Wang Qiang @ 2010-01-05 3:02 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Jan 5, 2010 at 11:43 AM, Wan ZongShun <mcuos.com@gmail.com> wrote:
> 2010/1/5 ?? <rurality.linux@gmail.com>:
> >
> >
> > 2010/1/5 Russell King - ARM Linux <linux@arm.linux.org.uk>
> >>
> >> On Sat, Jan 02, 2010 at 11:44:45PM +0800, Wan ZongShun wrote:
> >> > Dear Wang Qiang,
> >> >
> >> > This patch provides a API for your LCD driver or other drivers, if you
> >> > want to use those APIs, please include corresponding header file.
> >> >
> >> > Signed-off-by: Wan ZongShun <mcuos.com@gmail.com>
> >> > ---
> >> > arch/arm/mach-w90x900/include/mach/clkdev.h | 3 +++
> >> > arch/arm/mach-w90x900/include/mach/mfp.h | 23
> >> > +++++++++++++++++++++++
> >> > 2 files changed, 26 insertions(+), 0 deletions(-)
> >> > create mode 100644 arch/arm/mach-w90x900/include/mach/mfp.h
> >> >
> >> > diff --git a/arch/arm/mach-w90x900/include/mach/clkdev.h
> >> > b/arch/arm/mach-w90x900/include/mach/clkdev.h
> >> > index 04b37a8..b35f4bc 100644
> >> > --- a/arch/arm/mach-w90x900/include/mach/clkdev.h
> >> > +++ b/arch/arm/mach-w90x900/include/mach/clkdev.h
> >> > @@ -4,4 +4,7 @@
> >> > #define __clk_get(clk) ({ 1; })
> >> > #define __clk_put(clk) do { } while (0)
> >> >
> >> > +extern void nuc900_driver_clksrc_div(struct device *dev, unsigned
> char
> >> > *src,
> >> > + unsigned char
> >> > divider);
> >> > +
> >>
> >> I'd prefer it if this header didn't get used for non-clkdev<->plat code
> >> stuff.
> >
> > So, you mean I can use this header in the LCD driver of nuc900 plat?
> >
>
> Hmmm, I don't think so.
>
> I think it is better to implement other API as Ben Dooks mentioned,
> but if you want to use
> this API provided by me, we have to add the extern to other header
> file rather than the specific clkdev header file.
>
> So, please wait me for new patch.
Ok, thank you.
I can not display the Linux Logo correctly.
I debug the kernel, it gave the wrong size of logo cols x rows = 40 x 15.
Any Idea?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20100105/d911113b/attachment-0001.htm>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-01-05 3:02 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-02 15:44 [PATCH] NUC900: Add extern header file support for some driver Wan ZongShun
[not found] ` <4B3F7EC3.7060707@ru.mvista.com>
2010-01-03 2:19 ` Wan ZongShun
2010-01-04 16:42 ` Ben Dooks
2010-01-04 16:58 ` Russell King - ARM Linux
2010-01-05 2:26 ` 王强
2010-01-05 2:43 ` Wan ZongShun
2010-01-05 3:02 ` Wang Qiang
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).