gooftool: add VerifySnBits

To check if cr50 sn bits are set properly.

BUG=b:157210082
TEST=make test

Change-Id: I46fdb594632b4c71531e9bd00728566b83bba4f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/factory/+/2209001
Reviewed-by: Stimim Chen <stimim@chromium.org>
Commit-Queue: Stimim Chen <stimim@chromium.org>
Tested-by: Stimim Chen <stimim@chromium.org>
diff --git a/py/gooftool/commands.py b/py/gooftool/commands.py
index bff4f98..c889d9b 100755
--- a/py/gooftool/commands.py
+++ b/py/gooftool/commands.py
@@ -364,6 +364,11 @@
   return GetGooftool(options).VerifyCrosConfig()
 
 
+@Command('verify-sn-bits')
+def VerifySnBits(options):
+  GetGooftool(options).VerifySnBits()
+
+
 @Command('write_protect')
 def EnableFwWp(options):
   """Enable then verify firmware write protection."""
@@ -540,6 +545,7 @@
       options.keep_developer_mode_flag_after_clobber_state,
       options.test_umount)
 
+
 @Command('verify',
          CmdArg('--no_write_protect', action='store_true',
                 help='Do not check write protection switch state.'),
@@ -583,6 +589,7 @@
   VerifyVPD(options)
   VerifyReleaseChannel(options)
   VerifyCrosConfig(options)
+  VerifySnBits(options)
 
 
 @Command('untar_stateful_files')