-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 123903 b: refs/heads/master c: 56c035c h: refs/heads/master i: 123901: e26b28f 123899: 6db1056 123895: 3500c4e 123887: 1213f13 123871: f9ded02 123839: a4e4aec 123775: 5d9459e 123647: 7f95134 123391: e86c2c0 122879: b3224e7 v: v3
- Loading branch information
Ben Dooks
committed
Dec 18, 2008
1 parent
f0baa16
commit 85b7539
Showing
31 changed files
with
794 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 438a5d42e052ec6126c5f1e24763b711210db33e | ||
refs/heads/master: 56c035c9ce1f1850969778af6a4cc0b99089b6c8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -767,5 +767,6 @@ int __init s3c2412_baseclk_add(void) | |
s3c2412_clkcon_enable(clkp, 0); | ||
} | ||
|
||
s3c_pwmclk_init(); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1107,4 +1107,6 @@ void __init s3c2443_init_clocks(int xtal) | |
|
||
(clkp->enable)(clkp, 0); | ||
} | ||
|
||
s3c_pwmclk_init(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/* linux/arch/arm/mach-s3c6400/include/mach/pwm-clock.h | ||
* | ||
* Copyright 2008 Openmoko, Inc. | ||
* Copyright 2008 Simtec Electronics | ||
* Ben Dooks <ben@simtec.co.uk> | ||
* http://armlinux.simtec.co.uk/ | ||
* | ||
* S3C64xx - pwm clock and timer support | ||
*/ | ||
|
||
/** | ||
* pwm_cfg_src_is_tclk() - return whether the given mux config is a tclk | ||
* @tcfg: The timer TCFG1 register bits shifted down to 0. | ||
* | ||
* Return true if the given configuration from TCFG1 is a TCLK instead | ||
* any of the TDIV clocks. | ||
*/ | ||
static inline int pwm_cfg_src_is_tclk(unsigned long tcfg) | ||
{ | ||
return tcfg >= S3C64XX_TCFG1_MUX_TCLK; | ||
} | ||
|
||
/** | ||
* tcfg_to_divisor() - convert tcfg1 setting to a divisor | ||
* @tcfg1: The tcfg1 setting, shifted down. | ||
* | ||
* Get the divisor value for the given tcfg1 setting. We assume the | ||
* caller has already checked to see if this is not a TCLK source. | ||
*/ | ||
static inline unsigned long tcfg_to_divisor(unsigned long tcfg1) | ||
{ | ||
return 1 << tcfg1; | ||
} | ||
|
||
/** | ||
* pwm_tdiv_has_div1() - does the tdiv setting have a /1 | ||
* | ||
* Return true if we have a /1 in the tdiv setting. | ||
*/ | ||
static inline unsigned int pwm_tdiv_has_div1(void) | ||
{ | ||
return 1; | ||
} | ||
|
||
/** | ||
* pwm_tdiv_div_bits() - calculate TCFG1 divisor value. | ||
* @div: The divisor to calculate the bit information for. | ||
* | ||
* Turn a divisor into the necessary bit field for TCFG1. | ||
*/ | ||
static inline unsigned long pwm_tdiv_div_bits(unsigned int div) | ||
{ | ||
return ilog2(div); | ||
} | ||
|
||
#define S3C_TCFG1_MUX_TCLK S3C64XX_TCFG1_MUX_TCLK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* arch/arm/plat-s3c/include/plat/adc.h | ||
* | ||
* Copyright (c) 2008 Simtec Electronics | ||
* http://armlinux.simnte.co.uk/ | ||
* Ben Dooks <ben@simtec.co.uk> | ||
* | ||
* S3C24XX ADC driver information | ||
* | ||
* 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 __ASM_PLAT_ADC_H | ||
#define __ASM_PLAT_ADC_H __FILE__ | ||
|
||
struct s3c_adc_client; | ||
|
||
extern int s3c_adc_start(struct s3c_adc_client *client, | ||
unsigned int channel, unsigned int nr_samples); | ||
|
||
extern struct s3c_adc_client *s3c_adc_register(struct platform_device *pdev, | ||
void (*select)(unsigned selected), | ||
void (*conv)(unsigned d0, unsigned d1), | ||
unsigned int is_ts); | ||
|
||
extern void s3c_adc_release(struct s3c_adc_client *client); | ||
|
||
#endif /* __ASM_PLAT_ADC_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.