|
@@ -133,6 +133,24 @@ struct gpmc_timings {
|
|
u16 wr_data_mux_bus; /* WRDATAONADMUXBUS */
|
|
u16 wr_data_mux_bus; /* WRDATAONADMUXBUS */
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+struct gpmc_nand_regs {
|
|
|
|
+ void __iomem *gpmc_status;
|
|
|
|
+ void __iomem *gpmc_nand_command;
|
|
|
|
+ void __iomem *gpmc_nand_address;
|
|
|
|
+ void __iomem *gpmc_nand_data;
|
|
|
|
+ void __iomem *gpmc_prefetch_config1;
|
|
|
|
+ void __iomem *gpmc_prefetch_config2;
|
|
|
|
+ void __iomem *gpmc_prefetch_control;
|
|
|
|
+ void __iomem *gpmc_prefetch_status;
|
|
|
|
+ void __iomem *gpmc_ecc_config;
|
|
|
|
+ void __iomem *gpmc_ecc_control;
|
|
|
|
+ void __iomem *gpmc_ecc_size_config;
|
|
|
|
+ void __iomem *gpmc_ecc1_result;
|
|
|
|
+ void __iomem *gpmc_bch_result0;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+extern void gpmc_update_nand_reg(struct gpmc_nand_regs *reg, int cs);
|
|
|
|
+
|
|
extern unsigned int gpmc_ns_to_ticks(unsigned int time_ns);
|
|
extern unsigned int gpmc_ns_to_ticks(unsigned int time_ns);
|
|
extern unsigned int gpmc_ps_to_ticks(unsigned int time_ps);
|
|
extern unsigned int gpmc_ps_to_ticks(unsigned int time_ps);
|
|
extern unsigned int gpmc_ticks_to_ns(unsigned int ticks);
|
|
extern unsigned int gpmc_ticks_to_ns(unsigned int ticks);
|