mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-18 17:42:36 -05:00
Introduce HiFi E.T. MA8/MA8C ports.
HiFi E.T. MA8 is almost the same as MA9 except another DAC(pcm1792 in ma8, df1704 in ma9). MA8 has ILI9342 lcd, MA8C has ILI9342C lcd. Change-Id: If2ac04f5a3382590b2a392c46286559f54b2ed6a
This commit is contained in:
parent
a170c99170
commit
3a97e12fc5
12 changed files with 645 additions and 7 deletions
|
|
@ -61,7 +61,7 @@ static const unsigned short lin_brightness[] = {
|
|||
562, 579, 596, 616, 637, 660, 684, 711,
|
||||
739, 770, 802, 837, 874, 914, 955, 1000
|
||||
};
|
||||
#elif defined(MA9) || defined(MA9C)
|
||||
#elif defined(MA9) || defined(MA9C) || defined(MA8) || defined(MA8C)
|
||||
static const unsigned short lin_brightness[] = {
|
||||
2, 4, 7, 10, 15, 21, 28, 36,
|
||||
46, 58, 72, 87, 104, 124, 146, 171,
|
||||
|
|
|
|||
|
|
@ -29,21 +29,25 @@ void df1704_set_ml_dir(const int dir)
|
|||
{
|
||||
pca9555_write_config(dir<<8, (1<<8));
|
||||
}
|
||||
void pcm1792_set_ml_dir (const int) __attribute__((alias("df1704_set_ml_dir")));
|
||||
|
||||
void df1704_set_ml(const int val)
|
||||
{
|
||||
pca9555_write_output(val<<8, 1<<8);
|
||||
}
|
||||
void pcm1792_set_ml (const int) __attribute__((alias("df1704_set_ml")));
|
||||
|
||||
void df1704_set_mc(const int val)
|
||||
{
|
||||
pca9555_write_output(val<<1, 1<<1);
|
||||
}
|
||||
void pcm1792_set_mc (const int) __attribute__((alias("df1704_set_mc")));
|
||||
|
||||
void df1704_set_md(const int val)
|
||||
{
|
||||
pca9555_write_output(val<<0, 1<<0);
|
||||
}
|
||||
void pcm1792_set_md (const int) __attribute__((alias("df1704_set_md")));
|
||||
|
||||
static void pop_ctrl(const int val)
|
||||
{
|
||||
|
|
@ -60,7 +64,6 @@ static void dac_enable(const int val)
|
|||
pca9555_write_output(val<<4, 1<<4);
|
||||
}
|
||||
|
||||
|
||||
void audiohw_postinit(void)
|
||||
{
|
||||
pop_ctrl(0);
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ static inline bool card_detect_target(void)
|
|||
return !(GPIO_PCDR & 0x80);
|
||||
#elif defined(HM60X) || defined(HM801)
|
||||
return !(GPIO_PFDR & (1<<2));
|
||||
#elif defined(MA9) || defined(MA9C)
|
||||
#elif defined(MA9) || defined(MA9C) || defined(MA8) || defined(MA8C)
|
||||
return (GPIO_PCDR & 0x80);
|
||||
#else
|
||||
#error "Unknown target"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue