diff options
author | Rob Purchase <shotofadds@rockbox.org> | 2008-07-12 23:01:49 +0000 |
---|---|---|
committer | Rob Purchase <shotofadds@rockbox.org> | 2008-07-12 23:01:49 +0000 |
commit | ee72b3bbc6885628466bab093b181778bdfde974 (patch) | |
tree | 48021443c9e6f0ff22438fdfa3746c6c08ee3b77 /firmware/target/arm/tcc780x/ata-nand-target.h | |
parent | 6e4aab0fe97bb58f36d113ccc9e7b5ac7fddf923 (diff) |
Make the TCC780x NAND driver also build for 77x targets. This is work-in-progress stuff and does not yet work fully on 77x, but it's a step in the right direction. Also replace some magic numbers with #defines.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18019 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tcc780x/ata-nand-target.h')
-rw-r--r-- | firmware/target/arm/tcc780x/ata-nand-target.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/firmware/target/arm/tcc780x/ata-nand-target.h b/firmware/target/arm/tcc780x/ata-nand-target.h new file mode 100644 index 0000000000..f95d07886e --- /dev/null +++ b/firmware/target/arm/tcc780x/ata-nand-target.h @@ -0,0 +1,33 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2007 Dave Chapman + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ +#ifndef ATA_TARGET_H +#define ATA_TARGET_H + +/* GPIOs */ + +#define NAND_GPIO_SET(n) GPIOB_SET = n +#define NAND_GPIO_CLEAR(n) GPIOB_CLEAR = n +#define NAND_GPIO_OUT_EN(n) GPIOB_DIR |= n + +#define WE_GPIO_BIT (1<<19) /* Write Enable */ +#define CS_GPIO_BIT (1<<21) /* Chip Select (4 banks when used with NFC_CSx) */ + +#endif |