1 // Copyright 2018 The Fuchsia Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "bad-block.h"
6 
7 #include "aml-bad-block.h"
8 
9 namespace nand {
10 
Create(Config config,fbl::RefPtr<BadBlock> * out)11 zx_status_t BadBlock::Create(Config config, fbl::RefPtr<BadBlock>* out) {
12     switch (config.bad_block_config.type) {
13     case kAmlogicUboot:
14         return AmlBadBlock::Create(config, out);
15     default:
16         return ZX_ERR_NOT_SUPPORTED;
17     }
18 }
19 
20 } // namespace nand
21