Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100899
b: refs/heads/master
c: 1a189b9
h: refs/heads/master
i:
  100897: 5a67146
  100895: 9316dde
v: v3
  • Loading branch information
Russell King authored and Russell King committed May 19, 2008
1 parent 1ed2dfd commit d8ca343
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 80 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bdb08cb2d3491d441dd403dfb88d90ba90fb7232
refs/heads/master: 1a189b97190d3f0f8cf0379a799d3555b2d648bb
3 changes: 3 additions & 0 deletions trunk/arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ config ARM
Europe. There is an ARM Linux project with a web page at
<http://www.arm.linux.org.uk/>.

config HAVE_PWM
bool

config SYS_SUPPORTS_APM_EMULATION
bool

Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/arm/mach-pxa/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,6 @@ struct clk *clk_get(struct device *dev, const char *id)
clk = p;
mutex_unlock(&clocks_mutex);

if (!IS_ERR(clk) && clk->ops == NULL)
clk = clk->other;

return clk;
}
EXPORT_SYMBOL(clk_get);
Expand Down
12 changes: 0 additions & 12 deletions trunk/arch/arm/mach-pxa/clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ struct clk {
unsigned int cken;
unsigned int delay;
unsigned int enabled;
struct clk *other;
};

#define INIT_CKEN(_name, _cken, _rate, _delay, _dev) \
Expand All @@ -36,17 +35,6 @@ struct clk {
.cken = CKEN_##_cken, \
}

/*
* This is a placeholder to alias one clock device+name pair
* to another struct clk.
*/
#define INIT_CKOTHER(_name, _other, _dev) \
{ \
.name = _name, \
.dev = _dev, \
.other = _other, \
}

extern const struct clkops clk_cken_ops;

void clk_cken_enable(struct clk *clk);
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-pxa/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <asm/irq.h>
#include <asm/mach/irq.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/pxa2xx-gpio.h>

#include "generic.h"

Expand Down
8 changes: 0 additions & 8 deletions trunk/arch/arm/mach-pxa/pxa25x.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,6 @@ static struct clk pxa25x_hwuart_clk =
INIT_CKEN("UARTCLK", HWUART, 14745600, 1, &pxa_device_hwuart.dev)
;

/*
* PXA 2xx clock declarations. Order is important (see aliases below)
* Please be careful not to disrupt the ordering.
*/
static struct clk pxa25x_clks[] = {
INIT_CK("LCDCLK", LCD, &clk_pxa25x_lcd_ops, &pxa_device_fb.dev),
INIT_CKEN("UARTCLK", FFUART, 14745600, 1, &pxa_device_ffuart.dev),
Expand All @@ -144,8 +140,6 @@ static struct clk pxa25x_clks[] = {
INIT_CKEN("FICPCLK", FICP, 47923000, 0, NULL),
};

static struct clk gpio7_clk = INIT_CKOTHER("GPIO7_CK", &pxa25x_clks[4], NULL);

#ifdef CONFIG_PM

#define SAVE(x) sleep_save[SLEEP_SAVE_##x] = x
Expand Down Expand Up @@ -317,8 +311,6 @@ static int __init pxa25x_init(void)
if (cpu_is_pxa25x())
ret = platform_device_register(&pxa_device_hwuart);

clks_register(&gpio7_clk, 1);

return ret;
}

Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/i2c/busses/i2c-pxa.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
#include <asm/io.h>
#include <asm/arch/i2c.h>
#include <asm/arch/pxa-regs.h>
#include <asm/arch/pxa2xx-gpio.h>

struct pxa_i2c {
spinlock_t lock;
Expand Down
44 changes: 0 additions & 44 deletions trunk/drivers/video/pxafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1777,49 +1777,11 @@ static int __init pxafb_probe(struct platform_device *dev)
return ret;
}

static int __devexit pxafb_remove(struct platform_device *dev)
{
struct pxafb_info *fbi = platform_get_drvdata(dev);
struct resource *r;
int irq;
struct fb_info *info;

if (!fbi)
return 0;

info = &fbi->fb;

unregister_framebuffer(info);

pxafb_disable_controller(fbi);

if (fbi->fb.cmap.len)
fb_dealloc_cmap(&fbi->fb.cmap);

irq = platform_get_irq(dev, 0);
free_irq(irq, fbi);

dma_free_writecombine(&dev->dev, fbi->map_size,
fbi->map_cpu, fbi->map_dma);

iounmap(fbi->mmio_base);

r = platform_get_resource(dev, IORESOURCE_MEM, 0);
release_mem_region(r->start, r->end - r->start + 1);

clk_put(fbi->clk);
kfree(fbi);

return 0;
}

static struct platform_driver pxafb_driver = {
.probe = pxafb_probe,
.remove = pxafb_remove,
.suspend = pxafb_suspend,
.resume = pxafb_resume,
.driver = {
.owner = THIS_MODULE,
.name = "pxa2xx-fb",
},
};
Expand All @@ -1832,13 +1794,7 @@ static int __devinit pxafb_init(void)
return platform_driver_register(&pxafb_driver);
}

static void __exit pxafb_exit(void)
{
platform_driver_unregister(&pxafb_driver);
}

module_init(pxafb_init);
module_exit(pxafb_exit);

MODULE_DESCRIPTION("loadable framebuffer driver for PXA");
MODULE_LICENSE("GPL");
2 changes: 0 additions & 2 deletions trunk/include/asm-arm/arch-pxa/pxa2xx-gpio.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef __ASM_ARCH_PXA2XX_GPIO_H
#define __ASM_ARCH_PXA2XX_GPIO_H

#warning Please use mfp-pxa2[57]x.h instead of pxa2xx-gpio.h

/* GPIO alternate function assignments */

#define GPIO1_RST 1 /* reset */
Expand Down
31 changes: 31 additions & 0 deletions trunk/include/linux/pwm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#ifndef __LINUX_PWM_H
#define __LINUX_PWM_H

struct pwm_device;

/*
* pwm_request - request a PWM device
*/
struct pwm_device *pwm_request(int pwm_id, const char *label);

/*
* pwm_free - free a PWM device
*/
void pwm_free(struct pwm_device *pwm);

/*
* pwm_config - change a PWM device configuration
*/
int pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns);

/*
* pwm_enable - start a PWM output toggling
*/
int pwm_enable(struct pwm_device *pwm);

/*
* pwm_disable - stop a PWM output toggling
*/
void pwm_disable(struct pwm_device *pwm);

#endif /* __ASM_ARCH_PWM_H */
12 changes: 2 additions & 10 deletions trunk/sound/soc/pxa/pxa2xx-i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include <linux/module.h>
#include <linux/device.h>
#include <linux/delay.h>
#include <linux/clk.h>
#include <sound/core.h>
#include <sound/pcm.h>
#include <sound/initval.h>
Expand All @@ -41,7 +40,6 @@ struct pxa_i2s_port {
u32 fmt;
};
static struct pxa_i2s_port pxa_i2s;
static struct clk *clk_i2s;

static struct pxa2xx_pcm_dma_params pxa2xx_i2s_pcm_stereo_out = {
.name = "I2S PCM Stereo out",
Expand Down Expand Up @@ -84,10 +82,6 @@ static int pxa2xx_i2s_startup(struct snd_pcm_substream *substream)
struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct snd_soc_cpu_dai *cpu_dai = rtd->dai->cpu_dai;

clk_i2s = clk_get(NULL, "I2SCLK");
if (IS_ERR(clk_i2s))
return PTR_ERR(clk_i2s);

if (!cpu_dai->active) {
SACR0 |= SACR0_RST;
SACR0 = 0;
Expand Down Expand Up @@ -155,7 +149,7 @@ static int pxa2xx_i2s_hw_params(struct snd_pcm_substream *substream,
pxa_gpio_mode(gpio_bus[pxa_i2s.master].tx);
pxa_gpio_mode(gpio_bus[pxa_i2s.master].frm);
pxa_gpio_mode(gpio_bus[pxa_i2s.master].clk);
clk_enable(clk_i2s);
pxa_set_cken(CKEN_I2S, 1);
pxa_i2s_wait();

if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
Expand Down Expand Up @@ -240,10 +234,8 @@ static void pxa2xx_i2s_shutdown(struct snd_pcm_substream *substream)
if (SACR1 & (SACR1_DREC | SACR1_DRPL)) {
SACR0 &= ~SACR0_ENB;
pxa_i2s_wait();
clk_disable(clk_i2s);
pxa_set_cken(CKEN_I2S, 0);
}

clk_put(clk_i2s);
}

#ifdef CONFIG_PM
Expand Down

0 comments on commit d8ca343

Please sign in to comment.