ts-7000
[Top] [All Lists]

[ts-7000] Re: kernel 2.6.27.4 for TS-72XX [take1]

To:
Subject: [ts-7000] Re: kernel 2.6.27.4 for TS-72XX [take1]
From: "greywolf9923" <>
Date: Mon, 17 Nov 2008 08:20:31 -0000
Hi Matt,

two comments:

1) discontigmem is deprecated. Now according to Russel King the new
approach is sparsemem. However now the kernel has a new define called
ARCH_HAS_FLATMEM_HOLES, it should be sufficient, so I think the
discontigmem stuff in your patch is not needed. You can check my
discussion on the arm mailing list.

2) About the led I think it should be sufficient to use the general
gpio led support and to do a declaration in the ts72xx.c of them, like
this:

static const struct gpio_led ts72xx_leds[] = {
        { .name = "green", .gpio = EP93XX_GPIO_LINE_GRLED, .active_low = 1,
.default_trigger = "heartbeat",
        },
        { .name = "red", .gpio = EP93XX_GPIO_LINE_RDLED, .active_low = 1, },
};

static const struct gpio_led_platform_data ts72xx_led_data = {
        .num_leds =     ARRAY_SIZE(ts72xx_leds),
        .leds =         (void *) ts72xx_leds,
};

static struct platform_device ngw_gpio_leds = {
        .name =         "leds-gpio",
        .id =           -1,
        .dev = {
                .platform_data = (void *) &ts72xx_led_data,
        }
};

Regards,

Marco

--- In  Matthieu Crapet <> wrote:
>
> Greetings,
> 
> Here is a kernel 2.6.27.4 patch (against mainline Linux kernel) for
TS-72xx.
> 
> Moved everything from my previous patch for 2.6.24.4 to this version.
> I wanted the new generic GPIO layer.
> 
> The file "linux-2.6.27.4-ts7200_matt-1.tar.gz" has been posted in the 
> yahoo group file area:
> http://tech.groups.yahoo.com/group/ts-7000/files
> 
> Either cumulative or single patches are available.
> 
> Comments are welcome.
> 
> Best regards,
> Matthieu
>



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU