Skip to content
Permalink
Browse files

ext: hal: mchp: Fix compilation for MEC1501 SMB macros

Adjust space definition for I2C register base addresses

Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
  • Loading branch information...
Jose Alberto Meza authored and andrewboie committed Apr 22, 2019
1 parent 13453b9 commit 99ba2e7fba15f637024a255fcd72952641d4ca27
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/hal/microchip/mec/mec1501/component/smb.h
@@ -51,7 +51,7 @@
/* 0 <= n < MCHP_I2C_SMB_MAX_INSTANCES */
#define MCHP_I2C_SMB_BASE_ADDR(n) \
((MCHP_I2C_SMB0_BASE_ADDR) +\
(uint32_t)(n) << (MCHP_I2C_SMB_INST_SPACING_P2))
((uint32_t)(n) << (MCHP_I2C_SMB_INST_SPACING_P2)))

/*
* Offset 0x00

0 comments on commit 99ba2e7

Please sign in to comment.
You can’t perform that action at this time.