Skip to content
Browse files

foo

  • Loading branch information...
1 parent 254d0d2 commit a22eb240bec77036c177e6ed0455f74b8e963e5e @larsclausen larsclausen committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 drivers/mtd/nand/jz4740_nand.c
View
6 drivers/mtd/nand/jz4740_nand.c
@@ -52,6 +52,9 @@
#define JZ_NAND_CTRL_ENABLE_CHIP(x) BIT((x) << 1)
#define JZ_NAND_CTRL_ASSERT_CHIP(x) BIT(((x) << 1) + 1)
+#define JZ_NAND_MEM_ADDR_OFFSET 0x10000
+#define JZ_NAND_MEM_CMD_OFFSET 0x08000
+
struct jz_nand {
struct mtd_info mtd;
struct nand_chip chip;
@@ -70,9 +73,6 @@ static inline struct jz_nand *mtd_to_jz_nand(struct mtd_info *mtd)
return container_of(mtd, struct jz_nand, mtd);
}
-#define JZ_NAND_MEM_ADDR_OFFSET 0x10000
-#define JZ_NAND_MEM_CMD_OFFSET 0x08000
-
static void jz_nand_cmd_ctrl(struct mtd_info *mtd, int dat, unsigned int ctrl)
{
struct jz_nand *nand = mtd_to_jz_nand(mtd);

0 comments on commit a22eb24

Please sign in to comment.
Something went wrong with that request. Please try again.