projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SMDK5250: Remove reduntant code
[oweals/u-boot.git]
/
board
/
gen860t
/
beeper.c
diff --git
a/board/gen860t/beeper.c
b/board/gen860t/beeper.c
index b4c2c89885ba39a13a5944ccee032562b8530fc5..c6be83f651dcc453820cb4ae62505083863e81e6 100644
(file)
--- a/
board/gen860t/beeper.c
+++ b/
board/gen860t/beeper.c
@@
-36,14
+36,14
@@
/*
* Initialize beeper-related hardware. Initialize timer 1 for use with
/*
* Initialize beeper-related hardware. Initialize timer 1 for use with
- * the beeper. Use 66 M
h
z internal clock with prescale of 33 to get
+ * the beeper. Use 66 M
H
z internal clock with prescale of 33 to get
* 1 uS period per count.
* FIXME: we should really compute the prescale based on the reported
* core clock frequency.
*/
void init_beeper (void)
{
* 1 uS period per count.
* FIXME: we should really compute the prescale based on the reported
* core clock frequency.
*/
void init_beeper (void)
{
- volatile immap_t *immap = (immap_t *) C
FG
_IMMR;
+ volatile immap_t *immap = (immap_t *) C
ONFIG_SYS
_IMMR;
immap->im_cpmtimer.cpmt_tgcr &= ~TGCR_RST1 | TGCR_STP1;
immap->im_cpmtimer.cpmt_tmr1 = ((33 << TMR_PS_SHIFT) & TMR_PS_MSK)
immap->im_cpmtimer.cpmt_tgcr &= ~TGCR_RST1 | TGCR_STP1;
immap->im_cpmtimer.cpmt_tmr1 = ((33 << TMR_PS_SHIFT) & TMR_PS_MSK)
@@
-62,7
+62,7
@@
void set_beeper_frequency (uint frequency)
{
#define FREQ_LIMIT 2500
{
#define FREQ_LIMIT 2500
- volatile immap_t *immap = (immap_t *) C
FG
_IMMR;
+ volatile immap_t *immap = (immap_t *) C
ONFIG_SYS
_IMMR;
/*
* Compute timer ticks given desired frequency. The timer is set up
/*
* Compute timer ticks given desired frequency. The timer is set up
@@
-79,7
+79,7
@@
void set_beeper_frequency (uint frequency)
*/
void beeper_on (void)
{
*/
void beeper_on (void)
{
- volatile immap_t *immap = (immap_t *) C
FG
_IMMR;
+ volatile immap_t *immap = (immap_t *) C
ONFIG_SYS
_IMMR;
immap->im_cpmtimer.cpmt_tgcr &= ~TGCR_STP1;
}
immap->im_cpmtimer.cpmt_tgcr &= ~TGCR_STP1;
}
@@
-89,7
+89,7
@@
void beeper_on (void)
*/
void beeper_off (void)
{
*/
void beeper_off (void)
{
- volatile immap_t *immap = (immap_t *) C
FG
_IMMR;
+ volatile immap_t *immap = (immap_t *) C
ONFIG_SYS
_IMMR;
immap->im_cpmtimer.cpmt_tgcr |= TGCR_STP1;
}
immap->im_cpmtimer.cpmt_tgcr |= TGCR_STP1;
}
@@
-104,7
+104,7
@@
void beeper_off (void)
*/
void set_beeper_volume (int steps)
{
*/
void set_beeper_volume (int steps)
{
- volatile immap_t *immap = (immap_t *) C
FG
_IMMR;
+ volatile immap_t *immap = (immap_t *) C
ONFIG_SYS
_IMMR;
int i;
if (steps >= 0) {
int i;
if (steps >= 0) {