Date:2012-09-02 15:05:09 (8 years 2 months ago)
Author:Maarten ter Huurne
Commit:ad8f4827a586da14767e6926b85b8910427fbf1e
Message:MIPS: JZ4740: A320: Adapt to new PWM framework

Files: arch/mips/jz4740/board-a320.c (5 diffs)

Change Details

arch/mips/jz4740/board-a320.c
2626#include <linux/power/gpio-charger.h>
2727#include <linux/power/jz4740-battery.h>
2828
29#include <linux/pwm.h>
2930#include <linux/pwm_backlight.h>
3031#include <linux/input.h>
3132#include <linux/gpio_keys.h>
...... 
188189}
189190
190191static struct platform_pwm_backlight_data a320_backlight_pdata = {
191    .pwm_id = 7,
192192    .max_brightness = 255,
193193    .dft_brightness = 145,
194194    .pwm_period_ns = 1000000,
...... 
203203    },
204204};
205205
206struct pwm_lookup a320_pwm_table[] = {
207    PWM_LOOKUP("jz4740-pwm", 7, "pwm-backlight", 0),
208};
209
206210static struct jz4740_mmc_platform_data a320_mmc_pdata = {
207211    .gpio_card_detect = JZ_GPIO_PORTB(29),
208212    .gpio_read_only = -1,
...... 
373377    &jz4740_adc_device,
374378    &jz4740_wdt_device,
375379    &a320_charger_device,
380    &jz4740_pwm_device,
376381    &a320_backlight_device,
377382    &a320_gpio_keys_device,
378383    &a320_audio_device,
...... 
398403
399404    jz4740_serial_device_register();
400405
406    pwm_add_table(a320_pwm_table, ARRAY_SIZE(a320_pwm_table));
407
401408    return platform_add_devices(jz_platform_devices,
402409                    ARRAY_SIZE(jz_platform_devices));
403410}

Archive Download the corresponding diff file



interactive