test: backport tpm_i2c_atmel.c from v3.13.7

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>