Skip to content

Commit

Permalink
Oh, joy, a new mysterious waveform mode...
Browse files Browse the repository at this point in the history
It sure would be nice if we had kernel sources in a timely manner...
  • Loading branch information
NiLuJe committed May 3, 2024
1 parent 133ca88 commit faccc6c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eink/mtk-kobo.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ enum HWTCON_WAVEFORM_MODE_ENUM
HWTCON_WAVEFORM_MODE_A2 = 6,
HWTCON_WAVEFORM_MODE_GCK16 = 8,
HWTCON_WAVEFORM_MODE_GLKW16 = 9, // AKA. GCKW16; REAGL DARK
// Introduced with Kaleido devices
HWTCON_WAVEFORM_MODE_COLOR = 10, // FIXME: Actual name TBC, probably a GC something, as it pairs with FULL.
// Matches MXCFB
HWTCON_WAVEFORM_MODE_AUTO = 257,
};
Expand Down
5 changes: 5 additions & 0 deletions fbink.c
Original file line number Diff line number Diff line change
Expand Up @@ -8709,6 +8709,9 @@ static uint32_t
case WFM_GLKW16:
waveform_mode = HWTCON_WAVEFORM_MODE_GLKW16;
break;
case WFM_COLOR:
waveform_mode = HWTCON_WAVEFORM_MODE_COLOR;
break;
case WFM_AUTO:
waveform_mode = HWTCON_WAVEFORM_MODE_AUTO;
break;
Expand Down Expand Up @@ -9064,6 +9067,8 @@ static __attribute__((cold)) const char*
return "GCK16";
case HWTCON_WAVEFORM_MODE_GLKW16:
return "GLKW16";
case HWTCON_WAVEFORM_MODE_COLOR:
return "COLOR";
case HWTCON_WAVEFORM_MODE_AUTO:
return "AUTO";
default:
Expand Down
2 changes: 2 additions & 0 deletions fbink.h
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,8 @@ typedef enum
WFM_GCK16_PARTIAL, // Internal use only, GCK16 + PARTIAL
WFM_DUNM, // DU, but for white-on-black.
WFM_P2SW, // Internal use only, used by the swipe animation.
// Kobo MTK only
WFM_COLOR, // FIXME: Rename properly once we have kernel sources

WFM_MAX = UINT8_MAX, // uint8_t
} __attribute__((packed)) WFM_MODE_INDEX_E;
Expand Down

0 comments on commit faccc6c

Please sign in to comment.