diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2009-07-12 19:36:27 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2009-07-12 19:36:27 +0000 |
commit | 92fed35da6541a72ff6c7d09b33db059e6f6dadf (patch) | |
tree | 941bc244eff42cb1339cc8c27050ad53b65275cf | |
parent | c133c6a964133200c59b12e1f1c9214f37122189 (diff) | |
download | rockbox-92fed35da6541a72ff6c7d09b33db059e6f6dadf.tar.gz rockbox-92fed35da6541a72ff6c7d09b33db059e6f6dadf.zip |
S5L8700/Meizu: miscellaneous minor fixes, stubs added, keywords set
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21820 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/export/s5l8700.h | 36 | ||||
-rw-r--r-- | firmware/target/arm/s5l8700/ata-nand-s5l8700.c | 23 | ||||
-rw-r--r-- | firmware/target/arm/s5l8700/fmradio-i2c-meizu.c | 2 | ||||
-rw-r--r-- | firmware/target/arm/s5l8700/i2c-s5l8700.c | 5 | ||||
-rw-r--r-- | firmware/target/arm/s5l8700/kernel-s5l8700.c | 2 | ||||
-rw-r--r-- | firmware/target/arm/s5l8700/meizu-m3/lcd-m3.c | 14 | ||||
-rw-r--r-- | firmware/target/arm/s5l8700/timer-s5l8700.c | 2 |
7 files changed, 57 insertions, 27 deletions
diff --git a/firmware/export/s5l8700.h b/firmware/export/s5l8700.h index 7583d291f6..e0b56c7534 100644 --- a/firmware/export/s5l8700.h +++ b/firmware/export/s5l8700.h | |||
@@ -410,7 +410,7 @@ | |||
410 | #define MCAR1 (*(REG32_PTR_T)(0x38800094)) /* Memory Current Address Register1 */ | 410 | #define MCAR1 (*(REG32_PTR_T)(0x38800094)) /* Memory Current Address Register1 */ |
411 | #define MCAR2 (*(REG32_PTR_T)(0x38800098)) /* Memory Current Address Register2 */ | 411 | #define MCAR2 (*(REG32_PTR_T)(0x38800098)) /* Memory Current Address Register2 */ |
412 | 412 | ||
413 | /* 22. USB 1.1 HOST CONTROLER SPECIAL REGISTER */ | 413 | /* 22. USB 1.1 HOST CONTROLLER SPECIAL REGISTER */ |
414 | #define HcRevision (*(REG32_PTR_T)(0x38600000)) | 414 | #define HcRevision (*(REG32_PTR_T)(0x38600000)) |
415 | #define HcControl (*(REG32_PTR_T)(0x38600004)) | 415 | #define HcControl (*(REG32_PTR_T)(0x38600004)) |
416 | #define HcCommandStatus (*(REG32_PTR_T)(0x38600008)) | 416 | #define HcCommandStatus (*(REG32_PTR_T)(0x38600008)) |
@@ -440,25 +440,25 @@ | |||
440 | #define URSTCON (*(REG32_PTR_T)(0x3C400008)) /* USB Reset Control Register */ | 440 | #define URSTCON (*(REG32_PTR_T)(0x3C400008)) /* USB Reset Control Register */ |
441 | #define UCLKCON (*(REG32_PTR_T)(0x3C400010)) /* USB Clock Control Register */ | 441 | #define UCLKCON (*(REG32_PTR_T)(0x3C400010)) /* USB Clock Control Register */ |
442 | 442 | ||
443 | /* 24. GPIO PORT CONTROLL */ | 443 | /* 24. GPIO PORT CONTROL */ |
444 | #define PCON0 (*(REG32_PTR_T)(0x3CF00000)) /* Configures the pins of port 0 */ | 444 | #define PCON0 (*(REG32_PTR_T)(0x3CF00000)) /* Configures the pins of port 0 */ |
445 | #define PDAT0 (*(REG32_PTR_T)(0x3CF00004)) /* The data register for port 0 */ | 445 | #define PDAT0 (*(REG32_PTR_T)(0x3CF00004)) /* The data register for port 0 */ |
446 | #define PCON1 (*(REG32_PTR_T)(0x3CF00010)) /* Configures the pins of port 0 */ | 446 | #define PCON1 (*(REG32_PTR_T)(0x3CF00010)) /* Configures the pins of port 1 */ |
447 | #define PDAT1 (*(REG32_PTR_T)(0x3CF00014)) /* The data register for port 0 */ | 447 | #define PDAT1 (*(REG32_PTR_T)(0x3CF00014)) /* The data register for port 1 */ |
448 | #define PCON2 (*(REG32_PTR_T)(0x3CF00020)) /* Configures the pins of port 0 */ | 448 | #define PCON2 (*(REG32_PTR_T)(0x3CF00020)) /* Configures the pins of port 2 */ |
449 | #define PDAT2 (*(REG32_PTR_T)(0x3CF00024)) /* The data register for port 0 */ | 449 | #define PDAT2 (*(REG32_PTR_T)(0x3CF00024)) /* The data register for port 2 */ |
450 | #define PCON3 (*(REG32_PTR_T)(0x3CF00030)) /* Configures the pins of port 0 */ | 450 | #define PCON3 (*(REG32_PTR_T)(0x3CF00030)) /* Configures the pins of port 3 */ |
451 | #define PDAT3 (*(REG32_PTR_T)(0x3CF00034)) /* The data register for port 0 */ | 451 | #define PDAT3 (*(REG32_PTR_T)(0x3CF00034)) /* The data register for port 3 */ |
452 | #define PCON4 (*(REG32_PTR_T)(0x3CF00040)) /* Configures the pins of port 0 */ | 452 | #define PCON4 (*(REG32_PTR_T)(0x3CF00040)) /* Configures the pins of port 4 */ |
453 | #define PDAT4 (*(REG32_PTR_T)(0x3CF00044)) /* The data register for port 0 */ | 453 | #define PDAT4 (*(REG32_PTR_T)(0x3CF00044)) /* The data register for port 4 */ |
454 | #define PCON5 (*(REG32_PTR_T)(0x3CF00050)) /* Configures the pins of port 0 */ | 454 | #define PCON5 (*(REG32_PTR_T)(0x3CF00050)) /* Configures the pins of port 5 */ |
455 | #define PDAT5 (*(REG32_PTR_T)(0x3CF00054)) /* The data register for port 0 */ | 455 | #define PDAT5 (*(REG32_PTR_T)(0x3CF00054)) /* The data register for port 5 */ |
456 | #define PCON6 (*(REG32_PTR_T)(0x3CF00060)) /* Configures the pins of port 0 */ | 456 | #define PCON6 (*(REG32_PTR_T)(0x3CF00060)) /* Configures the pins of port 6 */ |
457 | #define PDAT6 (*(REG32_PTR_T)(0x3CF00064)) /* The data register for port 0 */ | 457 | #define PDAT6 (*(REG32_PTR_T)(0x3CF00064)) /* The data register for port 6 */ |
458 | #define PCON7 (*(REG32_PTR_T)(0x3CF00070)) /* Configures the pins of port 0 */ | 458 | #define PCON7 (*(REG32_PTR_T)(0x3CF00070)) /* Configures the pins of port 7 */ |
459 | #define PDAT7 (*(REG32_PTR_T)(0x3CF00074)) /* The data register for port 0 */ | 459 | #define PDAT7 (*(REG32_PTR_T)(0x3CF00074)) /* The data register for port 7 */ |
460 | #define PCON10 (*(REG32_PTR_T)(0x3CF000A0)) /* Configures the pins of port 0 */ | 460 | #define PCON10 (*(REG32_PTR_T)(0x3CF000A0)) /* Configures the pins of port 10 */ |
461 | #define PDAT10 (*(REG32_PTR_T)(0x3CF000A4)) /* The data register for port 0 */ | 461 | #define PDAT10 (*(REG32_PTR_T)(0x3CF000A4)) /* The data register for port 10 */ |
462 | #define PCON_ASRAM (*(REG32_PTR_T)(0x3CF000F0)) /* Configures the pins of port nor flash */ | 462 | #define PCON_ASRAM (*(REG32_PTR_T)(0x3CF000F0)) /* Configures the pins of port nor flash */ |
463 | #define PCON_SDRAM (*(REG32_PTR_T)(0x3CF000F4)) /* Configures the pins of port sdram */ | 463 | #define PCON_SDRAM (*(REG32_PTR_T)(0x3CF000F4)) /* Configures the pins of port sdram */ |
464 | #define PCON11 (*(REG32_PTR_T)(0x3CF000F8)) /* Configures the pins of port 11 */ | 464 | #define PCON11 (*(REG32_PTR_T)(0x3CF000F8)) /* Configures the pins of port 11 */ |
diff --git a/firmware/target/arm/s5l8700/ata-nand-s5l8700.c b/firmware/target/arm/s5l8700/ata-nand-s5l8700.c index 8c66c14db5..ee1e581270 100644 --- a/firmware/target/arm/s5l8700/ata-nand-s5l8700.c +++ b/firmware/target/arm/s5l8700/ata-nand-s5l8700.c | |||
@@ -49,12 +49,19 @@ void nand_led(bool onoff) | |||
49 | int nand_read_sectors(IF_MV2(int drive,) unsigned long start, int incount, | 49 | int nand_read_sectors(IF_MV2(int drive,) unsigned long start, int incount, |
50 | void* inbuf) | 50 | void* inbuf) |
51 | { | 51 | { |
52 | 52 | (void)start; | |
53 | (void)incount; | ||
54 | (void)inbuf; | ||
55 | return 0; | ||
53 | } | 56 | } |
54 | 57 | ||
55 | int nand_write_sectors(IF_MV2(int drive,) unsigned long start, int count, | 58 | int nand_write_sectors(IF_MV2(int drive,) unsigned long start, int count, |
56 | const void* outbuf) | 59 | const void* outbuf) |
57 | { | 60 | { |
61 | (void)start; | ||
62 | (void)count; | ||
63 | (void)outbuf; | ||
64 | return 0; | ||
58 | } | 65 | } |
59 | 66 | ||
60 | void nand_spindown(int seconds) | 67 | void nand_spindown(int seconds) |
@@ -82,8 +89,22 @@ int nand_soft_reset(void) | |||
82 | 89 | ||
83 | void nand_enable(bool on) | 90 | void nand_enable(bool on) |
84 | { | 91 | { |
92 | (void)on; | ||
93 | } | ||
94 | |||
95 | void nand_get_info(IF_MV2(int drive,) struct storage_info *info) | ||
96 | { | ||
97 | (void)info; | ||
98 | } | ||
99 | |||
100 | long nand_last_disk_activity(void) | ||
101 | { | ||
102 | return 0; | ||
85 | } | 103 | } |
86 | 104 | ||
87 | int nand_init(void) | 105 | int nand_init(void) |
88 | { | 106 | { |
107 | initialized = true; | ||
108 | return 0; | ||
89 | } | 109 | } |
110 | |||
diff --git a/firmware/target/arm/s5l8700/fmradio-i2c-meizu.c b/firmware/target/arm/s5l8700/fmradio-i2c-meizu.c index 5a4113a6a5..38c24511cf 100644 --- a/firmware/target/arm/s5l8700/fmradio-i2c-meizu.c +++ b/firmware/target/arm/s5l8700/fmradio-i2c-meizu.c | |||
@@ -7,7 +7,7 @@ | |||
7 | * \/ \/ \/ \/ \/ | 7 | * \/ \/ \/ \/ \/ |
8 | * $Id$ | 8 | * $Id$ |
9 | * | 9 | * |
10 | * Copyright (C) 2008 by Bertrik Sikken | 10 | * Copyright (C) 2009 by Bertrik Sikken |
11 | * | 11 | * |
12 | * This program is free software; you can redistribute it and/or | 12 | * This program is free software; you can redistribute it and/or |
13 | * modify it under the terms of the GNU General Public License | 13 | * modify it under the terms of the GNU General Public License |
diff --git a/firmware/target/arm/s5l8700/i2c-s5l8700.c b/firmware/target/arm/s5l8700/i2c-s5l8700.c index b2b2f37e2b..762db9abc2 100644 --- a/firmware/target/arm/s5l8700/i2c-s5l8700.c +++ b/firmware/target/arm/s5l8700/i2c-s5l8700.c | |||
@@ -33,8 +33,9 @@ | |||
33 | * data, pointer to data to be transfered | 33 | * data, pointer to data to be transfered |
34 | A return value < 0 indicates an error. | 34 | A return value < 0 indicates an error. |
35 | 35 | ||
36 | Known issues: | 36 | Note: |
37 | * uses polled mode (not interrupt driven), just like the OF | 37 | * blocks the calling thread for the entire duraton of the i2c transfer but |
38 | uses wakeup_wait/wakeup_signal to allow other threads to run. | ||
38 | * ACK from slave is not checked, so functions never return an error | 39 | * ACK from slave is not checked, so functions never return an error |
39 | */ | 40 | */ |
40 | 41 | ||
diff --git a/firmware/target/arm/s5l8700/kernel-s5l8700.c b/firmware/target/arm/s5l8700/kernel-s5l8700.c index b905ade0c1..cfa13aab2c 100644 --- a/firmware/target/arm/s5l8700/kernel-s5l8700.c +++ b/firmware/target/arm/s5l8700/kernel-s5l8700.c | |||
@@ -44,7 +44,7 @@ void tick_start(unsigned int interval_in_ms) | |||
44 | 44 | ||
45 | /* configure timer for 10 kHz */ | 45 | /* configure timer for 10 kHz */ |
46 | TBCMD = (1 << 1); /* TB_CLR */ | 46 | TBCMD = (1 << 1); /* TB_CLR */ |
47 | TBPRE = 625; /* prescaler */ | 47 | TBPRE = 624; /* prescaler */ |
48 | TBCON = (0 << 13) | /* TB_INT1_EN */ | 48 | TBCON = (0 << 13) | /* TB_INT1_EN */ |
49 | (1 << 12) | /* TB_INT0_EN */ | 49 | (1 << 12) | /* TB_INT0_EN */ |
50 | (0 << 11) | /* TB_START */ | 50 | (0 << 11) | /* TB_START */ |
diff --git a/firmware/target/arm/s5l8700/meizu-m3/lcd-m3.c b/firmware/target/arm/s5l8700/meizu-m3/lcd-m3.c index 01f03d3584..2c52faeb8c 100644 --- a/firmware/target/arm/s5l8700/meizu-m3/lcd-m3.c +++ b/firmware/target/arm/s5l8700/meizu-m3/lcd-m3.c | |||
@@ -72,7 +72,7 @@ static void lcd_sleep(uint32_t t) | |||
72 | for(i=0;i<t;++i); | 72 | for(i=0;i<t;++i); |
73 | } | 73 | } |
74 | 74 | ||
75 | static uint8_t lcd_readdata() | 75 | static uint8_t lcd_readdata(void) |
76 | { | 76 | { |
77 | LCD_RDATA = 0; | 77 | LCD_RDATA = 0; |
78 | lcd_sleep(64); | 78 | lcd_sleep(64); |
@@ -87,7 +87,7 @@ static void lcd_writereg(uint32_t reg, uint32_t data) | |||
87 | LCD_WDATA = data & 0xff; | 87 | LCD_WDATA = data & 0xff; |
88 | } | 88 | } |
89 | 89 | ||
90 | void lcd_on() { | 90 | void lcd_on(void) { |
91 | if (lcd_type == 1) { | 91 | if (lcd_type == 1) { |
92 | LCD_WCMD = 0x29; | 92 | LCD_WCMD = 0x29; |
93 | } else { | 93 | } else { |
@@ -101,7 +101,7 @@ void lcd_on() { | |||
101 | } | 101 | } |
102 | } | 102 | } |
103 | 103 | ||
104 | void lcd_off() { | 104 | void lcd_off(void) { |
105 | /* FIXME wait for DMA to finnish */ | 105 | /* FIXME wait for DMA to finnish */ |
106 | if (lcd_type == 1) { | 106 | if (lcd_type == 1) { |
107 | LCD_WCMD = 0x28; | 107 | LCD_WCMD = 0x28; |
@@ -303,3 +303,11 @@ void lcd_update_rect(int x, int y, int width, int height) | |||
303 | { | 303 | { |
304 | lcd_update(); | 304 | lcd_update(); |
305 | } | 305 | } |
306 | |||
307 | void lcd_blit_yuv(unsigned char * const src[3], | ||
308 | int src_x, int src_y, int stride, | ||
309 | int x, int y, int width, int height) | ||
310 | { | ||
311 | /* stub */ | ||
312 | } | ||
313 | |||
diff --git a/firmware/target/arm/s5l8700/timer-s5l8700.c b/firmware/target/arm/s5l8700/timer-s5l8700.c index f9bef1c956..3e8e7d7ad4 100644 --- a/firmware/target/arm/s5l8700/timer-s5l8700.c +++ b/firmware/target/arm/s5l8700/timer-s5l8700.c | |||
@@ -7,7 +7,7 @@ | |||
7 | * \/ \/ \/ \/ \/ | 7 | * \/ \/ \/ \/ \/ |
8 | * $Id$ | 8 | * $Id$ |
9 | * | 9 | * |
10 | * Copyright (C) 2008 Rafaël Carré | 10 | * Copyright (C) 2009 Bertrik Sikken |
11 | * | 11 | * |
12 | * This program is free software; you can redistribute it and/or | 12 | * This program is free software; you can redistribute it and/or |
13 | * modify it under the terms of the GNU General Public License | 13 | * modify it under the terms of the GNU General Public License |