add QCOM_HARDWARE ifdef

Change-Id: I873fa1c73a1848b37f29809ebc248cf6b4edfa82