Subject: Re: port-arm/34684 (OMAP patch 5/5: OSK5912 board support)
To: None <christos@NetBSD.org, gnats-admin@netbsd.org,>
From: Bucky Katz <bucky@picovex.com>
List: netbsd-bugs
Date: 01/06/2007 05:05:04
The following reply was made to PR port-arm/34684; it has been noted by GNATS.
From: Bucky Katz <bucky@picovex.com>
To: gnats-bugs@NetBSD.org
Cc: christos@NetBSD.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org, Bucky Katz <bucky@picovex.com>
Subject: Re: port-arm/34684 (OMAP patch 5/5: OSK5912 board support)
Date: Fri, 05 Jan 2007 20:27:48 -0800
--=-=-=
christos@zoulas.com (Christos Zoulas) writes:
> The following reply was made to PR port-arm/34684; it has been noted by GNATS.
>
> From: christos@zoulas.com (Christos Zoulas)
> To: gnats-bugs@NetBSD.org, gnats-admin@netbsd.org,
> netbsd-bugs@netbsd.org, Bucky Katz <bucky@picovex.com>
> Cc:
> Subject: Re: port-arm/34684 (OMAP patch 5/5: OSK5912 board support)
> Date: Fri, 5 Jan 2007 23:13:01 -0500
>
> On Jan 6, 3:55am, bucky@picovex.com (Bucky Katz) wrote:
> -- Subject: Re: port-arm/34684 (OMAP patch 5/5: OSK5912 board support)
>
> | It's not part of that patch and it needs to be applied because it
> | contains the board support for the OSK591 machdep as well as the conf
> | files for that board.
>
> Bucky, can you please cvs update and send me an updated patch? I tried
> to apply patch 5 and it seems to have reversed another patch you send us.
>
> chridtos
>
Here's a patch that upgrades the omap gpio code to where we currently are.
--=-=-=
Content-Type: application/octet-stream
Content-Disposition: attachment; filename=patch.gpios
Content-Transfer-Encoding: base64
Content-Description: Upgrading omap gpio
c3JjL3N5cy9hcmNoL2FybS9vbWFwL29tYXBfZ3Bpby5jCi0tLSAuLi9jdnMvc3JjL3N5cy9hcmNo
L2FybS9vbWFwL29tYXBfZ3Bpby5jCTIwMDctMDEtMDUgMTY6NTg6MDQuMDAwMDAwMDAwIC0wODAw
CisrKyBzcmMvc3lzL2FyY2gvYXJtL29tYXA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