1 /*---------------------------------------------------------------------------* 2 Project: TwlSDK - tools - makerom.TWL 3 File: format_rom_scfg.h 4 5 Copyright 2007-2008 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Date:: 2008-09-17#$ 14 $Rev: 8556 $ 15 $Author: okubata_ryoma $ 16 *---------------------------------------------------------------------------*/ 17 18 #ifndef FORMAT_ROM_SCFG_H_ 19 #define FORMAT_ROM_SCFG_H_ 20 21 //---- for ARM7-SCFG-EXT register 22 #define ROM_SCFG_EXT_OFFSET 0x1B8 23 #define ROM_SCFG_EXT_SIZE 4 24 25 #define ROM_SCFG_EXT_CFG_MASK 0x80000000 26 #define ROM_SCFG_EXT_SD1_MASK 0x00040000 27 #define ROM_SCFG_EXT_DSEL_MASK 0x00000400 28 #define ROM_SCFG_EXT_SND_MASK 0x00000004 29 #define ROM_SCFG_EXT_SDMA_MASK 0x00000002 30 #define ROM_SCFG_EXT_DMA_MASK 0x00000001 31 32 #define ROM_SCFG_EXT_SPECMASK \ 33 (ROM_SCFG_EXT_CFG_MASK | \ 34 ROM_SCFG_EXT_SD1_MASK | ROM_SCFG_EXT_DSEL_MASK | \ 35 ROM_SCFG_EXT_SND_MASK | ROM_SCFG_EXT_SDMA_MASK | ROM_SCFG_EXT_DMA_MASK ) 36 37 #define ROM_SCFG_EXT_SPEC_DEFAULT ( ROM_SCFG_EXT_SND_MASK | ROM_SCFG_EXT_SDMA_MASK ) 38 39 40 //---- for ARM7-SCFG-CLK register 41 #define ROM_SCFG_CLK_SD1HCLK_MASK 0x0001 42 43 #define ROM_SCFG_CLK_SPECMASK (ROM_SCFG_CLK_SD1HCLK_MASK) 44 45 #define ROM_SCFG_CLK_SPEC_DEFAULT ( 0 ) 46 47 48 #endif //#define FORMAT_ROM_SCFG_H_ 49