# Prepare MH02 configuration
reg 0xC00C 0x00040041
reg 0xC010 0x01200004

# configure Matterhorn SPI
setbit 0xC014 0

# wait till config is done
pollbit 0xC014 3 0

# reset transceiver
reg 0xC120 0x0
reg 0xC120 0x1
reg 0xC120 0x0

# set MSB LSB inversions and polarity for transceiver
reg 0xC120 0x1e0

# Enable MH02 PLL clock
pattern enable_clock_pattern.pyat
# start the flow
setbit 0xB030 0
clearbit 0xB030 0
sleep 1
