lkml.org 
[lkml]   [2010]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [PATCH] Marvell OpenRD-Ultimate machine support
From
Date
On Tue, 2010-06-08 at 20:24 +0300, Dmytro Milinevskyy wrote:
> @@ -73,9 +81,14 @@ static void __init openrd_init(void)
>
> kirkwood_ehci_init();
>
> - kirkwood_ge00_init(&openrd_ge00_data);
> - if (machine_is_openrd_client())
> - kirkwood_ge01_init(&openrd_ge01_data);
> + if (machine_is_openrd_ultimate()) {
> + kirkwood_ge00_init(&openrd_ultimate_ge00_data);
> + kirkwood_ge01_init(&openrd_ultimate_ge01_data);
> + } else {
> + kirkwood_ge00_init(&openrd_ge00_data);
> + if (machine_is_openrd_client())
> + kirkwood_ge01_init(&openrd_ge01_data);
> + }

Perhaps some utility functions like:

if (kirkwood_has_multiple_ethernets())?

> @@ -84,7 +97,7 @@ static void __init openrd_init(void)
>
> static int __init openrd_pci_init(void)
> {
> - if (machine_is_openrd_base() || machine_is_openrd_client())
> + if (machine_is_openrd_base() || machine_is_openrd_client() || machine_is_openrd_ultimate())

if (kirkwood_has_pcie()?




\
 
 \ /
  Last update: 2010-06-08 19:41    [W:0.027 / U:8.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site