diff --git a/libgm/src/Bitstream.cpp b/libgm/src/Bitstream.cpp index ca00741..2eae569 100644 --- a/libgm/src/Bitstream.cpp +++ b/libgm/src/Bitstream.cpp @@ -58,6 +58,22 @@ static constexpr const uint8_t CFG_CPE_RESET = 0x10; static constexpr const uint8_t CFG_FILL_RAM = 0x20; static constexpr const uint8_t CFG_SERDES = 0x40; +// PLL register A +static constexpr const uint8_t CFG_PLL_RST_N = 0x01; +static constexpr const uint8_t CFG_PLL_EN = 0x02; +static constexpr const uint8_t CFG_PLL_AUTN = 0x04; // only available for PLL0 +static constexpr const uint8_t CFG_SET_SEL = 0x08; +static constexpr const uint8_t CFG_USR_SET = 0x10; +static constexpr const uint8_t CFG_USR_CLK_REF = 0x20; +static constexpr const uint8_t CFG_CLK_OUT_EN = 0x40; +static constexpr const uint8_t CFG_LOCK_REQ = 0x80; + +// PLL register B +static constexpr const uint8_t CFG_AUTN_CT_I = 0x01; // only available for PLL0 +static constexpr const uint8_t CFG_CLK180_DOUB = 0x08; +static constexpr const uint8_t CFG_CLK270_DOUB = 0x10; +static constexpr const uint8_t CFG_USR_CLK_OUT = 0x80; + static const std::vector> crc_modes = { {"check", 0x00}, // Check CRC {"ignore", 0x01}, // Ignore added CRC @@ -1018,6 +1034,12 @@ Bitstream Bitstream::serialise_chip(const Chip &chip, const std::map