summaryrefslogtreecommitdiffstats
path: root/src/occ_gpe0/firdata/lpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/occ_gpe0/firdata/lpc.c')
-rw-r--r--src/occ_gpe0/firdata/lpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/occ_gpe0/firdata/lpc.c b/src/occ_gpe0/firdata/lpc.c
index 6544c44..7b9ffca 100644
--- a/src/occ_gpe0/firdata/lpc.c
+++ b/src/occ_gpe0/firdata/lpc.c
@@ -208,12 +208,11 @@ errorHndl_t lpc_read( LpcTransType i_type,
do {
if( o_data == NULL )
{
- TRACFCOMP( "o_data is NULL!" );
+ TRAC_ERR("o_data is NULL!" );
l_err = -2;
break;
}
-
/* Generate the full absolute LPC address */
l_addr = checkAddr( i_type, i_addr );
@@ -366,6 +365,7 @@ errorHndl_t lpc_write( LpcTransType i_type,
//is expected to be left aligned
//adding (size - 1) <-- to incorporate reading more than one byte
//multiply by 8 to convert from byte to bits
+
l_shift_amount = (7 - ((l_addr & 0x7) + (i_size-1))) * 8;
l_data = (l_write_data << l_shift_amount);
OpenPOWER on IntegriCloud