All of lore.kernel.org
 help / color / mirror / Atom feed
From: nils.faerber@kernelconcepts.de (Nils Faerber)
To: linux-arm-kernel@lists.infradead.org
Subject: New Kirkwood board support
Date: Thu, 28 Oct 2010 21:33:13 +0200	[thread overview]
Message-ID: <4CC9CFF9.3070808@kernelconcepts.de> (raw)
In-Reply-To: <20101028190133.GC31158@pengutronix.de>

Am 28.10.2010 21:01, schrieb Uwe Kleine-K?nig:
> On Thu, Oct 28, 2010 at 08:34:45PM +0200, Nils Faerber wrote:
>>  arch/arm/configs/tk71_defconfig     | 1700 +++++++++++++++++++++++++++++++++++
> I'm sure we're not taking new defconfigs now.  Can you add your machine
> to an existing defconfig?  Moreover it's not reduced.  You need to do at

Hmm... I have to look at the others. Probably a good idea.

> least:
> 	make tk71_defconfig
> 	make savedefconfig
> 	mv defconfig arch/arm/configs/tk71_defconfig

OK, thanks, will check that out!

>> +	/* eth1 */
>> +	if (gpio_request(28, "PHY2 reset") != 0 ||
>> +		gpio_direction_input(28) != 0) // high-z
> I don't know if it's usually in mach-kirkwood to write it this way, but
> I think it can be done in a more readable way.

Most importantly I juts saw a remaining "//" comment - oops!

But how more readable should I do that? The pin is assigned to the gpio
system (which is IMHO a good idea) and those line should make it high
impedance. This has nothing much to do with kirkwood I think.

>> +		printk(KERN_ERR "can't deassert GPIO 28 (PHY2 reset)\n");
> pr_err maybe?

Well - sure, could take that too, OK.

>> +MACHINE_START(TK71, "TK71 Kirkwood based Q7 formfactor board")
>> +	/* Maintainer: Nils Faerber <nils.faerber@kernelconcepts.de> */
>> +	.phys_io	= KIRKWOOD_REGS_PHYS_BASE,
>> +	.io_pg_offst	= ((KIRKWOOD_REGS_VIRT_BASE) >> 18) & 0xfffc,
> These fields don't exist anymore.

Oh really? Which more exactly? I miss to see the difference with other
boards in the mach-kirkwood/ subdir.

Thanks for the hints!

> Best regards
> Uwe
Cheers
  nils

-- 
kernel concepts GbR      Tel: +49-271-771091-12
Sieghuetter Hauptweg 48  Fax: +49-271-771091-19
D-57072 Siegen           Mob: +49-176-21024535
http://www.kernelconcepts.de

  reply	other threads:[~2010-10-28 19:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-28 18:34 New Kirkwood board support Nils Faerber
2010-10-28 19:01 ` Uwe Kleine-König
2010-10-28 19:33   ` Nils Faerber [this message]
2010-10-28 19:50     ` Uwe Kleine-König
2010-10-28 19:36   ` Nils Faerber
2010-10-28 19:43     ` Russell King - ARM Linux
2010-10-28 19:56       ` Nils Faerber

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=4CC9CFF9.3070808@kernelconcepts.de \
    --to=nils.faerber@kernelconcepts.de \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.