sim: bfin: fix thinko in SIC pin encoding
authorMike Frysinger <vapier@gentoo.org>
Thu, 24 Mar 2011 03:11:08 +0000 (03:11 +0000)
committerMike Frysinger <vapier@gentoo.org>
Thu, 24 Mar 2011 03:11:08 +0000 (03:11 +0000)
commite4a861d14b17b35b165f0f71db04993dcfdaceba
tree8514cb9f2de4b4226fea5996d9748e7e28656a99
parent8d8a97461a121e02ae2f11f3e6147d68432ee02d
sim: bfin: fix thinko in SIC pin encoding

When encoding the SIC/pin info into unique input port ids, I used bases
of 100 when I meant to use 0x100.  Rather than simply fix the decoding
math in the different functions, create a few helper macros to simplify
the SIC/pin encoding and decoding steps.  This makes the resulting tables
nice & clear.

And now that pins are clear, the 533 and 537 port_event handlers may
easily be merged into one.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
sim/bfin/ChangeLog
sim/bfin/dv-bfin_sic.c