OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sw/] [tests/] [cfi_ctrl/] [sim/] [cfi_ctrl-readid.c] - Rev 655

Compare with Previous | Blame | View Log

#include "board.h"
#include "cpu-utils.h"
#include "cfi_ctrl.h"
#include "printf.h"
 
#include "orpsoc-defines.h"
 
 
int main(void)
{
  printf("\nReading some CFI ID\n");
  printf("manufacturer code: %04x\n",cfi_ctrl_read_identifier(0x00)&0xffff);
  printf("Device ID: %04x\n",cfi_ctrl_read_identifier(0x01)&0xffff);
  printf("RCR: %04x\n",cfi_ctrl_read_identifier(0x05)&0xffff);
 
  printf("query info: %04x\n",cfi_ctrl_query_info(0x10)&0xffff);
  printf("query info: %04x\n",cfi_ctrl_query_info(0x11)&0xffff);
  printf("query info: %04x\n",cfi_ctrl_query_info(0x12)&0xffff);
  printf("device timing & voltage info: %04x\n",
	 cfi_ctrl_query_info(0x1b)&0xffff);
 
  report(0x8000000d);
  exit(0);
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.