def bmtsettings(self, hwcode):
    bmtflag = 1
    bmtblockcount = 0
    bmtpartsize = 0
    if (hwcode in [26002, 25986, 33063, 25969]):
        if (self.flash == 'emmc'):
            bmtflag = 1
            bmtblockcount = 168
            bmtpartsize = 22020096
    elif (hwcode in [25968, 33127, 25984, 26421, 26451, 26453, 26450, 26005, 26517, 26471, 26519, 33123]):
        bmtflag = 1
        bmtpartsize = 0
    elif (hwcode in [25969]):
        if (self.flash == 'nand'):
            bmtflag = 0
            bmtblockcount = 56
            bmtpartsize = 14680064
        elif (self.flash == 'emmc'):
            bmtflag = 1
            bmtblockcount = 168
            bmtpartsize = 22020096
    elif (hwcode in [25973]):
        if (self.flash == 'nand'):
            bmtflag = 0
            bmtblockcount = 80
        elif (self.flash == 'emmc'):
            bmtflag = 1
            bmtblockcount = 168
            bmtpartsize = 22020096
    elif (hwcode in [25970]):
        if (self.flash == 'nand'):
            bmtflag = 0
            bmtpartsize = 10485760
            bmtblockcount = 80
        elif (self.flash == 'emmc'):
            bmtflag = 0
            bmtpartsize = 168
            bmtblockcount = 80
    elif (hwcode in [25975, 25987, 25993]):
        if (self.flash == 'nand'):
            bmtflag = 0
            bmtpartsize = 10485760
            bmtblockcount = 168
    self.bmtflag = bmtflag
    self.bmtblockcount = bmtblockcount
    self.bmtpartsize = bmtpartsize
    return (bmtflag, bmtblockcount, bmtpartsize)
def bmtsettings(self, hwcode):
    bmtflag = 1
    bmtblockcount = 0
    bmtpartsize = 0
    if (hwcode in [26002, 25986, 33063, 25969]):
        if (self.flash == 'emmc'):
            bmtflag = 1
            bmtblockcount = 168
            bmtpartsize = 22020096
    elif (hwcode in [25968, 33127, 25984, 26421, 26451, 26453, 26450, 26005, 26517, 26471, 26519, 33123]):
        bmtflag = 1
        bmtpartsize = 0
    elif (hwcode in [25969]):
        if (self.flash == 'nand'):
            bmtflag = 0
            bmtblockcount = 56
            bmtpartsize = 14680064
        elif (self.flash == 'emmc'):
            bmtflag = 1
            bmtblockcount = 168
            bmtpartsize = 22020096
    elif (hwcode in [25973]):
        if (self.flash == 'nand'):
            bmtflag = 0
            bmtblockcount = 80
        elif (self.flash == 'emmc'):
            bmtflag = 1
            bmtblockcount = 168
            bmtpartsize = 22020096
    elif (hwcode in [25970]):
        if (self.flash == 'nand'):
            bmtflag = 0
            bmtpartsize = 10485760
            bmtblockcount = 80
        elif (self.flash == 'emmc'):
            bmtflag = 0
            bmtpartsize = 168
            bmtblockcount = 80
    elif (hwcode in [25975, 25987, 25993]):
        if (self.flash == 'nand'):
            bmtflag = 0
            bmtpartsize = 10485760
            bmtblockcount = 168
    self.bmtflag = bmtflag
    self.bmtblockcount = bmtblockcount
    self.bmtpartsize = bmtpartsize
    return (bmtflag, bmtblockcount, bmtpartsize)