SWAP
SWAP(val[0], val[1], t);
SWAP(val[0], val[3], t);
SWAP(val[1], val[2], t);
SWAP(val[0], val[7], t);
SWAP(val[1], val[6], t);
SWAP(val[2], val[5], t);
SWAP(val[3], val[4], t);
CMD_FLAG_NAME(SWAP),
regmap_update_bits(priv->regmap, 0x18, SWAP, BYTE_SWAP_BGR);
#define MDP_COLORFMT_PACK(VIDEO, PLANE, COPLANE, HF, VF, BITS, GROUP, SWAP, ID)\
((SWAP) << 5) | ((ID) << 0))
#define MDP_COLOR(COMPRESS, PACKED, LOOSE, VIDEO, PLANE, HF, VF, BITS, GROUP, SWAP, ID)\
((GROUP) << 6) | ((SWAP) << 5) | ((ID) << 0))
out_be16(AP_ROP_1, SWAP(0x3));
flags |= BIT(SWAP);