Skip to content
Browse files

mio_c510: fix backlight, rom headers and bootloader

Change-Id: I940c1b8a6a78970e417c58f4dd697db6eff96f22
  • Loading branch information...
1 parent 5871635 commit c76e619e6e9493f404bf12528988aa251f54dee9 @pamaury committed Jun 21, 2012
View
1 bootloader/SOURCES
@@ -72,6 +72,7 @@ rk27xx.c
show_logo.c
#elif defined(MIO_C510)
mio_c510.c
+show_logo.c
#elif defined(SANSA_CONNECT)
sansaconnect.c
show_logo.c
View
4 bootloader/mio_c510.c
@@ -142,7 +142,7 @@ void main(void)
printf("Loading firmware");
/* Flush out anything pending first */
- cpucache_invalidate();
+ commit_discard_idcache();
loadbuffer = (unsigned char*) 0x31000000;
buffer_size = (unsigned char*)0x31400000 - loadbuffer;
@@ -153,7 +153,7 @@ void main(void)
system_prepare_fw_start();
kernel_entry = (void*) loadbuffer;
- cpucache_invalidate();
+ commit_discard_idcache();
printf("Executing");
kernel_entry();
printf("ERR: Failed to boot");
View
4 firmware/target/arm/s3c2440/mio_c510/backlight-mioc510.c
@@ -27,7 +27,7 @@
void _backlight_set_brightness(int brightness)
{
- #if 0
+ #if 1
/* Reference code */
TCNTB0 = 0x3FF;
TCMPB0 = brightness;
@@ -44,7 +44,7 @@ void _backlight_set_brightness(int brightness)
bool _backlight_init(void)
{
- #if 0
+ #if 1
S3C2440_GPIO_CONFIG(GPBCON, 0, GPIO_FUNCTION);
#endif
return true;
View
2 firmware/target/arm/s3c2440/mio_c510/romhdr.S
@@ -7,7 +7,7 @@
#define _imageend HW_ADDR(_initdata_end)
#define _imagesize _binary_size
-.data
+.section .vectors
rom_ecec:
.org ROM_SIGNATURE_OFFSET
.word ROM_SIGNATURE

0 comments on commit c76e619

Please sign in to comment.
Something went wrong with that request. Please try again.