-unsigned short __attribute__((packed, aligned(4))) charge_palette[] = {
+unsigned short __attribute__((aligned(4))) charge_palette[] = {
0x0, 0x222, 0x444, 0x666, 0x888, 0xaaa, 0xccc, 0xeee, 0x111, 0x333,
0x555, 0x777, 0x999, 0xbbb, 0xddd, 0xfff, };
-unsigned short __attribute__((packed, aligned(4))) charge_bitmap[] = {
+unsigned short __attribute__((aligned(4))) charge_bitmap[] = {
0x0, 0x8, 0x9, 0x8, 0x0, 0x1, 0x2, 0x1, 0x0, 0x1,
0x2, 0x9, 0x2, 0x9, 0x2, 0x1, 0x0, 0x1, 0x2, 0x9,
0x2, 0x8, 0x0, 0x1, 0x2, 0x9, 0x2, 0x8, 0x0, 0x1,
0x0, 0x9, 0x2, 0x9, 0x0, 0x9, 0x2, 0x9, 0x0, 0x1,
0x9, 0x1, 0x0, };
-unsigned int __attribute__((packed, aligned(4))) charge_num_bitmap[] = {
+unsigned int __attribute__((aligned(4))) charge_num_bitmap[] = {
3213, 1, 50, 1, 133, 1, 50, 1, 133, 1,
5, 1, 38, 1, 5, 1, 133, 1, 2, 46,
2, 1, 133, 1, 2, 46, 2, 1, 133, 1,
#include <linux/mtd/partitions.h>
#endif
-extern unsigned spl_data_buf[0x2000] __attribute__((align(4)));
-extern unsigned harsh_data_buf[8]__attribute__((align(4)));
extern void *spl_data;
extern void *harsh_data;
extern unsigned char raw_header[8192];
void set_vibrator(int on);
void vibrator_hw_init(void);
void MMU_InvalideICACHEALL(void);
-int read_spldata();
+int read_spldata(void);
void lcd_display_logo(int backlight_set,ulong bmp_image,size_t size);
int creat_cmdline(char * cmdline,boot_img_hdr *hdr);
-void vlx_entry();
+void vlx_entry(void);
extern char* get_product_sn(void);
extern char *calibration_cmd_buf;
void set_recovery_mode(unsigned int recovery_mode);
-unsigned short __attribute__((packed, aligned(4))) prog_end_palette[] = {
+unsigned short __attribute__((aligned(4))) prog_end_palette[] = {
0x0, 0x1, 0x2, 0x8ab, 0x269, 0x356, 0x7cf, 0x589, 0x68a, 0x357,
0x379, 0x6ad, 0x258, 0x12, 0x13, 0x368, 0x9be, 0x79a, 0x79b, 0x69c,
0x59d, 0xacf, 0x245, 0x23, 0x123, 0x24, 0x146, 0x59c, 0x469, 0x7ab,
0x112, 0x78a, 0x8bd, 0x8ce, 0x568, 0x8ac, 0x89b, 0x7be, 0x477, 0x478,
0x479, 0x37a, 0x6bf, 0x6be, };
-unsigned short __attribute__((packed, aligned(4))) prog_end_bitmap[] = {
+unsigned short __attribute__((aligned(4))) prog_end_bitmap[] = {
0x5, 0x38, 0x39, 0x38, 0x2d, 0x26, 0x18, 0xd, 0x1, 0x0,
0x4e, 0x4f, 0x50, 0x44, 0x9, 0x5, 0x16, 0x22, 0x18, 0xd,
0x0, 0x11, 0x1d, 0x1e, 0x12, 0x8, 0x7, 0x35, 0x28, 0x22,
0x21, 0x19, 0xe, 0xd, 0x2, 0x1, 0x0, 0x19, 0x3d, 0x19,
0xe, 0xd, 0x1, 0x0, };
-unsigned int __attribute__((packed, aligned(4))) prog_end_num_bitmap[] = {
+unsigned int __attribute__((aligned(4))) prog_end_num_bitmap[] = {
1, 6, 1, 1, 1, 2, 1, 1, 1, 2,
1, 6, 1, 1, 1, 1, 1, 1, 1, 1,
2, 2, 4, 2, 1, 1, 1, 1, 1, 1,
-unsigned short __attribute__((packed, aligned(4))) prog_mid_palette[] = {
+unsigned short __attribute__((aligned(4))) prog_mid_palette[] = {
0x7cf, 0x69d, 0x7bf, 0x246, 0x147, 0x468, 0x8cf, 0x25, 0x7be, 0x59d,
0xadf, 0x37a, 0x79b, 0x6bf, 0x9be, 0x9df, };
-unsigned short __attribute__((packed, aligned(4))) prog_mid_bitmap[] = {
+unsigned short __attribute__((aligned(4))) prog_mid_bitmap[] = {
0x3, 0x5, 0xc, 0xe, 0xa, 0xf, 0x6, 0x0, 0x2, 0xd,
0x2, 0x8, 0x1, 0x9, 0x1, 0x9, 0x1, 0x9, 0xb, 0x4,
0x7, };
-unsigned int __attribute__((packed, aligned(4))) prog_mid_num_bitmap[] = {
+unsigned int __attribute__((aligned(4))) prog_mid_num_bitmap[] = {
6, 6, 6, 6, 12, 6, 12, 6, 12, 18,
12, 6, 1, 1, 1, 1, 1, 1, 6, 6,
6, };
-unsigned short __attribute__((packed, aligned(4))) prog_start_palette[] = {
+unsigned short __attribute__((aligned(4))) prog_start_palette[] = {
0x0, 0x1, 0x2, 0x3, 0x8ad, 0x10, 0x11, 0x12, 0x13, 0x14,
0x15, 0x21, 0x22, 0x25, 0x32, 0x33, 0x234, 0x235, 0x244, 0x245,
0x246, 0x247, 0x255, 0x256, 0x267, 0x468, 0x469, 0x467, 0x7bd, 0x9be,
0x346, 0x7ab, 0x7ac, 0x7ad, 0x7ae, 0x9bd, 0x7be, 0x7bf, 0x9cd, 0x7ce,
0x7cf, 0x9df, };
-unsigned short __attribute__((packed, aligned(4))) prog_start_bitmap[] = {
+unsigned short __attribute__((aligned(4))) prog_start_bitmap[] = {
0x0, 0x1, 0x7, 0x34, 0x12, 0x3b, 0x13, 0x16, 0x0, 0x1,
0x34, 0x10, 0x3d, 0x41, 0x1b, 0x1f, 0x1e, 0x0, 0x1, 0x7,
0x34, 0x50, 0x1b, 0x46, 0x23, 0x25, 0x26, 0x4e, 0x4d, 0x1,
0xe, 0xf, 0x4c, 0x3b, 0x3a, 0x0, 0x5, 0x6, 0xb, 0xc,
0xe, 0xf, 0xe, 0xc, };
-unsigned int __attribute__((packed, aligned(4))) prog_start_num_bitmap[] = {
+unsigned int __attribute__((aligned(4))) prog_start_num_bitmap[] = {
4, 1, 1, 1, 1, 1, 2, 6, 4, 1,
1, 1, 2, 1, 1, 2, 4, 2, 1, 1,
1, 1, 1, 1, 1, 1, 1, 5, 1, 2,
-unsigned short __attribute__((packed, aligned(4))) sp_palette[] = {
+unsigned short __attribute__((aligned(4))) sp_palette[] = {
0x0, 0x1, 0x6ab, 0x269, 0x156, 0x44, 0x133, 0xbde, 0x3ad, 0xad,
0x10, 0x11, 0x12, 0x13, 0x211, 0xae, 0x9a, 0x59, 0x78, 0x1af,
0x233, 0x455, 0x221, 0x22, 0x23, 0x24, 0x289, 0x677, 0x799, 0x232,
0xbce, 0xddc, 0xddd, 0xdde, 0xbc, 0xade, 0xded, 0xfee, 0xfef, 0xcee,
0x27a, 0xff, 0x8aa, 0xffe, 0xfff, };
-unsigned short __attribute__((packed, aligned(4))) sp_bitmap[] = {
+unsigned short __attribute__((aligned(4))) sp_bitmap[] = {
0x0, 0x40, 0x7b, 0x6c, 0x18, 0x0, 0x18, 0x6c, 0x87, 0x83,
0x87, 0x74, 0x0, 0x32, 0x83, 0x87, 0x83, 0x17, 0x0, 0xb,
0x58, 0x87, 0x83, 0x17, 0x0, 0x1f, 0x74, 0x87, 0x83, 0x17,
0xa3, 0x7a, 0x0, 0x8d, 0x0, 0xb, 0x3f, 0x12, 0x40, 0x3f,
0x33, 0x3f, 0x33, 0x4, 0x9e, 0x1f, 0x8f, 0x8d, 0x0, };
-unsigned int __attribute__((packed, aligned(4))) sp_num_bitmap[] = {
+unsigned int __attribute__((aligned(4))) sp_num_bitmap[] = {
6786, 1, 1, 1, 1, 508, 1, 1, 1, 1,
1, 1, 507, 1, 1, 1, 4, 1, 504, 1,
1, 1, 6, 1, 503, 1, 1, 1, 7, 1,
-unsigned short __attribute__((packed, aligned(4))) thor_palette[] = {
+unsigned short __attribute__((aligned(4))) thor_palette[] = {
0x0, 0x1, 0x2, 0x3, 0xaac, 0x10, 0x11, 0x12, 0x13, 0x14,
0x22, 0x23, 0x24, 0x25, 0x26, 0x33, 0x34, 0x35, 0x36, 0x37,
0x45, 0x46, 0x47, 0x57, 0x6a, 0x6b, 0x6c, 0xabd, 0xabe, 0x877,
0x78a, 0x78b, 0x79a, 0x79b, 0x79c, 0x29a, 0x7aa, 0x7ab, 0x7ac, 0x7bc,
0x7bd, 0x7be, 0x7cd, 0x7ce, 0xfee, 0xfef, 0xffe, 0xfff, };
-unsigned short __attribute__((packed, aligned(4))) thor_bitmap[] = {
+unsigned short __attribute__((aligned(4))) thor_bitmap[] = {
0x0, 0x1, 0x6, 0x7, 0x6, 0x0, 0x1, 0x8, 0x8c, 0xcd,
0x105, 0xcd, 0x4e, 0xb, 0x6, 0x0, 0x1, 0x7, 0x47, 0xce,
0x13d, 0x189, 0x18e, 0x18d, 0x10a, 0x8c, 0xa, 0x1, 0x0, 0x1,
0xc, 0x7, 0x6, 0x1, 0x0, 0x1, 0x7, 0x46, 0x88, 0x4a,
0xb, 0x1, 0x0, 0x1, 0x2, 0x1, 0x0, };
-unsigned int __attribute__((packed, aligned(4))) thor_num_bitmap[] = {
+unsigned int __attribute__((aligned(4))) thor_num_bitmap[] = {
1320, 3, 2, 2, 1, 367, 4, 1, 1, 1,
1, 1, 1, 1, 1, 365, 3, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 361, 5,