Changeset 5715


Ignore:
Timestamp:
02/13/11 13:15:50 (12 years ago)
Author:
sofatester
Message:

[at7500]Update nuvoton -> Thx konfetti

Location:
tools/frontcontroller/nuvoton
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tools/frontcontroller/nuvoton/nuvoton_file.c

    r5598 r5715  
    218218#define cCommandSetIcon          0xc4
    219219#else
    220 #define cCommandSetIconI         0xc2 /* 0xc2 0xc7 0xcb 0xcc */
     220#define cCommandSetIconI         0xc2 /* 0xc2 0xc7 0xcb 0xcc */ /* display cgram */
    221221#define cCommandSetIconII        0xc7
    222222#endif
     
    228228#endif
    229229
     230
    230231#define cCommandSetVFDBrightness 0xd2
    231232
     233#ifdef ATEVIO7500
     234#define cCommandGetFrontInfo     0xd0
     235#else
    232236#define cCommandGetFrontInfo     0xe0
     237#endif
    233238
    234239#define cCommandSetPwrLed        0x93 /* added by zeroone, only used in this file; set PowerLed Brightness on HDBOX */
     
    814819{
    815820    char standby_disable[] = {SOP, cCommandPowerOffReplay, 0x02, EOP};
    816     char init0[] = {SOP, 0xd0, EOP};
    817 
    818     char init1[] = {SOP, 0xc2, 0x10, 0x00, EOP};
    819     char init2[] = {SOP, 0xcd, 0x11, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, EOP};
    820     char init3[] = {SOP, 0xce, 0x30, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, EOP};
    821     char init4[] = {SOP, 0xce, 0x11, 0x53, 0x54, 0x41, 0x52, 0x54, 0x20, 0x31, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, EOP};
    822 
    823     char init5[] = {SOP, cCommandSetIrCode, 0x01, 0x02, 0xf9, 0x10, 0x0b, EOP};
    824     char init6[] = {SOP, cCommandSetBootOn, EOP};
    825 
    826     char init7[] = {SOP, cCommandSetTimeFormat, 0x81, EOP};
    827     char init8[] = {SOP, cCommandSetWakeupTime, 0xff, 0xff, EOP}; /* delete/invalidate wakeup time ? */
    828     char init9[] = {SOP, 0x93, 0x01, 0x00, 0x08, EOP};
    829     char init10[] = {SOP, 0x93, 0xf2, 0x08, 0x00, EOP};
    830 
    831     char init11[] = {SOP, 0xce, 0x11, 0x43, 0x48, 0x4b, 0x20, 0x48, 0x44, 0x44, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, EOP};
    832     char init12[] = {SOP, 0xce, 0x11, 0x5a, 0x65, 0x69, 0x74, 0x20, 0x53, 0x79, 0x6e, 0x63, 0x68, 0x72, 0x6f, 0x20, EOP};
    833 
     821
     822    char init1[] = {SOP, 0xc2, 0x10, 0x00, EOP}; /* display cgram */
     823    char init2[] = {SOP, cCommandSetIrCode, 0x01, 0x02, 0xf9, 0x10, 0x0b, EOP};
     824
     825    char init3[] = {SOP, cCommandSetTimeFormat, 0x81, EOP};
     826    char init4[] = {SOP, cCommandSetWakeupTime, 0xff, 0xff, EOP}; /* delete/invalidate wakeup time ? */
    834827
    835828    int  vLoop;
     
    842835    printk("ATEVIO7500 VFD/Nuvoton module initializing\n");
    843836
    844     res = nuvotonWriteCommand(init0, sizeof(init0), 0);
    845 
    846837    /* must be called before standby_disable */
    847838    res = nuvotonWriteCommand(init1, sizeof(init1), 0);
    848839
    849     res |= nuvotonWriteCommand(init2, sizeof(init2), 0);
    850     res |= nuvotonWriteCommand(init3, sizeof(init3), 0);
     840    res = nuvotonWriteCommand(init2, sizeof(init2), 0);
    851841
    852842    /* setup: frontpanel should not power down the receiver if standby is selected */
    853843    res = nuvotonWriteCommand(standby_disable, sizeof(standby_disable), 0);
    854844
     845    res |= nuvotonWriteCommand(init3, sizeof(init3), 0);
    855846    res |= nuvotonWriteCommand(init4, sizeof(init4), 0);
    856     res |= nuvotonWriteCommand(init5, sizeof(init5), 0);
    857     res |= nuvotonWriteCommand(init6, sizeof(init6), 0);
    858     res |= nuvotonWriteCommand(init7, sizeof(init7), 0);
    859     res |= nuvotonWriteCommand(init8, sizeof(init8), 0);
    860     res |= nuvotonWriteCommand(init9, sizeof(init9), 0);
    861     res |= nuvotonWriteCommand(init10, sizeof(init10), 0);
    862     res |= nuvotonWriteCommand(init11, sizeof(init11), 0);
    863     res |= nuvotonWriteCommand(init12, sizeof(init12), 0);
    864 
    865847    res |= nuvotonSetBrightness(1);
    866848
  • tools/frontcontroller/nuvoton/nuvoton_main.c

    r5598 r5715  
    8383#include "nuvoton.h"
    8484#include "nuvoton_asc.h"
    85 #include "reseller.h"
    8685
    8786//----------------------------------------------
     
    546545static int __init nuvoton_init_module(void)
    547546{
    548        
    549547    int i = 0;
    550548
     
    556554    dprintk(5, "%s >\n", __func__);
    557555
    558         if(check_reseller_id()){
    559                 dprintk(5,"you are using a verified box\n");
    560         }else{
    561                         dprintk(5,"you are NOT using a verified box\n");
    562                         return 0;
    563         }
    564556    //Disable all ASC 2 interrupts
    565557    *ASC_X_INT_EN = *ASC_X_INT_EN & ~0x000001ff;
Note: See TracChangeset for help on using the changeset viewer.