mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-17 18:14:34 +08:00
Merge branch 'davinci-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-davinci into fixes
This commit is contained in:
commit
c0d61a7996
@ -132,7 +132,7 @@ out:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __init davinci_cpu_init(struct cpufreq_policy *policy)
|
static int davinci_cpu_init(struct cpufreq_policy *policy)
|
||||||
{
|
{
|
||||||
int result = 0;
|
int result = 0;
|
||||||
struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data;
|
struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data;
|
||||||
|
@ -480,8 +480,15 @@ static struct platform_device da850_mcasp_device = {
|
|||||||
.resource = da850_mcasp_resources,
|
.resource = da850_mcasp_resources,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct platform_device davinci_pcm_device = {
|
||||||
|
.name = "davinci-pcm-audio",
|
||||||
|
.id = -1,
|
||||||
|
};
|
||||||
|
|
||||||
void __init da8xx_register_mcasp(int id, struct snd_platform_data *pdata)
|
void __init da8xx_register_mcasp(int id, struct snd_platform_data *pdata)
|
||||||
{
|
{
|
||||||
|
platform_device_register(&davinci_pcm_device);
|
||||||
|
|
||||||
/* DA830/OMAP-L137 has 3 instances of McASP */
|
/* DA830/OMAP-L137 has 3 instances of McASP */
|
||||||
if (cpu_is_davinci_da830() && id == 1) {
|
if (cpu_is_davinci_da830() && id == 1) {
|
||||||
da830_mcasp1_device.dev.platform_data = pdata;
|
da830_mcasp1_device.dev.platform_data = pdata;
|
||||||
|
@ -58,7 +58,7 @@ static int tnetv107x_gpio_request(struct gpio_chip *chip, unsigned offset)
|
|||||||
|
|
||||||
spin_lock_irqsave(&ctlr->lock, flags);
|
spin_lock_irqsave(&ctlr->lock, flags);
|
||||||
|
|
||||||
gpio_reg_set_bit(®s->enable, gpio);
|
gpio_reg_set_bit(regs->enable, gpio);
|
||||||
|
|
||||||
spin_unlock_irqrestore(&ctlr->lock, flags);
|
spin_unlock_irqrestore(&ctlr->lock, flags);
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ static void tnetv107x_gpio_free(struct gpio_chip *chip, unsigned offset)
|
|||||||
|
|
||||||
spin_lock_irqsave(&ctlr->lock, flags);
|
spin_lock_irqsave(&ctlr->lock, flags);
|
||||||
|
|
||||||
gpio_reg_clear_bit(®s->enable, gpio);
|
gpio_reg_clear_bit(regs->enable, gpio);
|
||||||
|
|
||||||
spin_unlock_irqrestore(&ctlr->lock, flags);
|
spin_unlock_irqrestore(&ctlr->lock, flags);
|
||||||
}
|
}
|
||||||
@ -88,7 +88,7 @@ static int tnetv107x_gpio_dir_in(struct gpio_chip *chip, unsigned offset)
|
|||||||
|
|
||||||
spin_lock_irqsave(&ctlr->lock, flags);
|
spin_lock_irqsave(&ctlr->lock, flags);
|
||||||
|
|
||||||
gpio_reg_set_bit(®s->direction, gpio);
|
gpio_reg_set_bit(regs->direction, gpio);
|
||||||
|
|
||||||
spin_unlock_irqrestore(&ctlr->lock, flags);
|
spin_unlock_irqrestore(&ctlr->lock, flags);
|
||||||
|
|
||||||
@ -106,11 +106,11 @@ static int tnetv107x_gpio_dir_out(struct gpio_chip *chip,
|
|||||||
spin_lock_irqsave(&ctlr->lock, flags);
|
spin_lock_irqsave(&ctlr->lock, flags);
|
||||||
|
|
||||||
if (value)
|
if (value)
|
||||||
gpio_reg_set_bit(®s->data_out, gpio);
|
gpio_reg_set_bit(regs->data_out, gpio);
|
||||||
else
|
else
|
||||||
gpio_reg_clear_bit(®s->data_out, gpio);
|
gpio_reg_clear_bit(regs->data_out, gpio);
|
||||||
|
|
||||||
gpio_reg_clear_bit(®s->direction, gpio);
|
gpio_reg_clear_bit(regs->direction, gpio);
|
||||||
|
|
||||||
spin_unlock_irqrestore(&ctlr->lock, flags);
|
spin_unlock_irqrestore(&ctlr->lock, flags);
|
||||||
|
|
||||||
@ -124,7 +124,7 @@ static int tnetv107x_gpio_get(struct gpio_chip *chip, unsigned offset)
|
|||||||
unsigned gpio = chip->base + offset;
|
unsigned gpio = chip->base + offset;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
ret = gpio_reg_get_bit(®s->data_in, gpio);
|
ret = gpio_reg_get_bit(regs->data_in, gpio);
|
||||||
|
|
||||||
return ret ? 1 : 0;
|
return ret ? 1 : 0;
|
||||||
}
|
}
|
||||||
@ -140,9 +140,9 @@ static void tnetv107x_gpio_set(struct gpio_chip *chip,
|
|||||||
spin_lock_irqsave(&ctlr->lock, flags);
|
spin_lock_irqsave(&ctlr->lock, flags);
|
||||||
|
|
||||||
if (value)
|
if (value)
|
||||||
gpio_reg_set_bit(®s->data_out, gpio);
|
gpio_reg_set_bit(regs->data_out, gpio);
|
||||||
else
|
else
|
||||||
gpio_reg_clear_bit(®s->data_out, gpio);
|
gpio_reg_clear_bit(regs->data_out, gpio);
|
||||||
|
|
||||||
spin_unlock_irqrestore(&ctlr->lock, flags);
|
spin_unlock_irqrestore(&ctlr->lock, flags);
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#ifndef __MACH_CLKDEV_H
|
#ifndef __MACH_CLKDEV_H
|
||||||
#define __MACH_CLKDEV_H
|
#define __MACH_CLKDEV_H
|
||||||
|
|
||||||
|
struct clk;
|
||||||
|
|
||||||
static inline int __clk_get(struct clk *clk)
|
static inline int __clk_get(struct clk *clk)
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user