2018-09-04 01:05:08 +09:00
|
|
|
# SPDX-License-Identifier: GPL-2.0+
|
|
|
|
# Copyright 2018 NXP
|
|
|
|
#
|
|
|
|
# Entry-type module for the PowerPC mpc85xx bootpg and resetvec code for U-Boot
|
|
|
|
#
|
|
|
|
|
2020-04-18 09:09:03 +09:00
|
|
|
from binman.etype.blob import Entry_blob
|
2018-09-04 01:05:08 +09:00
|
|
|
|
|
|
|
class Entry_powerpc_mpc85xx_bootpg_resetvec(Entry_blob):
|
|
|
|
"""PowerPC mpc85xx bootpg + resetvec code for U-Boot
|
|
|
|
|
|
|
|
Properties / Entry arguments:
|
|
|
|
- filename: Filename of u-boot-br.bin (default 'u-boot-br.bin')
|
|
|
|
|
2020-07-10 09:39:32 +09:00
|
|
|
This entry is valid for PowerPC mpc85xx cpus. This entry holds
|
2018-09-04 01:05:08 +09:00
|
|
|
'bootpg + resetvec' code for PowerPC mpc85xx CPUs which needs to be
|
|
|
|
placed at offset 'RESET_VECTOR_ADDRESS - 0xffc'.
|
|
|
|
"""
|
|
|
|
|
|
|
|
def __init__(self, section, etype, node):
|
2020-07-10 09:39:35 +09:00
|
|
|
super().__init__(section, etype, node)
|
2018-09-04 01:05:08 +09:00
|
|
|
|
|
|
|
def GetDefaultFilename(self):
|
|
|
|
return 'u-boot-br.bin'
|