Skip to content
Snippets Groups Projects
Select Git revision
  • ac1f7c159996e98779d36c9ad0989e3b6ef540ab
  • master default protected
  • android-msm-bullhead-3.10-nougat_kgdb_less_changes
  • android-msm-bullhead-3.10-nougat_kgdb
  • android-msm-bullhead-3.10-nougat_klist
  • android-4.4
  • android-msm-vega-4.4-oreo-daydream
  • android-msm-wahoo-4.4-p-preview-5
  • android-msm-wahoo-4.4-pie
  • android-msm-marlin-3.18-p-preview-5
  • android-msm-marlin-3.18-pie
  • android-msm-wahoo-2018.07-oreo-m2
  • android-msm-wahoo-2018.07-oreo-m4
  • android-msm-wahoo-4.4-p-preview-4
  • android-msm-bullhead-3.10-oreo-m6
  • android-msm-angler-3.10-oreo-m6
  • android-msm-marlin-3.18-p-preview-4
  • android-msm-stargazer-3.18-oreo-wear-dr
  • android-msm-catshark-3.18-oreo-wear-dr
  • android-msm-wahoo-4.4-oreo-m2
  • android-msm-wahoo-4.4-oreo-m4
  • android-daydreamos-8.0.0_r0.5
  • android-8.1.0_r0.92
  • android-8.1.0_r0.91
  • android-daydreamos-8.0.0_r0.4
  • android-p-preview-5_r0.2
  • android-p-preview-5_r0.1
  • android-9.0.0_r0.5
  • android-9.0.0_r0.4
  • android-9.0.0_r0.2
  • android-9.0.0_r0.1
  • android-8.1.0_r0.81
  • android-8.1.0_r0.80
  • android-8.1.0_r0.78
  • android-8.1.0_r0.76
  • android-8.1.0_r0.75
  • android-8.1.0_r0.72
  • android-8.1.0_r0.70
  • android-p-preview-4_r0.2
  • android-p-preview-4_r0.1
  • android-wear-8.0.0_r0.30
41 results

atmel-pwm-bl.h

Blame
  • atmel-pwm-bl.h 1.51 KiB
    /*
     * Copyright (C) 2007 Atmel Corporation
     *
     * Driver for the AT32AP700X PS/2 controller (PSIF).
     *
     * This program is free software; you can redistribute it and/or modify it
     * under the terms of the GNU General Public License version 2 as published
     * by the Free Software Foundation.
     */
    
    #ifndef __INCLUDE_ATMEL_PWM_BL_H
    #define __INCLUDE_ATMEL_PWM_BL_H
    
    /**
     * struct atmel_pwm_bl_platform_data
     * @pwm_channel: which PWM channel in the PWM module to use.
     * @pwm_frequency: PWM frequency to generate, the driver will try to be as
     *	close as the prescaler allows.
     * @pwm_compare_max: value to use in the PWM channel compare register.
     * @pwm_duty_max: maximum duty cycle value, must be less than or equal to
     *	pwm_compare_max.
     * @pwm_duty_min: minimum duty cycle value, must be less than pwm_duty_max.
     * @pwm_active_low: set to one if the low part of the PWM signal increases the
     *	brightness of the backlight.
     * @gpio_on: GPIO line to control the backlight on/off, set to -1 if not used.
     * @on_active_low: set to one if the on/off signal is on when GPIO is low.
     *
     * This struct must be added to the platform device in the board code. It is
     * used by the atmel-pwm-bl driver to setup the GPIO to control on/off and the
     * PWM device.
     */
    struct atmel_pwm_bl_platform_data {
    	unsigned int pwm_channel;
    	unsigned int pwm_frequency;
    	unsigned int pwm_compare_max;
    	unsigned int pwm_duty_max;
    	unsigned int pwm_duty_min;
    	unsigned int pwm_active_low;
    	int gpio_on;
    	unsigned int on_active_low;
    };
    
    #endif /* __INCLUDE_ATMEL_PWM_BL_H */