blob: 4f7eb054ad51ae10e3f2fe6811f8772a0c7fee62 [file] [log] [blame]
// Copyright 2018 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.
#include "bad-block.h"
#include "aml-bad-block.h"
namespace nand {
zx_status_t BadBlock::Create(Config config, fbl::RefPtr<BadBlock>* out) {
switch (config.bad_block_config.type) {
case kAmlogicUboot:
return AmlBadBlock::Create(config, out);
default:
return ZX_ERR_NOT_SUPPORTED;
}
}
} // namespace nand