Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81093
b: refs/heads/master
c: 4751505
h: refs/heads/master
i:
  81091: 1a78c3b
v: v3
  • Loading branch information
Ishizaki Kou authored and Paul Mackerras committed Dec 20, 2007
1 parent c23427e commit dfc3e05
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 38958dd9113c19cd7a927009ae585bd5aba3295e
refs/heads/master: 4751505cf7299318d19a42bdabe0eb5db6d732c4
2 changes: 0 additions & 2 deletions trunk/arch/powerpc/platforms/cell/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,7 @@ static void __init cell_setup_arch(void)
conswitchp = &dummy_con;
#endif

#ifdef CONFIG_MMIO_NVRAM
mmio_nvram_init();
#endif
}

static int __init cell_probe(void)
Expand Down
11 changes: 11 additions & 0 deletions trunk/include/asm-powerpc/nvram.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
#ifndef _ASM_POWERPC_NVRAM_H
#define _ASM_POWERPC_NVRAM_H

#include <linux/errno.h>

#define NVRW_CNT 0x20
#define NVRAM_HEADER_LEN 16 /* sizeof(struct nvram_header) */
#define NVRAM_BLOCK_LEN 16
Expand Down Expand Up @@ -71,7 +73,16 @@ extern int nvram_clear_error_log(void);
extern struct nvram_partition *nvram_find_partition(int sig, const char *name);

extern int pSeries_nvram_init(void);

#ifdef CONFIG_MMIO_NVRAM
extern int mmio_nvram_init(void);
#else
static inline int mmio_nvram_init(void)
{
return -ENODEV;
}
#endif

#endif /* __KERNEL__ */

/* PowerMac specific nvram stuffs */
Expand Down

0 comments on commit dfc3e05

Please sign in to comment.