blob: 7d5e6fa830cfcfeaacbfe41906cb8b009b514bd6 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ZIRCON_SYSTEM_DEV_DISPLAY_MT8167S_DISPLAY_REGISTERS_AAL_H_
#define ZIRCON_SYSTEM_DEV_DISPLAY_MT8167S_DISPLAY_REGISTERS_AAL_H_
#include <hwreg/bitfields.h>
#include <hwreg/mmio.h>
//////////////////////////////////////////////////
// AAL Registers
//////////////////////////////////////////////////
#define AAL_EN (0x0000)
#define AAL_CFG (0x0020)
#define AAL_SIZE (0x0030)
namespace mt8167s_display {
class AalEnReg : public hwreg::RegisterBase<AalEnReg, uint32_t> {
public:
DEF_BIT(0, enable);
static auto Get() { return hwreg::RegisterAddr<AalEnReg>(AAL_EN); }
};
class AalCfgReg : public hwreg::RegisterBase<AalCfgReg, uint32_t> {
public:
DEF_BIT(0, relay);
static auto Get() { return hwreg::RegisterAddr<AalCfgReg>(AAL_CFG); }
};
class AalSizeReg : public hwreg::RegisterBase<AalSizeReg, uint32_t> {
public:
DEF_FIELD(28, 16, hsize);
DEF_FIELD(12, 0, vsize);
static auto Get() { return hwreg::RegisterAddr<AalSizeReg>(AAL_SIZE); }
};
} // namespace mt8167s_display
#endif // ZIRCON_SYSTEM_DEV_DISPLAY_MT8167S_DISPLAY_REGISTERS_AAL_H_