diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2009-07-20 22:55:14 +0000 |
---|---|---|
committer | Lars-Peter Clausen <lars@metafoo.de> | 2009-07-20 22:55:14 +0000 |
commit | 8353477e5ae8918070d5782bb78248a424d00149 (patch) | |
tree | 0f800e729b1d94d020e534eff39ec3ddeb29f710 /target/linux/s3c24xx/files-2.6.30/drivers/mfd/glamo/glamo-core.h | |
parent | f7bf9bee328db624802233ed87aa745154c7950a (diff) | |
download | master-187ad058-8353477e5ae8918070d5782bb78248a424d00149.tar.gz master-187ad058-8353477e5ae8918070d5782bb78248a424d00149.tar.bz2 master-187ad058-8353477e5ae8918070d5782bb78248a424d00149.zip |
[s3c24xx] glamo-mci: Cleanup mmc clock rate control.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16936 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/s3c24xx/files-2.6.30/drivers/mfd/glamo/glamo-core.h')
-rw-r--r-- | target/linux/s3c24xx/files-2.6.30/drivers/mfd/glamo/glamo-core.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/target/linux/s3c24xx/files-2.6.30/drivers/mfd/glamo/glamo-core.h b/target/linux/s3c24xx/files-2.6.30/drivers/mfd/glamo/glamo-core.h index 4675371025..f0c2ec3ee2 100644 --- a/target/linux/s3c24xx/files-2.6.30/drivers/mfd/glamo/glamo-core.h +++ b/target/linux/s3c24xx/files-2.6.30/drivers/mfd/glamo/glamo-core.h @@ -17,6 +17,11 @@ #define GLAMO_MMC_BUFFER_SIZE (64 * 1024) #define GLAMO_FB_SIZE (GLAMO_INTERNAL_RAM_SIZE - GLAMO_MMC_BUFFER_SIZE) +enum glamo_pll { + GLAMO_PLL1, + GLAMO_PLL2, +}; + struct glamo_core { int irq; int irq_works; /* 0 means PCB does not support Glamo IRQ */ @@ -38,8 +43,14 @@ struct glamo_script { u_int16_t val; }; +void glamo_engine_div_enable(struct glamo_core *glamo, enum glamo_engine engine); +void glamo_engine_div_disable(struct glamo_core *glamo, enum glamo_engine engine); + + +int glamo_pll_rate(struct glamo_core *glamo, enum glamo_pll pll); + int glamo_run_script(struct glamo_core *glamo, - struct glamo_script *script, int len, int may_sleep); + const struct glamo_script *script, int len, int may_sleep); int glamo_engine_enable(struct glamo_core *glamo, enum glamo_engine engine); int glamo_engine_disable(struct glamo_core *glamo, enum glamo_engine engine); |