1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2025-04-21 12:27:27 +03:00

remove duplicate code

This commit is contained in:
Xiangfu Liu
2011-03-07 11:11:38 +08:00
parent 9b840cda9a
commit 7597779cae
10 changed files with 24 additions and 41 deletions

View File

@@ -29,6 +29,7 @@
#include "cmd.h"
#include "ingenic_cfg.h"
#include "ingenic_usb.h"
#include "ingenic_request.h"
#include "usb_boot_defines.h"
extern int com_argc;

View File

@@ -19,7 +19,6 @@
#ifndef __COMMAND_LINE_H__
#define __COMMAND_LINE_H__
int command_input(char *buf);
int command_handle(char *buf);
#endif /* __COMMAND_LINE_H__ */

View File

@@ -0,0 +1,16 @@
#ifndef __INGENIC_REQUEST_H__
#define __INGENIC_REQUEST_H__
#define VR_GET_CPU_INFO (0x00)
#define VR_SET_DATA_ADDRESS (0x01)
#define VR_SET_DATA_LENGTH (0x02)
#define VR_FLUSH_CACHES (0x03)
#define VR_PROGRAM_START1 (0x04)
#define VR_PROGRAM_START2 (0x05)
#define VR_NOR_OPS (0x06)
#define VR_NAND_OPS (0x07)
#define VR_SDRAM_OPS (0x08)
#define VR_CONFIGRATION (0x09)
#define VR_RESET (0x0a)
#endif

View File

@@ -22,6 +22,7 @@
#include <usb.h>
#include "usb_boot_defines.h"
#include "ingenic_usb.h"
#include "ingenic_request.h"
extern unsigned int total_size;

View File

@@ -25,18 +25,6 @@
#define INGENIC_OUT_ENDPOINT 0x01
#define INGENIC_IN_ENDPOINT 0x81
#define VR_GET_CPU_INFO 0x00
#define VR_SET_DATA_ADDRESS 0x01
#define VR_SET_DATA_LENGTH 0x02
#define VR_FLUSH_CACHES 0x03
#define VR_PROGRAM_START1 0x04
#define VR_PROGRAM_START2 0x05
#define VR_NOR_OPS 0x06
#define VR_NAND_OPS 0x07
#define VR_SDRAM_OPS 0x08
#define VR_CONFIGRATION 0x09
#define VR_RESET 0x0a
#define JZ4740V1 1
#define JZ4750V1 2
#define JZ4760V1 3