1# SPDX-License-Identifier: GPL-2.0+
2# Copyright 2018 NXP
3#
4# Entry-type module for the PowerPC mpc85xx bootpg and resetvec code for U-Boot
5#
6
7from entry import Entry
8from blob import Entry_blob
9
10class Entry_powerpc_mpc85xx_bootpg_resetvec(Entry_blob):
11    """PowerPC mpc85xx bootpg + resetvec code for U-Boot
12
13    Properties / Entry arguments:
14        - filename: Filename of u-boot-br.bin (default 'u-boot-br.bin')
15
16    This enrty is valid for PowerPC mpc85xx cpus. This entry holds
17    'bootpg + resetvec' code for PowerPC mpc85xx CPUs which needs to be
18    placed at offset 'RESET_VECTOR_ADDRESS - 0xffc'.
19    """
20
21    def __init__(self, section, etype, node):
22        Entry_blob.__init__(self, section, etype, node)
23
24    def GetDefaultFilename(self):
25        return 'u-boot-br.bin'
26