* [PATCH 6/6] Blackfin I2C TWI driver: ADSP-BF52x arch/mach support
@ 2008-03-12 16:28 Bryan Wu
[not found] ` <1205479360-25240-7-git-send-email-cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Bryan Wu @ 2008-03-12 16:28 UTC (permalink / raw)
To: khali-PUYAD+kWke1g9hUCZPvPmw, i2c-GZX6beZjE8VD60Wz+7aTrA
Cc: Bryan Wu, Michael Hennerich
From: Michael Hennerich <michael.hennerich-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Michael Hennerich <michael.hennerich-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Bryan Wu <bryan.wu-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
Signed-off-by: Bryan Wu <cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
---
drivers/i2c/busses/Kconfig | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
index 476b0bb..a1351ce 100644
--- a/drivers/i2c/busses/Kconfig
+++ b/drivers/i2c/busses/Kconfig
@@ -100,10 +100,10 @@ config I2C_AU1550
config I2C_BLACKFIN_TWI
tristate "Blackfin TWI I2C support"
- depends on BF534 || BF536 || BF537 || BF54x
+ depends on BF534 || BF536 || BF537 || BF54x || BF522 || BF525 || BF527
help
- This is the TWI I2C device driver for Blackfin 534/536/537/54x.
- This driver can also be built as a module. If so, the module
+ This is the TWI I2C device driver for Blackfin 522/525/527/534/536/537/54x.
+ This driver can also be built as a module. If so, the module
will be called i2c-bfin-twi.
config I2C_BLACKFIN_TWI_CLK_KHZ
--
1.5.4.3
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 6/6] Blackfin I2C TWI driver: ADSP-BF52x arch/mach support
[not found] ` <1205479360-25240-7-git-send-email-cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
@ 2008-03-24 21:33 ` Jean Delvare
[not found] ` <20080324223310.7e3df49b-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Jean Delvare @ 2008-03-24 21:33 UTC (permalink / raw)
To: Bryan Wu; +Cc: i2c-GZX6beZjE8VD60Wz+7aTrA, Michael Hennerich
On Fri, 14 Mar 2008 00:22:40 -0700, Bryan Wu wrote:
> From: Michael Hennerich <michael.hennerich-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
>
> Signed-off-by: Michael Hennerich <michael.hennerich-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
> Signed-off-by: Bryan Wu <bryan.wu-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
> Signed-off-by: Bryan Wu <cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> ---
> drivers/i2c/busses/Kconfig | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
> index 476b0bb..a1351ce 100644
> --- a/drivers/i2c/busses/Kconfig
> +++ b/drivers/i2c/busses/Kconfig
> @@ -100,10 +100,10 @@ config I2C_AU1550
>
> config I2C_BLACKFIN_TWI
> tristate "Blackfin TWI I2C support"
> - depends on BF534 || BF536 || BF537 || BF54x
> + depends on BF534 || BF536 || BF537 || BF54x || BF522 || BF525 || BF527
> help
> - This is the TWI I2C device driver for Blackfin 534/536/537/54x.
> - This driver can also be built as a module. If so, the module
> + This is the TWI I2C device driver for Blackfin 522/525/527/534/536/537/54x.
> + This driver can also be built as a module. If so, the module
> will be called i2c-bfin-twi.
Now that the i2c-bfin-twi driver no longer requires special defines in
the arch/mach header files, wouldn't it be more simple to just make it
depend on BLACKFIN? Otherwise we'll have to update the "depends on"
statement over and over again with every new machine.
--
Jean Delvare
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 6/6] Blackfin I2C TWI driver: ADSP-BF52x arch/mach support
[not found] ` <20080324223310.7e3df49b-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
@ 2008-03-25 3:55 ` Bryan Wu
[not found] ` <386072610803242055h648bc250sa27f7193044f18d5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Bryan Wu @ 2008-03-25 3:55 UTC (permalink / raw)
To: Jean Delvare; +Cc: i2c-GZX6beZjE8VD60Wz+7aTrA, Michael Hennerich
On Tue, Mar 25, 2008 at 5:33 AM, Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org> wrote:
>
> On Fri, 14 Mar 2008 00:22:40 -0700, Bryan Wu wrote:
> > From: Michael Hennerich <michael.hennerich-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
> >
> > Signed-off-by: Michael Hennerich <michael.hennerich-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
> > Signed-off-by: Bryan Wu <bryan.wu-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
> > Signed-off-by: Bryan Wu <cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> > ---
> > drivers/i2c/busses/Kconfig | 6 +++---
> > 1 files changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
> > index 476b0bb..a1351ce 100644
> > --- a/drivers/i2c/busses/Kconfig
> > +++ b/drivers/i2c/busses/Kconfig
> > @@ -100,10 +100,10 @@ config I2C_AU1550
> >
> > config I2C_BLACKFIN_TWI
> > tristate "Blackfin TWI I2C support"
> > - depends on BF534 || BF536 || BF537 || BF54x
> > + depends on BF534 || BF536 || BF537 || BF54x || BF522 || BF525 || BF527
> > help
> > - This is the TWI I2C device driver for Blackfin 534/536/537/54x.
> > - This driver can also be built as a module. If so, the module
> > + This is the TWI I2C device driver for Blackfin 522/525/527/534/536/537/54x.
> > + This driver can also be built as a module. If so, the module
> > will be called i2c-bfin-twi.
>
> Now that the i2c-bfin-twi driver no longer requires special defines in
> the arch/mach header files, wouldn't it be more simple to just make it
> depend on BLACKFIN? Otherwise we'll have to update the "depends on"
> statement over and over again with every new machine.
>
Unfortunately, 2 important Blackfin processor family BF533 and BF561
do not integrate on-chip i2c twi controller.
They can use this driver. I plan to define HAVE_BFIN_I2C_TWI in each
Blackfin family, then Blackfin I2C TWI driver just "depends on
BLACKFIN && HAVE_BFIN_I2C_TWI". We don't change this configuration
again when new machine born.
Thanks
-Bryan
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 6/6] Blackfin I2C TWI driver: ADSP-BF52x arch/mach support
[not found] ` <386072610803242055h648bc250sa27f7193044f18d5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2008-03-25 14:17 ` Jean Delvare
0 siblings, 0 replies; 4+ messages in thread
From: Jean Delvare @ 2008-03-25 14:17 UTC (permalink / raw)
To: Bryan Wu; +Cc: i2c-GZX6beZjE8VD60Wz+7aTrA, Michael Hennerich
On Tue, 25 Mar 2008 11:55:14 +0800, Bryan Wu wrote:
> On Tue, Mar 25, 2008 at 5:33 AM, Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org> wrote:
> >
> > On Fri, 14 Mar 2008 00:22:40 -0700, Bryan Wu wrote:
> > > From: Michael Hennerich <michael.hennerich-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
> > >
> > > Signed-off-by: Michael Hennerich <michael.hennerich-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
> > > Signed-off-by: Bryan Wu <bryan.wu-OyLXuOCK7orQT0dZR+AlfA@public.gmane.org>
> > > Signed-off-by: Bryan Wu <cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
> > > ---
> > > drivers/i2c/busses/Kconfig | 6 +++---
> > > 1 files changed, 3 insertions(+), 3 deletions(-)
> > >
> > > diff --git a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
> > > index 476b0bb..a1351ce 100644
> > > --- a/drivers/i2c/busses/Kconfig
> > > +++ b/drivers/i2c/busses/Kconfig
> > > @@ -100,10 +100,10 @@ config I2C_AU1550
> > >
> > > config I2C_BLACKFIN_TWI
> > > tristate "Blackfin TWI I2C support"
> > > - depends on BF534 || BF536 || BF537 || BF54x
> > > + depends on BF534 || BF536 || BF537 || BF54x || BF522 || BF525 || BF527
> > > help
> > > - This is the TWI I2C device driver for Blackfin 534/536/537/54x.
> > > - This driver can also be built as a module. If so, the module
> > > + This is the TWI I2C device driver for Blackfin 522/525/527/534/536/537/54x.
> > > + This driver can also be built as a module. If so, the module
> > > will be called i2c-bfin-twi.
> >
> > Now that the i2c-bfin-twi driver no longer requires special defines in
> > the arch/mach header files, wouldn't it be more simple to just make it
> > depend on BLACKFIN? Otherwise we'll have to update the "depends on"
> > statement over and over again with every new machine.
> >
>
> Unfortunately, 2 important Blackfin processor family BF533 and BF561
> do not integrate on-chip i2c twi controller.
> They can use this driver. I plan to define HAVE_BFIN_I2C_TWI in each
I guess you meant "they can NOT use this driver"?
> Blackfin family, then Blackfin I2C TWI driver just "depends on
> BLACKFIN && HAVE_BFIN_I2C_TWI". We don't change this configuration
> again when new machine born.
Well, there's nothing wrong with letting people build this driver even
if the platform doesn't have any supported device. As long as it
doesn't cause a build failure, it's alright. So you could simply use
"depends on BLACKFIN" (which is technically correct) and just document
which machines have the device (as you already did).
But if you prefer to introduce HAVE_BFIN_I2C_TWI, that's fine with me,
it's really as you prefer.
Out of curiosity, isn't it possible to build a single kernel that would
support more than just one Blackfin machine? I wonder if this is
something people could be interested in - I have seen such requirements
for other platforms already.
--
Jean Delvare
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-25 14:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-12 16:28 [PATCH 6/6] Blackfin I2C TWI driver: ADSP-BF52x arch/mach support Bryan Wu
[not found] ` <1205479360-25240-7-git-send-email-cooloney-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2008-03-24 21:33 ` Jean Delvare
[not found] ` <20080324223310.7e3df49b-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-03-25 3:55 ` Bryan Wu
[not found] ` <386072610803242055h648bc250sa27f7193044f18d5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-03-25 14:17 ` Jean Delvare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox